feat: submit relay button

This commit is contained in:
codytseng 2025-09-07 22:47:10 +08:00
parent ace4e94071
commit 7afd493619
17 changed files with 53 additions and 20 deletions

View file

@ -1,8 +1,9 @@
import Explore from '@/components/Explore'
import FollowingFavoriteRelayList from '@/components/FollowingFavoriteRelayList'
import Tabs from '@/components/Tabs'
import { Button } from '@/components/ui/button'
import PrimaryPageLayout from '@/layouts/PrimaryPageLayout'
import { Compass } from 'lucide-react'
import { Compass, Plus } from 'lucide-react'
import { forwardRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
@ -37,9 +38,25 @@ function ExplorePageTitlebar() {
const { t } = useTranslation()
return (
<div className="flex gap-2 items-center h-full pl-3">
<Compass />
<div className="text-lg font-semibold">{t('Explore')}</div>
<div className="flex gap-2 justify-between h-full">
<div className="flex gap-2 items-center h-full pl-3">
<Compass />
<div className="text-lg font-semibold">{t('Explore')}</div>
</div>
<Button
variant="ghost"
size="titlebar-icon"
className="relative w-fit px-3"
onClick={() => {
window.open(
'https://github.com/CodyTseng/awesome-nostr-relays/issues/new?template=add-relay.md',
'_blank'
)
}}
>
<Plus size={16} />
{t('Submit Relay')}
</Button>
</div>
)
}