Skip to content

Commit

Permalink
Merge pull request #213 from isd-sgcu/main
Browse files Browse the repository at this point in the history
add: poster to freshynight rules
  • Loading branch information
TeeGoood authored Aug 3, 2024
2 parents cdba5cc + 82c0287 commit d48fd49
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 49 deletions.
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.

0 comments on commit d48fd49

Please sign in to comment.