Skip to content

Commit

Permalink
add GitHub link
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu1818 committed Nov 24, 2024
1 parent f8c227f commit b0f153d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
'use client'

import { Icon } from '@iconify/react'
import { useTranslation } from 'react-i18next'

import { IconsGrid } from '@/components/icons-grid'
import { PreviewDialog } from '@/components/preview-icon-dialog'
import { PreviewText } from '@/components/preview-text'
import { PreviewUpload } from '@/components/preview-upload'
import { ThemeToggle } from '@/components/theme-toggle'
import { Button } from '@/components/ui/button'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { useStore } from '@/store'
import { Settings, Tab } from '@/store/constants'
Expand Down Expand Up @@ -37,12 +39,21 @@ export default function Home() {
}
}}
>
<div className='flex items-center justify-between'>
<TabsList>
<div className='grid grid-cols-[1fr_auto_auto] gap-4'>
<TabsList className='justify-self-start'>
<TabsTrigger value={Tab.Icon}>{t('tabs.icon')}</TabsTrigger>
<TabsTrigger value={Tab.Text}>{t('tabs.text')}</TabsTrigger>
<TabsTrigger value={Tab.Upload}>{t('tabs.upload')}</TabsTrigger>
</TabsList>
<Button asChild className='p-4' size='icon' variant='ghost'>
<a
href='https://github.com/zhangyu1818/appicon-forge'
rel='noreferrer'
target='_blank'
>
<Icon icon='octicon:mark-github-24' />
</a>
</Button>
<ThemeToggle />
</div>
<TabsContent className='flex-1 overflow-hidden' value={Tab.Icon}>
Expand Down

0 comments on commit b0f153d

Please sign in to comment.