Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dunk fe/fdr 31 coming soon page #8

Merged
merged 11 commits into from
Jun 29, 2024
Merged
5,316 changes: 5,316 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions public/comingsoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/fonts/Egizio Regular.otf
Binary file not shown.
Binary file added public/fonts/Pind Bold.ttf
Binary file not shown.
Binary file added public/fonts/Pind text.ttf
Binary file not shown.
Binary file added public/fonts/Pind.ttf
Binary file not shown.
Binary file added public/fonts/Sarun_s Sunthon.ttf
Binary file not shown.
Binary file added public/fonts/theseasons-bd.otf
Binary file not shown.
Binary file added public/fonts/theseasons-bdit.otf
Binary file not shown.
Binary file added public/fonts/theseasons-it.otf
Binary file not shown.
Binary file added public/fonts/theseasons-lt.otf
Binary file not shown.
Binary file added public/fonts/theseasons-ltit.otf
Binary file not shown.
Binary file added public/fonts/theseasons-reg.otf
Binary file not shown.
33 changes: 33 additions & 0 deletions src/app/comingsoon/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import Image from 'next/image';
import Border from '@/components/Border';
import Back_To_Menu from '@/components/comingsoon/back_to_menu';
import Welcome from '@/components/welcome';
import comingsoon from '../../../public/comingsoon.svg';

export default function Home() {
return (
<main className="w-full h-screen flex justify-center items-center flex-col">
<Border
variant="transparent"
className="flex justify-center items-center flex-col"
>
{' '}
<Welcome />
<h1 className="text-2xl text-center font-semibold text-project-light-gray mb-7">
รับเพื่อนก้าวใหม่ 2024
</h1>
<Image
src={comingsoon}
alt="Coming Soon"
className="w-64 h-14 mb-6"
/>
<h1 className="text-xl text-center font-semibold text-project-light-gray mb-10">
พร้อมให้ลงทะเบียน
<br />
ในวันที่ 18 กรกฎาคม 2567
</h1>
<Back_To_Menu />
</Border>
</main>
);
}
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function Home() {
<h1 className="text-4xl font text-center text-white font-season italic">
Contact list
</h1>
<p className='font-sarun'>test สวัสดีครับ</p>
<p className="font-sarun">test สวัสดีครับ</p>
</Border>
</main>
);
Expand Down
12 changes: 12 additions & 0 deletions src/components/Welcome.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

export default function Welcome() {
return (
<div className="absolute top-20 text-center font-season italic">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ช่วย absolute กับ top-20 ออกหน่อย
    ตรงนี้พี่พลาดเองเดี๋ยวไปเเก้ component border ออกให้

<h1 className="text-4xl mb-1">Welcome,</h1>
<h1 className="text-3xl bg-gradient-to-t bg-clip-text text-transparent from-project-fuchsia from-30% via-80% to-95% to-project-cream">
CU108
</h1>
</div>
);
}
14 changes: 14 additions & 0 deletions src/components/comingsoon/back_to_menu.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import Link from 'next/link';
export default function Back_To_Menu() {
return (
<div className="flex text-center justify-center ">
<Link
href="/"
className="bg-project-fuchsia text-xl text-white py-2 px-2 w-60 h-12 rounded-md"
>
กลับสู่หน้าหลัก
</Link>
</div>
);
}
Loading