minor fixes

This commit is contained in:
ashkan o 2024-11-23 16:16:03 +03:30
parent 1424024b50
commit 09aa8cec56
6 changed files with 23 additions and 18 deletions

3
.gitignore vendored
View file

@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log* lerna-debug.log*
yarn.lock yarn.lock
bun.lockb
node_modules node_modules
.DS_Store .DS_Store
dist/ dist/
@ -18,6 +19,8 @@ coverage
/cypress/videos/ /cypress/videos/
/cypress/screenshots/ /cypress/screenshots/
.next
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*
!.vscode/extensions.json !.vscode/extensions.json

BIN
bun.lockb

Binary file not shown.

View file

@ -19,7 +19,7 @@ export function Footer() {
<Link href="/whitepaper">{t('footer.whitepaper')}</Link> <Link href="/whitepaper">{t('footer.whitepaper')}</Link>
<Link href="/tos">{t('footer.termsOfService')}</Link> <Link href="/tos">{t('footer.termsOfService')}</Link>
</nav> </nav>
<div className="flex items-center gap-4"> <div className="flex flex-wrap justify-center items-center gap-4">
<Link href="https://bsky.app/profile/parchlinux.com"> <Link href="https://bsky.app/profile/parchlinux.com">
<SiBluesky className="w-4 h-4" /> <SiBluesky className="w-4 h-4" />
</Link> </Link>

View file

@ -9,13 +9,13 @@ export function Navbar() {
return ( return (
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60"> <header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
<div className="mx-auto container px-4 flex h-14 items-center"> <div className="mx-auto container px-4 flex h-14 items-center">
<div className="me-4 hidden md:flex gap-2"> <div className="me-4 flex gap-2">
<Image src="/parch.svg" alt="Parch Logo" width={32} height={32} /> <Image src="/parch.svg" alt="Parch Logo" width={32} height={32} />
<Link href="/" className="me-6 flex items-center gap-2"> <Link href="/" className="me-6 flex items-center gap-2">
<span className="hidden font-bold sm:inline-block">{t('home.title')}</span> <span className="hidden font-bold sm:inline-block">{t('home.title')}</span>
</Link> </Link>
</div> </div>
<nav className="flex items-center gap-6 text-sm font-medium"> <nav className="hidden md:flex items-center gap-6 text-sm font-medium">
<Link href="/features">{t('navigation.features')}</Link> <Link href="/features">{t('navigation.features')}</Link>
<Link href="/download">{t('navigation.download')}</Link> <Link href="/download">{t('navigation.download')}</Link>
<Link href="/community">{t('navigation.community')}</Link> <Link href="/community">{t('navigation.community')}</Link>

View file

@ -5,7 +5,7 @@ export default function Document() {
<Html> <Html>
<Head> <Head>
<link <link
href="https://fonts.googleapis.com/css2?family=Vazirmatn&display=optional" href="https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap"
rel="stylesheet" rel="stylesheet"
/> />
</Head> </Head>

View file

@ -31,8 +31,8 @@ export default function DownloadPage({ item }) {
return ( return (
<main className="px-4 py-12 md:py-24 lg:py-32"> <main className="px-4 py-12 md:py-24 lg:py-32">
<div className="container mx-auto px-4 md:px-6 space-y-8 text-center"> <div className="container mx-auto px-4 md:px-6 space-y-8">
<h2 className="text-3xl font-bold sm:text-4xl md:text-5xl">{item.text[lang]}</h2> <h2 className="text-3xl font-bold sm:text-4xl md:text-5xl text-center">{item.text[lang]}</h2>
<Image src={item.img} width={800} height={450} className="mx-auto rounded-xl border shadow" /> <Image src={item.img} width={800} height={450} className="mx-auto rounded-xl border shadow" />
<Card className="max-w-[50rem] mx-auto p-8 bg-muted text-lg"> <Card className="max-w-[50rem] mx-auto p-8 bg-muted text-lg">
<Details <Details
@ -42,21 +42,23 @@ export default function DownloadPage({ item }) {
hash={item.hash} hash={item.hash}
maintainer={item.maintainer} /> maintainer={item.maintainer} />
</Card> </Card>
<div className="flex justify-center">
{item.changelog && ( {item.changelog && (
<Button asChild variant="outline" size="lg" className="rounded-full text-lg py-6 inline-flex me-4"> <Button asChild variant="outline" size="lg" className="rounded-full text-lg py-6 flex me-4">
<Link href={item.changelog} download> <Link href={item.changelog} download>
<SiGitlab className="h-4 w-4" /> <SiGitlab className="h-4 w-4" />
{t('details.changelog')} {t('details.changelog')}
</Link> </Link>
</Button> </Button>
)} )}
<Button asChild size="lg" className="rounded-full text-lg py-6 inline-flex"> <Button asChild size="lg" className="rounded-full text-lg py-6 flex">
<Link href={item.href} download> <Link href={item.href} download>
<Download className="h-4 w-4" /> <Download className="h-4 w-4" />
{t('details.download', item.text[lang])} {t('details.download', item.text[lang])}
</Link> </Link>
</Button> </Button>
</div> </div>
</div>
</main> </main>
) )
} }