Skip to content

Commit

Permalink
Merge pull request #39 from ashkan-o/main
Browse files Browse the repository at this point in the history
Minor Fixes
  • Loading branch information
behdanisohrab authored Nov 23, 2024
2 parents 1424024 + c24b2c5 commit b0227dd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

yarn.lock
bun.lockb
node_modules
.DS_Store
dist/
Expand All @@ -18,6 +19,8 @@ coverage
/cypress/videos/
/cypress/screenshots/

.next

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function Footer() {
<Link href="/whitepaper">{t('footer.whitepaper')}</Link>
<Link href="/tos">{t('footer.termsOfService')}</Link>
</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">
<SiBluesky className="w-4 h-4" />
</Link>
Expand Down
4 changes: 2 additions & 2 deletions components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export function Navbar() {
return (
<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="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} />
<Link href="/" className="me-6 flex items-center gap-2">
<span className="hidden font-bold sm:inline-block">{t('home.title')}</span>
</Link>
</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="/download">{t('navigation.download')}</Link>
<Link href="/community">{t('navigation.community')}</Link>
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Document() {
<Html>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Vazirmatn&display=optional"
href="https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap"
rel="stylesheet"
/>
</Head>
Expand Down
32 changes: 17 additions & 15 deletions pages/download/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,33 @@ export default function DownloadPage({ item }) {

return (
<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">
<h2 className="text-3xl font-bold sm:text-4xl md:text-5xl">{item.text[lang]}</h2>
<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 text-center">{item.text[lang]}</h2>
<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 overflow-auto">
<Details
text={item.text[lang]}
build_date={item.build_date}
size={item.size}
hash={item.hash}
maintainer={item.maintainer} />
</Card>
{item.changelog && (
<Button asChild variant="outline" size="lg" className="rounded-full text-lg py-6 inline-flex me-4">
<Link href={item.changelog} download>
<SiGitlab className="h-4 w-4" />
{t('details.changelog')}
<div className="flex justify-center">
{item.changelog && (
<Button asChild variant="outline" size="lg" className="rounded-full text-lg py-6 flex me-4">
<Link href={item.changelog} download>
<SiGitlab className="h-4 w-4" />
{t('details.changelog')}
</Link>
</Button>
)}
<Button asChild size="lg" className="rounded-full text-lg py-6 flex">
<Link href={item.href} download>
<Download className="h-4 w-4" />
{t('details.download', item.text[lang])}
</Link>
</Button>
)}
<Button asChild size="lg" className="rounded-full text-lg py-6 inline-flex">
<Link href={item.href} download>
<Download className="h-4 w-4" />
{t('details.download', item.text[lang])}
</Link>
</Button>
</div>
</div>
</main>
)
Expand Down

0 comments on commit b0227dd

Please sign in to comment.