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

[#325] Add Banner #362

Merged
merged 1 commit into from
May 10, 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
8 changes: 6 additions & 2 deletions ui/src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import Link from 'next/link';

import Banner from '@/components/common/client/banner';

export default function Home() {
return (
<>
<main className="container mx-auto flex max-w-5xl flex-col items-center">
<Banner />

<h1>This is Mr.C home</h1>
<Link href="/review">review</Link>
<br />
<Link href="/comment">comment</Link>
</>
</main>
);
}
66 changes: 66 additions & 0 deletions ui/src/components/common/client/banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
'use client';

import Swiper from '@/components/common/client/swiper';
import Text from '@/components/common/server/text';

export default function Banner() {
return (
<section className="w-screen ">
<Swiper>
<Swiper.Slide>
<div className="bg-orange-200 h-64">
<div className="container max-w-5xl mx-auto py-10 px-6">
<Text size="xl" weight="bold" noselect>
시네필을 위한 영화 커뮤니티 🎬
</Text>

<div className="mt-6">
<Text size="lg" noselect>
익명으로 자유롭게 !
</Text>
<Text size="lg" noselect>
영화에 대한 이야기를 마음껏 나누어요
</Text>
</div>
</div>
</div>
</Swiper.Slide>

<Swiper.Slide>
<div className="bg-orange-200 h-64">
<div className="container max-w-5xl mx-auto py-10 px-6">
<Text size="xl" weight="bold" noselect>
리뷰
</Text>

<div className="mt-6">
<Text size="lg" noselect>
좋아하는 영화에 대한 이야기 !
</Text>
<Text size="lg" noselect>
아름다운 서식을 위한 에디터를 지원해요
</Text>
</div>
</div>
</div>
</Swiper.Slide>

<Swiper.Slide>
<div className="bg-orange-200 h-64">
<div className="container max-w-5xl mx-auto py-10 px-6">
<Text size="xl" weight="bold" noselect>
코멘트
</Text>

<div className="mt-6">
<Text size="lg" noselect>
한줄평으로 촌철살인 !
</Text>
</div>
</div>
</div>
</Swiper.Slide>
</Swiper>
</section>
);
}