-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into sun/fdr-77-register-done
- Loading branch information
Showing
30 changed files
with
519 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Base from '@/components/rpkm/freshy-night/Base'; | ||
|
||
export default function ComingSoon() { | ||
return ( | ||
<div className="min-h-screen w-full grid place-items-center"> | ||
<Base | ||
className="p-[10%] h-[calc(70vw*(801/371))] gap-2" | ||
withBus={false} | ||
> | ||
<section className="text-center font-sopha"> | ||
<h1 className="drop-shadow-md text-6xl text-rpkm-pink text-stroke text-stroke-rpkm-blue -my-4"> | ||
COMING SOON | ||
</h1> | ||
<h1 className="drop-shadow-md text-5xl text-rpkm-yellow text-stroke text-stroke-rpkm-blue"> | ||
FRESHY NIGHT | ||
</h1> | ||
</section> | ||
<main className="bg-rpkm-silver h-full w-full rounded-xl"></main> | ||
<section className="text-center"> | ||
<p>สามารถลงทะเบียนเข้างานได้</p> | ||
<p> | ||
ตั้งแต่วันที่ <strong>3 สิงหาคม 2567</strong> | ||
</p> | ||
<p> | ||
เวลา <strong>00:00</strong> เป็นต้นไป | ||
</p> | ||
</section> | ||
</Base> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
'use client'; | ||
import modalStyles from '@/components/rpkm/Modal/ModalStyle'; | ||
import Base from '@/components/rpkm/freshy-night/Base'; | ||
import { cn } from '@/lib/utils'; | ||
import Link from 'next/link'; | ||
|
||
export default function Register() { | ||
const { button } = modalStyles['red']; | ||
|
||
return ( | ||
<div className="min-h-screen w-full grid place-items-center"> | ||
<Base | ||
className="p-[10%] h-[calc(70vw*(801/371))] gap-4" | ||
withBus={true} | ||
> | ||
<span className="drop-shadow-md font-sopha text-6xl text-rpkm-yellow text-stroke text-stroke-rpkm-blue -my-3"> | ||
FRESHY NIGHT | ||
</span> | ||
<main className="bg-rpkm-silver h-full w-full rounded-xl"></main> | ||
<button | ||
onClick={() => console.log('Fuck you')} | ||
className="p-1 inv-rad inv-rad-2 bg-rpkm-yellow" | ||
> | ||
<Link href="/rpkm/freshy-night/rules"> | ||
<div | ||
className={cn( | ||
'py-[0.3rem] inv-rad px-6 inv-rad-2', | ||
button['accept-background'] | ||
)} | ||
> | ||
ลงทะเบียนเข้าร่วมงาน | ||
</div> | ||
</Link> | ||
</button> | ||
</Base> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
'use client'; | ||
import modalStyles from '@/components/rpkm/Modal/ModalStyle'; | ||
import Base from '@/components/rpkm/freshy-night/Base'; | ||
import Card from '@/components/rpkm/freshy-night/rules/Card'; | ||
import MIC from '@public/rpkm/freshy-night/mic.svg'; | ||
import Image from 'next/image'; | ||
import { cn } from '@/lib/utils'; | ||
import { useAuth } from '@/context/AuthContext'; | ||
import { createCheckIn } from '@/utils/checkin'; | ||
import toast from 'react-hot-toast'; | ||
interface RulesData { | ||
imgUrl?: string; | ||
description?: string; | ||
} | ||
const setOfRules: RulesData[] = [ | ||
{ description: 'description' }, | ||
{ imgUrl: '', description: 'description' }, | ||
{ imgUrl: '', description: 'description' }, | ||
{ imgUrl: '', description: 'description' }, | ||
{ imgUrl: '', description: 'description' }, | ||
{ imgUrl: '', description: 'description' }, | ||
]; | ||
export default function Rules() { | ||
const { button } = modalStyles['red']; | ||
const { user } = useAuth(); | ||
|
||
const handleClick = async () => { | ||
if (!user) { | ||
toast.error('เกิดข้อผิดพลาดในการดึงข้อมูล'); | ||
return; | ||
} | ||
const resp = await createCheckIn( | ||
user.id, | ||
user.email, | ||
'freshy-night-confirm' | ||
); | ||
if (resp) { | ||
toast.success('สำเร็จ'); | ||
} else { | ||
toast.error('เกิดข้อผิดพลาด'); | ||
} | ||
}; | ||
|
||
return ( | ||
<div className="min-h-screen w-full grid place-items-center"> | ||
<Base | ||
className="p-[10%] h-[calc(50vw*(801/371))] gap-6" | ||
withBus={true} | ||
> | ||
<section className="drop-shadow-lg relative font-sopha text-stroke text-stroke-rpkm-blue -mt-12 -ml-8"> | ||
<span className="text-9xl text-rpkm-green">กฏ</span> | ||
<span className="text-8xl text-rpkm-yellow">กติกา</span> | ||
<Image | ||
src={MIC} | ||
alt="Microphone" | ||
width={60} | ||
height={60} | ||
className="absolute top-[30%] left-[95%]" | ||
/> | ||
<span className="absolute text-7xl text-rpkm-pink left-[30%] w-5/6 top-[60%]"> | ||
ภายในงาน | ||
</span> | ||
</section> | ||
|
||
<div className="grid grid-cols-3 grid-rows-2 place-items-center w-full h-full gap-4"> | ||
{setOfRules.map((e: RulesData, i: number) => ( | ||
<Card | ||
imgUrl={e.imgUrl} | ||
description={e.description} | ||
num={i + 1} | ||
key={i} | ||
/> | ||
))} | ||
</div> | ||
|
||
<button | ||
onClick={handleClick} | ||
className="p-1 inv-rad inv-rad-2 bg-rpkm-yellow" | ||
> | ||
<div | ||
className={cn( | ||
'py-[0.3rem] px-6 inv-rad inv-rad-2', | ||
button['accept-background'] | ||
)} | ||
> | ||
ยอมรับข้อตกลง | ||
</div> | ||
</button> | ||
</Base> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.