diff --git a/src/assets/images/intro.png b/src/assets/images/intro.png new file mode 100644 index 00000000..26e5de2f Binary files /dev/null and b/src/assets/images/intro.png differ diff --git a/src/components/commons/loading/Loading.tsx b/src/components/commons/loading/Loading.tsx index fac443e7..cc1df529 100644 --- a/src/components/commons/loading/Loading.tsx +++ b/src/components/commons/loading/Loading.tsx @@ -1,7 +1,5 @@ -import { lazy } from "react"; import * as S from "./Loading.styled"; - -const LoadingAnimation = lazy(() => import("@components/commons/loading/LoadingAnimation")); +import LoadingAnimation from "./LoadingAnimation"; const Loading = () => { return ( diff --git a/src/pages/intro/Intro.styled.ts b/src/pages/intro/Intro.styled.ts new file mode 100644 index 00000000..4046bff2 --- /dev/null +++ b/src/pages/intro/Intro.styled.ts @@ -0,0 +1,16 @@ +import styled from "styled-components"; + +export const StyledIntroImg = styled.img` + width: 37.5rem; + min-height: 100vh; +`; + +export const FooterContainer = styled.div` + position: relative; + + /* 구분선 없애기 위해서 조금 올려주었습니다. */ + bottom: 0.2rem; + padding: 1.6rem 2.4rem 4rem; + + background-color: ${({ theme }) => theme.colors.black}; +`; diff --git a/src/pages/intro/Intro.tsx b/src/pages/intro/Intro.tsx new file mode 100644 index 00000000..c3646299 --- /dev/null +++ b/src/pages/intro/Intro.tsx @@ -0,0 +1,24 @@ +import * as S from "./Intro.styled"; +import IntroImg from "../../../src/assets/images/intro.png"; +import { Button } from "@components/commons"; +import { useNavigate } from "react-router-dom"; + +const Intro = () => { + const navigate = useNavigate(); + + const handleClick = () => { + navigate("/main"); + }; + + return ( + <> + + + + + + + ); +}; + +export default Intro; diff --git a/src/routes/Router.tsx b/src/routes/Router.tsx index eb646c1d..92c34751 100644 --- a/src/routes/Router.tsx +++ b/src/routes/Router.tsx @@ -1,4 +1,5 @@ import Layout from "@components/layout/Layout"; +import Intro from "@pages/intro/Intro"; import KakaoAuth from "@pages/kakaoAuth/KakaoAuth"; import Main from "@pages/main/Main"; import NotFound from "@pages/notFound/NotFound"; @@ -16,6 +17,7 @@ const router = createBrowserRouter([ ), }, + { path: "/intro", element: }, { path: "/", element: ,