Skip to content

Commit

Permalink
chore: boom
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzeTT committed Nov 22, 2023
1 parent ec48efc commit 9a3b8f2
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 10 deletions.
Binary file added public/images/icons/damai.webp
Binary file not shown.
Binary file added public/images/icons/goodme.webp
Binary file not shown.
Binary file added public/images/icons/heytea.webp
Binary file not shown.
Binary file added public/images/icons/ins.webp
Binary file not shown.
Binary file added public/images/icons/lucking_coffee.webp
Binary file not shown.
Binary file added public/images/icons/music.webp
Binary file not shown.
Binary file added public/images/icons/rseg.webp
Binary file not shown.
Binary file added public/images/icons/rssg.webp
Binary file not shown.
15 changes: 15 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function index() {
<div className='w-40 h-40 rounded-full bg-blue-100 absolute -top-10 -left-10 z-0 blur-circle'></div>
<div className='w-40 h-40 rounded-full bg-green-100 absolute top-10 -right-10 z-0 blur-circle'></div>
<div className='w-40 h-40 rounded-full bg-purple-100 absolute top-30 left-10 z-0 blur-circle'></div>

<div className='my-4 relative p-4'>
<img src='/images/big-sticker_logo_2.webp' alt='logo' className='w-12 h-12' />
<div className='text-3xl op90 mt-5'>{getMsg()}</div>
Expand Down Expand Up @@ -84,6 +85,20 @@ export default function index() {
<AccountButton />
</div>
</div>
<div className='mb-6 mt-6 text-[24px] font-bold relative'>所有工具</div>
<div className='grid grid-cols-2 md:grid-cols-3 gap-8'>
{list.done.map((item, key)=>(
<a href={item.url} className='flex items-center' key={key}>
<div className={`flex items-center justify-center h-13.5 w-13.5 rounded-md p-3`} style={{background: `linear-gradient(to top right, ${item.color[0]}, ${item.color[1]})`}}>
<img src={item.logo} alt="logo" className='w-auto max-h-8 h-auto' />
</div>
<div className='ml-4'>
<div className='text-md font-bold'>{item.name[0]}</div>
<div className='text-xs op50 mt-1'>{item.name[1]}</div>
</div>
</a>
))}
</div>
<div text='sm' op50 mb-2>已完成</div>
<div className='grid grid-cols-2 md:grid-cols-3 gap-3'>
{list.done.map((item, key)=>(
Expand Down
40 changes: 30 additions & 10 deletions src/utils/router.ts
Original file line number Diff line number Diff line change
@@ -1,153 +1,173 @@
import LuckingCoffee from '/images/lucking_coffee.svg'

Check failure on line 1 in src/utils/router.ts

View workflow job for this annotation

GitHub Actions / build (18)

'LuckingCoffee' is declared but its value is never read.
import Train from '/images/train.svg'
import Ticket_ from '/images/damai.png'
// import Ticket_ from '/images/damai.png'
import Ticket from '/images/cinema_logo.png'
import Mcdonald from '/images/mcdonald.png'
import Heytea from '/images/heytea.png'

Check failure on line 6 in src/utils/router.ts

View workflow job for this annotation

GitHub Actions / build (18)

'Heytea' is declared but its value is never read.
import Chagee from '/images/chagee.png'

const hot = ['#FEE2E2','#DC2626']
// const warn = ['#FEF3C7','#D97706']

// @unocss-include
const list = {
done: [
{
name: ['Apple Music', '播放器 透卡/小卡'],
logo: '/images/apple-music-icon.svg',
logo: '/images/icons/music.webp',
url: '/tools/music',
color: ['#EB4666', '#EF4146'],
tag: '还没做好',
tag_color: ['#dcfce7','#16a34a']
},
{
name: ['星巴克', '咖啡标签'],
logo: '/images/starbucks.png',
url: '/tools/starbucks',
color: ['#116E49', '#0f8b5a'],
tag: '新上线',
tag_color: ['#dcfce7','#16a34a']
},
{
name: ['人生二格', '85mm*54mm 明信片'],
logo: '/images/rslg.webp',
logo: '/images/icons/rseg.webp',
url: '/tools/rseg',
color: ['#F1A050', '#F3AA3C'],
tag: '热门',
tag_color: hot
},
{
name: ['人生四格', '50mm*150mm'],
logo: '/images/rssg.webp',
logo: '/images/icons/rssg.webp',
url: '/tools/rssg',
color: ['#F1A050', '#F3AA3C'],
tag: '',
tag_color: []
},
{
name: ['Instagram', '三寸 小卡/透卡'],
logo: '/images/instagram/logo.webp',
logo: '/images/icons/ins.webp',
url: '/tools/instagram',
color: ['#FFCF00', '#FF009E'],
tag: '热门',
tag_color: hot
},
{
name: ['茶百道', '奶茶标签'],
logo: '/images/chapanda.webp',
url: '/tools/chapanda',
color: ['#0A4DDC', '#3676ff'],
tag: '热门',
tag_color: hot
},
{
name: ['古茗', '奶茶标签'],
logo: '/images/goodme.webp',
logo: '/images/icons/goodme.webp',
url: '/tools/goodme',
color: ['#4B4746', '#2E3746'],
tag: '热门',
tag_color: hot
},
{
name: ['仿拍立得', '三寸 小卡'],
logo: '/images/fpld.webp',
url: '/fpld',
color: ['#5D39DA', '#7E42DD'],
tag: '热门',
tag_color: hot
},
{
name: ['大麦票根', '纪念票根'],
logo: Ticket_,
logo: '/images/icons/damai.webp',
url: '/ticket',
color: ['#FF2869', '#ff5286'],
tag: '热门',
tag_color: hot
},
{
name: ['喜茶', '奶茶标签'],
logo: Heytea,
logo: '/images/icons/heytea.webp',
url: '/tools/heytea',
color: ['#EB4666', '#EF4146'],
tag: '热门',
tag_color: hot
},
{
name: ['瑞幸咖啡', '咖啡标签'],
logo: LuckingCoffee,
logo: '/images/icons/lucking_coffee.webp',
url: '/lucking_coffee',
color: ['#EB4666', '#EF4146'],
tag: '热门',
tag_color: hot
},
{
name: ['沪上阿姨', '奶茶标签'],
logo: '/images/hsay.jpg',
url: '/tools/hsay',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['库迪咖啡', '咖啡标签'],
logo: '/images/cotti.png',
url: '/tools/cotti',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['照片打卡', '纪念卡'],
logo: '/images/photo.png',
url: '/photo',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['路牌', '你懂的'],
logo: '/images/guideboard.png',
url: '/guideboard',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['蜜雪冰城', '奶茶标签'],
logo: '/images/mxbc.png',
url: '/tools/mxbc',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['霸王茶姬', '奶茶标签'],
logo: Chagee,
url: '/tools/chagee',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['观影纪念票', '纪念票根'],
logo: Ticket,
url: '/tools/cinema_ticket',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['高铁票', '纪念票根'],
logo: Train,
url: '/train',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
{
name: ['麦当劳', '小票'],
logo: Mcdonald,
url: '/mcdonald',
color: ['#EB4666', '#EF4146'],
tag: '',
tag_color: ['','']
},
Expand Down

0 comments on commit 9a3b8f2

Please sign in to comment.