From c9aeabee4c37c7a31edf2f8aca80c5283a48852d Mon Sep 17 00:00:00 2001 From: YuzeTT Date: Sat, 18 Nov 2023 19:52:23 +0800 Subject: [PATCH] chore: add starbucks --- src/pages/tools/starbucks.tsx | 71 +++++++++++++++++++++++++++++++++++ src/utils/router.ts | 21 ++++++----- 2 files changed, 83 insertions(+), 9 deletions(-) create mode 100644 src/pages/tools/starbucks.tsx diff --git a/src/pages/tools/starbucks.tsx b/src/pages/tools/starbucks.tsx new file mode 100644 index 0000000..8a16fc8 --- /dev/null +++ b/src/pages/tools/starbucks.tsx @@ -0,0 +1,71 @@ +import dayjs from 'dayjs' +import HighText from "../../components/HighText"; +import { useOutletContext } from "react-router-dom"; +import { RefObject, useState } from "react"; +import BaseCard from "../../components/BaseCard"; +import { RadioGroup, Radio } from '@chakra-ui/react'; + +export default function Chapanda() { + const [highLight, ref]:[highLight: boolean, ref: RefObject] = useOutletContext(); + + const [type, setType] = useState('1') + + return ( +
+ {setType(v)}}> +
+ + 啡快 + +
+
+ + 外带 + +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+ ) +} diff --git a/src/utils/router.ts b/src/utils/router.ts index 1ffc182..c43d8a0 100644 --- a/src/utils/router.ts +++ b/src/utils/router.ts @@ -12,9 +12,9 @@ const hot = ['#FEE2E2','#DC2626'] const list = { done: [ { - name: ['人生四格', '50mm*150mm'], - logo: '/images/rssg.webp', - url: '/tools/rssg', + name: ['星巴克', '咖啡标签'], + logo: '/images/starbucks.png', + url: '/tools/starbucks', tag: '新上线', tag_color: ['#dcfce7','#16a34a'] }, @@ -22,8 +22,15 @@ const list = { name: ['人生二格', '85mm*54mm 明信片'], logo: '/images/rslg.webp', url: '/tools/rseg', - tag: '新上线', - tag_color: ['#dcfce7','#16a34a'] + tag: '热门', + tag_color: hot + }, + { + name: ['人生四格', '50mm*150mm'], + logo: '/images/rssg.webp', + url: '/tools/rssg', + tag: '', + tag_color: [] }, { name: ['Instagram', '三寸 小卡/透卡'], @@ -139,10 +146,6 @@ const list = { }, ], todo: [ - { - name: ['星巴克', '咖啡标签'], - logo: '/images/starbucks.png', - }, { name: ['茶颜悦色', '奶茶标签'], logo: '/images/sexytea.png',