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

πŸ’„ [WV-24] design : news card μ»΄ν¬λ„ŒνŠΈ 생성 #26

Merged
merged 4 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
File renamed without changes.
3 changes: 3 additions & 0 deletions app/(menu)/media/highlight/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function page() {
return <div>pageμž…λ‹ˆλ‹€</div>;
}
14 changes: 14 additions & 0 deletions app/(menu)/media/news/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import NewsCard from "@/components/media/news-card";

export default function page() {
return (
<div>
<NewsCard
title="2024 kt wiz 73승 기념뱃지 수령"
content="감사원은 원μž₯을 ν¬ν•¨ν•œ 5인 이상 11인 μ΄ν•˜μ˜ κ°μ‚¬μœ„μ›μœΌλ‘œ κ΅¬μ„±ν•œλ‹€. κ΅­νšŒκ°€ μž¬μ μ˜μ› 과반수의 μ°¬μ„±μœΌλ‘œ κ³„μ—„μ˜ ν•΄μ œλ₯Ό μš”κ΅¬ν•œ λ•Œμ—λŠ” λŒ€ν†΅λ Ήμ€ 이λ₯Ό ν•΄μ œν•˜μ—¬μ•Ό ν•œλ‹€. 이 ν—Œλ²•μ‹œν–‰ λ‹Ήμ‹œμ˜ λŒ€λ²•μ›μž₯κ³Ό λŒ€λ²•μ›νŒμ‚¬κ°€ μ•„λ‹Œ 법관은 제1ν•­ λ‹¨μ„œμ˜ κ·œμ •μ— λΆˆκ΅¬ν•˜κ³  이 ν—Œλ²•μ— μ˜ν•˜μ—¬ μž„λͺ…λœ κ²ƒμœΌλ‘œ λ³Έλ‹€. λͺ…λ ΉΒ·κ·œμΉ™ λ˜λŠ” μ²˜λΆ„μ΄ ν—Œλ²•μ΄λ‚˜ 법λ₯ μ— μœ„λ°˜λ˜λŠ” μ—¬λΆ€κ°€ 재판의 μ „μ œκ°€ 된 κ²½μš°μ—λŠ” λŒ€λ²•μ›μ€ 이λ₯Ό μ΅œμ’…μ μœΌλ‘œ 심사할 κΆŒν•œμ„ 가진닀."
date={new Date("2024-12-25")}
views={99}
/>
</div>
);
}
3 changes: 3 additions & 0 deletions app/(menu)/media/story/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function page() {
return <div>pageμž…λ‹ˆλ‹€</div>;
}
8 changes: 8 additions & 0 deletions assets/icons/@index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { default as Calendar } from "./icon_calendar.svg";
export { default as Facebook } from "./icon_facebook.png";
export { default as Instargram } from "./icon_instagram.png";
export { default as Naver } from "./icon_naver.png";
export { default as Ticket } from "./icon_ticket.png";
export { default as User } from "./icon_user.png";
export { default as Youtube } from "./icon_youtube.png";
export { default as Views } from "./icon_views.svg";
1 change: 1 addition & 0 deletions assets/icons/icon_calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/icon_views.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions assets/images/@index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export { default as post_bg_web } from "./2024_post_bg_web.png";
export { default as defeat } from "./image_defeat.png";
export { default as draw } from "./image_draw.png";
export { default as win } from "./image_win.png";
export { default as logo_HH } from "./logo_HH.png";
export { default as logo_HT } from "./logo_HT.png";
export { default as logo_KT } from "./logo_KT.png";
export { default as logo_LG } from "./logo_LG.png";
export { default as logo_LT } from "./logo_LT.png";
export { default as logo_NC } from "./logo_NC.png";
export { default as logo_OB } from "./logo_OB.png";
export { default as logo_SK } from "./logo_SK.png";
export { default as logo_SS } from "./logo_SS.png";
export { default as logo_WO } from "./logo_WO.png";
export { default as logo_ktwports } from "./logo_ktsports.png";
export { default as ktwiz } from "./logo_ktwiz.png";
export { default as ktwiz_en } from "./logo_ktwiz_en.svg";
export { default as ktwiz_kr } from "./logo_ktwiz_kr.svg";
export { default as lgtwins } from "./logo_lgtwins.png";
export { default as gallery } from "./main_title_gallery.png";
export { default as schedule } from "./main_title_schedule.png";
export { default as main_title_video } from "./main_title_video.png";
export { default as map_img } from "./map_img.png";
export { default as reservation } from "./parking_reservation.png";
export { default as player } from "./player_EomSangBaek.jpg";
export { default as schedule_video } from "./schedule_video.png";
export { default as submenu_bg } from "./submenu_bg.png";
export { default as about_img1 } from "./team_about_img1.png";
export { default as about_img2 } from "./team_about_img2.png";
export { default as about_img3 } from "./team_about_img3.png";
export { default as about_img4 } from "./team_about_img4.png";
export { default as ranking } from "./team_ranking.png";
export { default as wiz_park } from "./wiz_park.jpg";
31 changes: 31 additions & 0 deletions components/media/news-card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import Image from "next/image";
import exampleImage from "@/assets/images/team_about_img3.png";
import { Calendar, Views } from "@/assets/icons/@index";
Copy link
Contributor

@hee2323 hee2323 Dec 23, 2024

Choose a reason for hiding this comment

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

shadcn ui μ‚¬μš© 쀑이라 lucide-react μ‚¬μš©ν•΄μ„œ μ•„μ΄μ½˜ ν†΅μΌν–ˆμœΌλ©΄ μ’‹κ² μŠ΅λ‹ˆλ‹€
λ©”μΈνŽ˜μ΄μ§€ footer도 μˆ˜μ •ν•΄μ„œ μ˜¬λ¦¬κ² μŠ΅λ‹ˆλ‹€

Copy link
Contributor Author

Choose a reason for hiding this comment

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

μ•„μ΄μ½˜ μˆ˜μ • ν–ˆμŠ΅λ‹ˆλ‹Ή.

import { CalendarDays, Eye } from "lucide-react";

import { format } from "date-fns";

const NewsCard = ({ title, content, date, views }: NewsCardProps) => {
return (
<div className=" h-[200px] flex p-4 gap-2 w-full border-b border-b-ELSE-B7">
<div className="justify-center content-center w-[320px] h-[170px]">
<Image src={exampleImage} width={300} height={160} alt="example" />
</div>
<div className="flex-1 h-[170px] flex flex-col justify-between">
<div className="flex flex-col gap-3">
<p className="text-xl font-bold">[μ•ˆλ‚΄] {title}</p>
<p className="line-clamp-3 text-l text-ELSE-7374">{content}</p>
</div>
<div className="flex gap-3 ">
<div className="flex gap-1">
<Image src={Calendar} width={24} height={24} alt="calendar" />
<div className="text-ELSE-7374">{format(date, "yyyy.MM.dd")}</div>
</div>
<div className="flex gap-1">
<Image src={Views} width={24} height={24} alt="calendar" />
<div className="text-ELSE-7374"> 쑰회수 : {views}</div>
</div>
</div>
</div>
</div>
);
};
export default NewsCard;
6 changes: 6 additions & 0 deletions components/media/type.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type NewsCardProps = {
title: string;
content: string;
date: Date;
views: number;
};
Loading