-
Notifications
You must be signed in to change notification settings - Fork 1
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
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
14b3858
β WV-24 feat : icon μΆκ°
hayoung78 43dd6e2
π WV-24 design : newsCard μ»΄ν¬λνΈ μμ± λ° ν΄λ ꡬ쑰 λ³κ²½
hayoung78 bdf052d
β WV-24 feat : iconκ³Ό imagesμ index νμΌ μμ±
hayoung78 c113245
β»οΈ WV-24 refactor : lucide iconμΌλ‘ μμ
hayoung78 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
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,3 @@ | ||
export default function page() { | ||
return <div>pageμ λλ€</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,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> | ||
); | ||
} |
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,3 @@ | ||
export default function page() { | ||
return <div>pageμ λλ€</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,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"; |
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
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"; |
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 Image from "next/image"; | ||
import exampleImage from "@/assets/images/team_about_img3.png"; | ||
import { Calendar, Views } from "@/assets/icons/@index"; | ||
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; |
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,6 @@ | ||
type NewsCardProps = { | ||
title: string; | ||
content: string; | ||
date: Date; | ||
views: number; | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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λ μμ ν΄μ μ¬λ¦¬κ² μ΅λλ€
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μμ΄μ½ μμ νμ΅λλΉ.