-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/root/ui/usage-swiper.tsx b/src/pages/root/ui/usage-swiper.tsx
deleted file mode 100644
index c013d1b..0000000
--- a/src/pages/root/ui/usage-swiper.tsx
+++ /dev/null
@@ -1,195 +0,0 @@
-import classnames from "classnames";
-import { Swiper, SwiperSlide, SwiperClass } from "swiper/react";
-import { Navigation } from "swiper/modules";
-import ArrowLeftIconImage from "@/assets/images/icon-swiper-arrow-left.svg";
-import ArrowRightIconImage from "@/assets/images/icon-swiper-arrow-right.svg";
-
-import "swiper/css";
-
-import { Card } from "./card";
-import { useState, PropsWithChildren } from "react";
-import { Breakpoint, useBreakpoint } from "@/shared/hook/useBreakpoint";
-
-export const UsageSwiper = () => {
- const [swiper, setSwiper] = useState
(null);
- const [activeIndex, setActiveIndex] = useState(0);
- const breakpoint = useBreakpoint();
- return (
- <>
-
- {[
- "쉬운 확인",
- "어디서든 확인",
- "나만의 폴더",
- "태그로 구분",
- "잊지 않게 알림",
- ].map((title, index) => {
- const active = activeIndex === index;
- return (
- swiper?.slideTo(index)}
- >
- {title}
-
- );
- })}
-
-
-
{
- setActiveIndex(swiper.activeIndex);
- }}
- >
-
-
-
-
-
- 모바일에서 저장하고
-
- PC에서 확인하세요
-
-
- 어느 기기에서나 편하게 확인해보세요! 스마트폰, 태블릿, PC에서
- 저장해뒀던 콘텐츠를 다시 열어볼 수 있어요
-
-
-
-
-
-
-
-
-
-
-
- 모바일에서 저장하고
-
- PC에서 확인하세요
-
-
- 어느 기기에서나 편하게 확인해보세요! 스마트폰, 태블릿, PC에서
- 저장해뒀던 콘텐츠를 다시 열어볼 수 있어요
-
-
-
-
-
-
-
-
-
-
-
- 모바일에서 저장하고
-
- PC에서 확인하세요
-
-
- 어느 기기에서나 편하게 확인해보세요! 스마트폰, 태블릿, PC에서
- 저장해뒀던 콘텐츠를 다시 열어볼 수 있어요
-
-
-
-
-
-
-
-
-
-
-
- 모바일에서 저장하고
-
- PC에서 확인하세요
-
-
- 어느 기기에서나 편하게 확인해보세요! 스마트폰, 태블릿, PC에서
- 저장해뒀던 콘텐츠를 다시 열어볼 수 있어요
-
-
-
-
-
-
-
-
-
-
-
- 모바일에서 저장하고
-
- PC에서 확인하세요
-
-
- 어느 기기에서나 편하게 확인해보세요! 스마트폰, 태블릿, PC에서
- 저장해뒀던 콘텐츠를 다시 열어볼 수 있어요
-
-
-
-
-
-
-
-
- >
- );
-};
-
-const UsageItem = ({
- active,
- children,
- onClick,
-}: {
- active?: boolean;
- onClick: () => void;
-} & PropsWithChildren) => {
- return (
-
-
-
- );
-};
-
-const PrevButton = () => (
-
-);
-
-const NextButton = () => (
-
-);
diff --git a/src/shared/utils/cn.ts b/src/shared/utils/cn.ts
new file mode 100644
index 0000000..0f46f37
--- /dev/null
+++ b/src/shared/utils/cn.ts
@@ -0,0 +1,6 @@
+import { ClassValue, clsx } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export const cn = (...inputs: ClassValue[]) => {
+ return twMerge(clsx(inputs));
+};
diff --git a/yarn.lock b/yarn.lock
index 1422fb9..f94dda0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -397,6 +397,15 @@ __metadata:
languageName: node
linkType: hard
+"@babel/runtime@npm:^7.24.0":
+ version: 7.24.4
+ resolution: "@babel/runtime@npm:7.24.4"
+ dependencies:
+ regenerator-runtime: "npm:^0.14.0"
+ checksum: 785aff96a3aa8ff97f90958e1e8a7b1d47f793b204b47c6455eaadc3f694f48c97cd5c0a921fe3596d818e71f18106610a164fb0f1c71fd68c622a58269d537c
+ languageName: node
+ linkType: hard
+
"@babel/template@npm:^7.22.15, @babel/template@npm:^7.23.9, @babel/template@npm:^7.3.3":
version: 7.23.9
resolution: "@babel/template@npm:7.23.9"
@@ -2485,6 +2494,13 @@ __metadata:
languageName: node
linkType: hard
+"clsx@npm:^2.1.0":
+ version: 2.1.0
+ resolution: "clsx@npm:2.1.0"
+ checksum: c09c00ad14f638366ca814097e6cab533dfa1972a358da5b557be487168acbb25b4c1395e89ffa842a8a61ba87a462d2b4885bc9d4f8410b598f3cb339599cdb
+ languageName: node
+ linkType: hard
+
"co@npm:^4.6.0":
version: 4.6.0
resolution: "co@npm:4.6.0"
@@ -3073,6 +3089,18 @@ __metadata:
languageName: node
linkType: hard
+"eslint-plugin-tailwindcss@npm:^3.15.1":
+ version: 3.15.1
+ resolution: "eslint-plugin-tailwindcss@npm:3.15.1"
+ dependencies:
+ fast-glob: "npm:^3.2.5"
+ postcss: "npm:^8.4.4"
+ peerDependencies:
+ tailwindcss: ^3.4.0
+ checksum: bd16a6c34e24bf52aed27c59a22eb2721b23f3fee64519de591723f30098a5f9ddad2700ea576712186ec9cf52055550f1b50e2b4913d25680901452922622dc
+ languageName: node
+ linkType: hard
+
"eslint-scope@npm:^7.2.2":
version: 7.2.2
resolution: "eslint-scope@npm:7.2.2"
@@ -3249,7 +3277,7 @@ __metadata:
languageName: node
linkType: hard
-"fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2":
+"fast-glob@npm:^3.2.5, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2":
version: 3.3.2
resolution: "fast-glob@npm:3.3.2"
dependencies:
@@ -4417,10 +4445,12 @@ __metadata:
"@vitejs/plugin-react": "npm:^4.2.1"
autoprefixer: "npm:^10.4.18"
classnames: "npm:^2.5.1"
+ clsx: "npm:^2.1.0"
cspell: "npm:^8.4.1"
eslint: "npm:^8.57.0"
eslint-plugin-react-hooks: "npm:^4.6.0"
eslint-plugin-react-refresh: "npm:^0.4.5"
+ eslint-plugin-tailwindcss: "npm:^3.15.1"
jest: "npm:^29.7.0"
postcss: "npm:^8.4.35"
prettier: "npm:^3.2.5"
@@ -4429,6 +4459,7 @@ __metadata:
react-router-dom: "npm:^6.22.1"
sass: "npm:^1.71.1"
swiper: "npm:^11.0.7"
+ tailwind-merge: "npm:^2.2.2"
tailwindcss: "npm:^3.4.1"
ts-jest: "npm:^29.1.2"
typescript: "npm:^5.2.2"
@@ -5228,6 +5259,17 @@ __metadata:
languageName: node
linkType: hard
+"postcss@npm:^8.4.4":
+ version: 8.4.38
+ resolution: "postcss@npm:8.4.38"
+ dependencies:
+ nanoid: "npm:^3.3.7"
+ picocolors: "npm:^1.0.0"
+ source-map-js: "npm:^1.2.0"
+ checksum: 955407b8f70cf0c14acf35dab3615899a2a60a26718a63c848cf3c29f2467b0533991b985a2b994430d890bd7ec2b1963e36352b0774a19143b5f591540f7c06
+ languageName: node
+ linkType: hard
+
"prelude-ls@npm:^1.2.1":
version: 1.2.1
resolution: "prelude-ls@npm:1.2.1"
@@ -5380,6 +5422,13 @@ __metadata:
languageName: node
linkType: hard
+"regenerator-runtime@npm:^0.14.0":
+ version: 0.14.1
+ resolution: "regenerator-runtime@npm:0.14.1"
+ checksum: 1b16eb2c4bceb1665c89de70dcb64126a22bc8eb958feef3cd68fe11ac6d2a4899b5cd1b80b0774c7c03591dc57d16631a7f69d2daa2ec98100e2f29f7ec4cc4
+ languageName: node
+ linkType: hard
+
"repeat-string@npm:^1.6.1":
version: 1.6.1
resolution: "repeat-string@npm:1.6.1"
@@ -5677,6 +5726,13 @@ __metadata:
languageName: node
linkType: hard
+"source-map-js@npm:^1.2.0":
+ version: 1.2.0
+ resolution: "source-map-js@npm:1.2.0"
+ checksum: 7e5f896ac10a3a50fe2898e5009c58ff0dc102dcb056ed27a354623a0ece8954d4b2649e1a1b2b52ef2e161d26f8859c7710350930751640e71e374fe2d321a4
+ languageName: node
+ linkType: hard
+
"source-map-support@npm:0.5.13":
version: 0.5.13
resolution: "source-map-support@npm:0.5.13"
@@ -5856,6 +5912,15 @@ __metadata:
languageName: node
linkType: hard
+"tailwind-merge@npm:^2.2.2":
+ version: 2.2.2
+ resolution: "tailwind-merge@npm:2.2.2"
+ dependencies:
+ "@babel/runtime": "npm:^7.24.0"
+ checksum: 68a5e199848a467aed4f8d1a8d7b6a5b583ff72f1d2801e018bf245eaa41e6564b63ead9e2b708a214cefbd843970c5e0a21754d5f2a20e2c1238e25955685ce
+ languageName: node
+ linkType: hard
+
"tailwindcss@npm:^3.4.1":
version: 3.4.1
resolution: "tailwindcss@npm:3.4.1"