Skip to content

Commit a5bc589

Browse files
committed
feat: 모바일 환경 개선 문구 추가
1 parent ca35969 commit a5bc589

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/pages/MainVer2.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import FloatingBtn from "@/components/button/FloatingBtn";
55
import ImageBtn from "../components/button/ImageBtn";
66
import Page4Button from "../components/button/landing/Page4Button";
77
import Page3 from "@/components/landing/Page3";
8+
import MobileError from "./MobileError";
89

910
import useWindowDimensions from "@/hooks/useWindowDimensions";
1011

@@ -58,6 +59,10 @@ const MainVer2 = () => {
5859
? "h4-regular c-white"
5960
: "p-large-regular c-white";
6061

62+
if (isMobile) {
63+
return <MobileError />;
64+
}
65+
6166
return (
6267
<div className=" main-ver2">
6368
<FloatingBtn />

src/pages/MobileError.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import page1 from "../assets/image/landing/page1.svg";
2+
3+
const MobileError = () => {
4+
return (
5+
<div className="flex flex-col items-center w-full min-h-[100vh]">
6+
<h3 className="h3-bold mt-[100px] text-[#6A39C0] text-center">
7+
모바일 접속 안내
8+
</h3>
9+
<p className="p-large-bold mt-[23px] text-center text-[#777]">
10+
보다 나은 서비스를 위해 <br />
11+
모바일 환경 개선 작업 중입니다. <br />
12+
PC 환경에서 접속해주시면 <br />
13+
원활한 이용이 가능합니다. <br />
14+
이용에 불편을 드려 죄송합니다.
15+
</p>
16+
<img src={page1} alt="" className="mt-[29px] w-[313px]" />
17+
</div>
18+
);
19+
};
20+
21+
export default MobileError;

0 commit comments

Comments
 (0)