From f8855c2bf7b6990637134e1b56f64d8828ca7b35 Mon Sep 17 00:00:00 2001
From: "SeungJu, Lee" <84257439+SeungJL@users.noreply.github.com>
Date: Mon, 18 Nov 2024 17:59:59 +0900
Subject: [PATCH] Renew/store page (#245)
---
components/Icons/ArrowIcons.tsx | 26 +-
components/Icons/CircleIcons.tsx | 18 +
components/Icons/DotIcons.tsx | 10 +-
components/Icons/RuleIcon.tsx | 3 +-
components/Icons/icons.tsx | 9 +
components/atoms/ButtonWrapper.tsx | 1 +
components/atoms/CountNum.tsx | 9 +-
components/atoms/InfoCol.tsx | 36 ++
components/atoms/InfoColSkeleton.tsx | 22 +
components/atoms/buttons/ArrowBackButton.tsx | 21 +-
components/atoms/buttons/MenuButton.tsx | 5 +-
components/layouts/Header.tsx | 19 +-
components/molecules/navs/TabNav.tsx | 2 +-
.../imageSliderType/ImageSliderBanner.tsx | 30 +-
modals/Modals.tsx | 4 +-
modals/RuleModal.tsx | 67 +--
modals/gather/GatherRuleModal.tsx | 59 ++-
modals/pop-up/LastWeekAttendPopUp.tsx | 112 ++---
modals/promotion/PromotionRuleModal.tsx | 55 ++-
modals/store/StoreApplyGiftModal.tsx | 16 +-
modals/store/StoreGiftWinModal.tsx | 45 +-
modals/store/StoreMembersModal.tsx | 120 ++++++
.../group/detail/GroupParticipation.tsx | 2 +-
.../group/writing/QuestionBottomDrawer.tsx | 1 +
pageTemplates/layout/Layout.tsx | 3 +-
pages/board/index.tsx | 40 +-
pages/group/[id]/index.tsx | 3 +-
pages/group/index.tsx | 2 +-
pages/group/writing/condition.tsx | 3 +-
pages/ranking/index.tsx | 48 ++-
pages/square/index.tsx | 71 ++--
pages/store/[id]/index.tsx | 194 +++++++--
pages/store/index.tsx | 354 ++++++++--------
pages/user/point.tsx | 4 +-
storage/Store.tsx | 387 +++++++++---------
.../atoms/buttons/ArrowBackButton.stories.ts | 19 -
theme.ts | 13 +-
37 files changed, 1038 insertions(+), 795 deletions(-)
create mode 100644 components/atoms/InfoCol.tsx
create mode 100644 components/atoms/InfoColSkeleton.tsx
create mode 100644 modals/store/StoreMembersModal.tsx
delete mode 100644 stories/atoms/buttons/ArrowBackButton.stories.ts
diff --git a/components/Icons/ArrowIcons.tsx b/components/Icons/ArrowIcons.tsx
index 320c79327..229a27a8c 100644
--- a/components/Icons/ArrowIcons.tsx
+++ b/components/Icons/ArrowIcons.tsx
@@ -1,11 +1,19 @@
-export function ShortArrowIcon({ dir }: { dir: "right" | "bottom" | "top" }) {
+export function ShortArrowIcon({
+ dir,
+ color = "mint",
+}: {
+ color?: "mint" | "white";
+ dir: "right" | "bottom" | "top" | "left";
+}) {
+ const colorText = color === "mint" ? "#00C2B3" : "white";
+
return dir === "right" ? (
) : dir === "bottom" ? (
@@ -14,7 +22,17 @@ export function ShortArrowIcon({ dir }: { dir: "right" | "bottom" | "top" }) {
fillRule="evenodd"
clipRule="evenodd"
d="M1.95 4.3124C1.95 4.1399 2.0175 3.9674 2.145 3.8324C2.2715 3.70645 2.44274 3.63574 2.62125 3.63574C2.79976 3.63574 2.971 3.70645 3.0975 3.8324L6 6.7349L8.895 3.8324C9.0215 3.70645 9.19274 3.63574 9.37125 3.63574C9.54976 3.63574 9.721 3.70645 9.8475 3.8324C9.97345 3.9589 10.0442 4.13014 10.0442 4.30865C10.0442 4.48716 9.97345 4.6584 9.8475 4.7849L6.4725 8.1599C6.346 8.28585 6.17476 8.35656 5.99625 8.35656C5.81774 8.35656 5.6465 8.28585 5.52 8.1599L2.145 4.7849C2.0175 4.6574 1.95 4.4849 1.95 4.3124Z"
- fill="#00C2B3"
+ fill={colorText}
+ />
+
+ ) : dir === "left" ? (
+
) : (
@@ -23,7 +41,7 @@ export function ShortArrowIcon({ dir }: { dir: "right" | "bottom" | "top" }) {
fillRule="evenodd"
clipRule="evenodd"
d="M1.95 7.6876C1.95 7.8601 2.0175 8.0326 2.145 8.1676C2.2715 8.29355 2.44274 8.36426 2.62125 8.36426C2.79976 8.36426 2.971 8.29355 3.0975 8.1676L6 5.2651L8.895 8.1676C9.0215 8.29355 9.19274 8.36426 9.37125 8.36426C9.54976 8.36426 9.721 8.29355 9.8475 8.1676C9.97345 8.0411 10.0442 7.86986 10.0442 7.69135C10.0442 7.51284 9.97345 7.3416 9.8475 7.2151L6.4725 3.8401C6.346 3.71415 6.17476 3.64344 5.99625 3.64344C5.81774 3.64344 5.6465 3.71415 5.52 3.8401L2.145 7.2151C2.0175 7.3426 1.95 7.5151 1.95 7.6876Z"
- fill="#00C2B3"
+ fill={colorText}
/>
);
diff --git a/components/Icons/CircleIcons.tsx b/components/Icons/CircleIcons.tsx
index 53ce337e5..b925ec07e 100644
--- a/components/Icons/CircleIcons.tsx
+++ b/components/Icons/CircleIcons.tsx
@@ -131,3 +131,21 @@ export function XCircleIcon({ size }: { size: "sm" | "md" }) {
);
}
+
+export function InfoCircleIcon() {
+ return
+}
diff --git a/components/Icons/DotIcons.tsx b/components/Icons/DotIcons.tsx
index b36dd4dc2..d074054a8 100644
--- a/components/Icons/DotIcons.tsx
+++ b/components/Icons/DotIcons.tsx
@@ -1,4 +1,10 @@
-export function EllipsisIcon({ size }: { size: "sm" | "md" }) {
+export function EllipsisIcon({
+ size,
+ color = "gray",
+}: {
+ size: "sm" | "md";
+ color?: "white" | "gray";
+}) {
const width = size === "sm" ? 12 : 20;
return (
);
diff --git a/components/Icons/RuleIcon.tsx b/components/Icons/RuleIcon.tsx
index 1b3ddec5b..7acf77393 100644
--- a/components/Icons/RuleIcon.tsx
+++ b/components/Icons/RuleIcon.tsx
@@ -1,11 +1,12 @@
import styled from "styled-components";
import { IModal } from "../../types/components/modalTypes";
+import { InfoCircleIcon } from "./CircleIcons";
function RuleIcon({ setIsModal }: IModal) {
return (
setIsModal(true)}>
-
+
);
}
diff --git a/components/Icons/icons.tsx b/components/Icons/icons.tsx
index a6b0bc599..804aedc73 100644
--- a/components/Icons/icons.tsx
+++ b/components/Icons/icons.tsx
@@ -11,6 +11,15 @@ export function UserIcon() {
);
}
+export function TrophyIcon() {
+ return
+}
+
export function KakaoChatIcon() {
return (