From f71f895bad706bcd437b7564eaa38f911f82f552 Mon Sep 17 00:00:00 2001 From: oaoong Date: Fri, 1 Dec 2023 14:31:52 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=EB=A7=88=EC=9D=B4=EB=84=88=20css?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=EC=82=AC=ED=95=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(home)/components/HistorySection.tsx | 16 ++++++++++------ .../(root)/(routes)/(home)/components/Slider.tsx | 6 +++--- src/app/(root)/(routes)/(home)/page.tsx | 2 +- .../card/trade-history-card/TradeHistoryCard.tsx | 4 ++-- src/components/ui/card/Card.tsx | 3 ++- src/components/ui/divider/Divider.tsx | 9 +++++++++ 6 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 src/components/ui/divider/Divider.tsx diff --git a/src/app/(root)/(routes)/(home)/components/HistorySection.tsx b/src/app/(root)/(routes)/(home)/components/HistorySection.tsx index 7c07f51c..1b3c2887 100644 --- a/src/app/(root)/(routes)/(home)/components/HistorySection.tsx +++ b/src/app/(root)/(routes)/(home)/components/HistorySection.tsx @@ -10,12 +10,16 @@ const HistorySection = () => { return ( historyList.length !== 0 && ( -
-
최근 거래성사된 물건들
- {historyList.map((data: TradeHistory) => ( - - ))} -
+
+
+ 최근 거래성사된 물건들 +
+
+ {historyList.map((data: TradeHistory) => ( + + ))} +
+
) ) } diff --git a/src/app/(root)/(routes)/(home)/components/Slider.tsx b/src/app/(root)/(routes)/(home)/components/Slider.tsx index 5057160a..c6ca7ec4 100644 --- a/src/app/(root)/(routes)/(home)/components/Slider.tsx +++ b/src/app/(root)/(routes)/(home)/components/Slider.tsx @@ -40,11 +40,11 @@ const PopularCardSlider = ({ cardData }: PopularCardSliderProps) => { height={0} alt="sliderImage" src={v.thumbnail} - sizes="100vw" - style={{ width: '100%' }} + sizes="80vw" + style={{ width: '80%' }} onClick={() => handleClick(v.cardId)} /> -
+

{v.itemName}

{getValueByKey(PRICE_RANGE_OBJS, v.priceRange)} diff --git a/src/app/(root)/(routes)/(home)/page.tsx b/src/app/(root)/(routes)/(home)/page.tsx index 8ee18f11..37ed20ac 100644 --- a/src/app/(root)/(routes)/(home)/page.tsx +++ b/src/app/(root)/(routes)/(home)/page.tsx @@ -5,7 +5,7 @@ import PopularCardSection from './components/PopularCardSection' function HomePage() { return ( -

+
diff --git a/src/components/domain/card/trade-history-card/TradeHistoryCard.tsx b/src/components/domain/card/trade-history-card/TradeHistoryCard.tsx index 667b9518..49d0e34b 100644 --- a/src/components/domain/card/trade-history-card/TradeHistoryCard.tsx +++ b/src/components/domain/card/trade-history-card/TradeHistoryCard.tsx @@ -12,7 +12,7 @@ const SubCard = ({ priceRange, }: Pick) => ( -
+
{itemName} diff --git a/src/components/ui/card/Card.tsx b/src/components/ui/card/Card.tsx index 83a1d4dd..9767e04a 100644 --- a/src/components/ui/card/Card.tsx +++ b/src/components/ui/card/Card.tsx @@ -13,7 +13,8 @@ const cardVariants = cva('p-1.5', { xs: 'h-card-xs', }, type: { - default: 'rounded-card border border-background-secondary-color', + default: + 'rounded-card border border-background-secondary-color border-opacity-50', line: 'border-b border-background-secondary-color', }, }, diff --git a/src/components/ui/divider/Divider.tsx b/src/components/ui/divider/Divider.tsx new file mode 100644 index 00000000..cf957336 --- /dev/null +++ b/src/components/ui/divider/Divider.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +const Divider = () => { + return ( +
+ ) +} + +export default Divider