From c284de6c5ff8e314afd33501337bb9ef5b28fd36 Mon Sep 17 00:00:00 2001
From: NAJEONG KIM <73640737+Najeong-Kim@users.noreply.github.com>
Date: Sun, 18 Aug 2024 00:18:35 +0900
Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9B=B9=20=ED=8C=8C=ED=8A=B8=20?=
=?UTF-8?q?=EC=B6=94=EA=B0=80=20=EA=B5=AC=ED=98=84=EC=82=AC=ED=95=AD=20?=
=?UTF-8?q?=EA=B0=9C=EB=B0=9C=20(#10)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: fix icon scale in discovery card
* feat: add discovery card hover animation
* feat: Add DiscoverySummaryAction icons
* refactor: Update weather icon to feature
* refactor: Add index.ts in icons
* feat: Fix background gradient in discovery page
* feat: Add webpage grid view in webcam slop list
* fix: Fix import order
---
src/features/discovery/ui/weather-icon.tsx | 24 +++
src/pages/discovery/ui/discovery-page.tsx | 2 +-
src/shared/icons/bus.tsx | 72 +++++++++
src/shared/icons/cloud.tsx | 11 +-
src/shared/icons/index.ts | 12 ++
src/shared/icons/lift.tsx | 70 +++++++++
src/shared/icons/rain.tsx | 11 +-
src/shared/icons/snow.tsx | 11 +-
src/shared/icons/sun.tsx | 11 +-
src/shared/icons/vote.tsx | 137 ++++++++++++++++++
.../discovery-detail/ui/discovery-content.tsx | 1 +
.../ui/discovery-summary-action.tsx | 8 +-
.../discovery-detail/ui/discovery-summary.tsx | 15 +-
.../discovery-detail/ui/vote-dialog.tsx | 2 +-
src/widgets/discovery/ui/discovery-card.tsx | 9 +-
src/widgets/discovery/ui/weather-icon.tsx | 22 ---
src/widgets/discovery/ui/weekly-weather.tsx | 2 +-
src/widgets/header/ui/header.tsx | 3 +-
src/widgets/webcam/ui/webcam-slop-list.tsx | 27 ++++
19 files changed, 399 insertions(+), 51 deletions(-)
create mode 100644 src/features/discovery/ui/weather-icon.tsx
create mode 100644 src/shared/icons/bus.tsx
create mode 100644 src/shared/icons/index.ts
create mode 100644 src/shared/icons/lift.tsx
create mode 100644 src/shared/icons/vote.tsx
delete mode 100644 src/widgets/discovery/ui/weather-icon.tsx
diff --git a/src/features/discovery/ui/weather-icon.tsx b/src/features/discovery/ui/weather-icon.tsx
new file mode 100644
index 0000000..df60e1b
--- /dev/null
+++ b/src/features/discovery/ui/weather-icon.tsx
@@ -0,0 +1,24 @@
+import type { Weather } from '@/entities/discovery/model';
+import { CloudIcon, RainIcon, SnowIcon, SunIcon } from '@/shared/icons';
+
+interface WeatherIconProps {
+ className?: string;
+ weather: Weather;
+}
+
+const WeatherIcon = ({ className, weather }: WeatherIconProps) => {
+ switch (weather) {
+ case 'sun':
+ return