path aliases
This commit is contained in:
8
jsconfig.json
Normal file
8
jsconfig.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["src/*"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import Home from "@/pages";
|
||||||
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
|
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
|
||||||
import Home from "./pages";
|
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
import { FaLinkedin } from "react-icons/fa";
|
|
||||||
import { FaSquareXTwitter } from "react-icons/fa6";
|
|
||||||
import { animateScroll as scroll } from "react-scroll";
|
|
||||||
import {
|
import {
|
||||||
FooterContainer,
|
FooterContainer,
|
||||||
FooterWrap,
|
FooterWrap,
|
||||||
@@ -10,7 +7,10 @@ import {
|
|||||||
SocialMedia,
|
SocialMedia,
|
||||||
SocialMediaWrap,
|
SocialMediaWrap,
|
||||||
WebsiteRights,
|
WebsiteRights,
|
||||||
} from "./FooterElements";
|
} from "@/components/Footer/FooterElements";
|
||||||
|
import { FaLinkedin } from "react-icons/fa";
|
||||||
|
import { FaSquareXTwitter } from "react-icons/fa6";
|
||||||
|
import { animateScroll as scroll } from "react-scroll";
|
||||||
|
|
||||||
const images = [
|
const images = [
|
||||||
"https://freepik.com/free-vector/hand-coding-concept-illustration_21864184.htm#query=coding&position=17&from_view=search&track=sph&uuid=5896d847-38e4-4cb9-8fe1-103041c7c933",
|
"https://freepik.com/free-vector/hand-coding-concept-illustration_21864184.htm#query=coding&position=17&from_view=search&track=sph&uuid=5896d847-38e4-4cb9-8fe1-103041c7c933",
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import img from "../../images/F23.prince.learning.turquoise.jpg";
|
|
||||||
import {
|
import {
|
||||||
HeroCitationBlock,
|
HeroCitationBlock,
|
||||||
HeroCitationTitle,
|
HeroCitationTitle,
|
||||||
@@ -18,7 +17,8 @@ import {
|
|||||||
HeroRow,
|
HeroRow,
|
||||||
Img,
|
Img,
|
||||||
UDLLink,
|
UDLLink,
|
||||||
} from "./HeroElements";
|
} from "@/components/HeroSection/HeroElements";
|
||||||
|
import img from "@/images/F23.prince.learning.turquoise.jpg";
|
||||||
|
|
||||||
export default function HeroSection() {
|
export default function HeroSection() {
|
||||||
const citation = `
|
const citation = `
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import img from "../../images/instructor.svg";
|
|
||||||
import {
|
import {
|
||||||
Column1,
|
Column1,
|
||||||
Column2,
|
Column2,
|
||||||
@@ -14,7 +13,8 @@ import {
|
|||||||
Subtitle,
|
Subtitle,
|
||||||
TextWrapper,
|
TextWrapper,
|
||||||
TopLine,
|
TopLine,
|
||||||
} from "./InstructorsElements";
|
} from "@/components/Instructors/InstructorsElements";
|
||||||
|
import img from "@/images/instructor.svg";
|
||||||
|
|
||||||
const fullSlides = [
|
const fullSlides = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import img from "../../images/media.svg";
|
|
||||||
import {
|
import {
|
||||||
Column1,
|
Column1,
|
||||||
Column2,
|
Column2,
|
||||||
@@ -15,7 +14,8 @@ import {
|
|||||||
TextWrapper,
|
TextWrapper,
|
||||||
TopLine,
|
TopLine,
|
||||||
VideoFrame,
|
VideoFrame,
|
||||||
} from "./MediaElements";
|
} from "@/components/Media/MediaElements";
|
||||||
|
import img from "@/images/media.svg";
|
||||||
|
|
||||||
const interviews = [
|
const interviews = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import img from "../../images/more.svg";
|
|
||||||
import {
|
import {
|
||||||
Column1,
|
Column1,
|
||||||
Column2,
|
Column2,
|
||||||
@@ -16,7 +15,8 @@ import {
|
|||||||
Subtitle,
|
Subtitle,
|
||||||
TextWrapper,
|
TextWrapper,
|
||||||
TopLine,
|
TopLine,
|
||||||
} from "./MoreElements";
|
} from "@/components/More/MoreElements";
|
||||||
|
import img from "@/images/more.svg";
|
||||||
|
|
||||||
const book = [
|
const book = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
import { useEffect, useState } from "react";
|
|
||||||
import { FaBars } from "react-icons/fa";
|
|
||||||
import { IconContext } from "react-icons/lib";
|
|
||||||
import { animateScroll as scroll } from "react-scroll";
|
|
||||||
import {
|
import {
|
||||||
MobileIcon,
|
MobileIcon,
|
||||||
Nav,
|
Nav,
|
||||||
@@ -10,7 +6,11 @@ import {
|
|||||||
NavLinks,
|
NavLinks,
|
||||||
NavLogo,
|
NavLogo,
|
||||||
NavMenu,
|
NavMenu,
|
||||||
} from "./NavbarElements";
|
} from "@/components/NavBar/NavbarElements";
|
||||||
|
import { useEffect, useState } from "react";
|
||||||
|
import { FaBars } from "react-icons/fa";
|
||||||
|
import { IconContext } from "react-icons/lib";
|
||||||
|
import { animateScroll as scroll } from "react-scroll";
|
||||||
|
|
||||||
export default function NavBar({ toggle }) {
|
export default function NavBar({ toggle }) {
|
||||||
const [scrollNav, setScrollNav] = useState(false);
|
const [scrollNav, setScrollNav] = useState(false);
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import img from "../../images/coding.svg";
|
|
||||||
import {
|
import {
|
||||||
Column1,
|
Column1,
|
||||||
Column2,
|
Column2,
|
||||||
@@ -12,7 +11,8 @@ import {
|
|||||||
Subtitle,
|
Subtitle,
|
||||||
TextWrapper,
|
TextWrapper,
|
||||||
TopLine,
|
TopLine,
|
||||||
} from "./NotebookElements";
|
} from "@/components/Notebooks/NotebookElements";
|
||||||
|
import img from "@/images/coding.svg";
|
||||||
|
|
||||||
const notebooks = [
|
const notebooks = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
SidebarLink,
|
SidebarLink,
|
||||||
SidebarMenu,
|
SidebarMenu,
|
||||||
SidebarWrapper,
|
SidebarWrapper,
|
||||||
} from "./SidebarElements";
|
} from "@/components/Sidebar/SidebarElements";
|
||||||
|
|
||||||
export default function Sidebar({ isOpen, toggle }) {
|
export default function Sidebar({ isOpen, toggle }) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import App from "@/App";
|
||||||
|
import "@/styles/globals.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import ReactDOM from "react-dom/client";
|
import ReactDOM from "react-dom/client";
|
||||||
import App from "./App";
|
|
||||||
import "./styles/globals.css";
|
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById("root")).render(
|
ReactDOM.createRoot(document.getElementById("root")).render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
|
import Footer from "@/components/Footer";
|
||||||
|
import HeroSection from "@/components/HeroSection";
|
||||||
|
import InstructorsSection from "@/components/Instructors";
|
||||||
|
import MediaSection from "@/components/Media";
|
||||||
|
import MoreSection from "@/components/More";
|
||||||
|
import Navbar from "@/components/NavBar";
|
||||||
|
import NotebookSection from "@/components/Notebooks";
|
||||||
|
import Sidebar from "@/components/Sidebar";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Footer from "../components/Footer";
|
|
||||||
import HeroSection from "../components/HeroSection";
|
|
||||||
import InstructorsSection from "../components/Instructors";
|
|
||||||
import MediaSection from "../components/Media";
|
|
||||||
import MoreSection from "../components/More";
|
|
||||||
import Navbar from "../components/NavBar";
|
|
||||||
import NotebookSection from "../components/Notebooks";
|
|
||||||
import Sidebar from "../components/Sidebar";
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import ScrollToTop from "../components/ScrollToTop";
|
import ScrollToTop from "@/components/ScrollToTop";
|
||||||
import SignIn from "../components/SignIn";
|
import SignIn from "@/components/SignIn";
|
||||||
|
|
||||||
export default function SigninPage() {
|
export default function SigninPage() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
import react from "@vitejs/plugin-react-swc";
|
import react from "@vitejs/plugin-react-swc";
|
||||||
|
import path from "node:path";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
"@": path.resolve(__dirname, "./src"),
|
||||||
|
},
|
||||||
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user