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

Dong/Add Rules Poster #212

Merged
merged 4 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/rpkm/freshy-night/rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 14 additions & 25 deletions src/app/rpkm/freshy-night/rules/page.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,19 @@
'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 Link from 'next/link';
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' },
];
import RULES from '@public/rpkm/freshy-night/rules.png';

export default function Rules() {
const { button } = modalStyles['red'];

return (
<div className="min-h-screen w-full grid place-items-center relative">
<Base
className="p-[10%] h-[calc(50vw*(801/371))] gap-6"
className="py-[10%] h-[calc(50vw*(801/371))] gap-10"
withBus={true}
>
<section className="drop-shadow-lg relative font-sopha text-stroke text-stroke-rpkm-blue -mt-12 -ml-8">
Expand All @@ -41,17 +30,17 @@ export default function Rules() {
ภายในงาน
</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>
<main className="h-full w-full rounded-xl">
<Image
src={RULES}
alt="poster"
width={0}
height={0}
layout="responsive"
objectFit="contain"
className="rounded-xl"
/>
</main>

<Link
href="/rpkm/freshy-night/confirm-register"
Expand Down
2 changes: 1 addition & 1 deletion src/components/rpkm/freshy-night/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Base(props: BaseProps) {
<>
<div
className={cn(
'bg-[#FFFEF7E5] flex flex-col items-center w-[85%] min-h-[calc(70vw*(801/371))] my-[5%] p-[10%] mx-auto [clip-path:polygon(1rem_0,calc(100%-1rem)_0,100%_1rem,100%_calc(100%-1rem),calc(100%-1rem)_100%,1rem_100%,0_calc(100%-1rem),0_1rem)]',
'bg-[#FFFEF7E5] flex flex-col items-center w-[85%] min-h-[calc(70vw*(801/371))] my-[5%] p-[5%] mx-auto [clip-path:polygon(1rem_0,calc(100%-1rem)_0,100%_1rem,100%_calc(100%-1rem),calc(100%-1rem)_100%,1rem_100%,0_calc(100%-1rem),0_1rem)]',
className
)}
>
Expand Down
23 changes: 0 additions & 23 deletions src/components/rpkm/freshy-night/rules/Card.tsx

This file was deleted.

Loading