Skip to content

Commit

Permalink
Merge pull request #44 from ashkan-o/main
Browse files Browse the repository at this point in the history
fixed balena etcher button
  • Loading branch information
behdanisohrab authored Dec 7, 2024
2 parents f09764f + 0e93e5c commit aa576ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export default {
)
},
download: text => `Download ${text}`,
changelog: 'View Changelog'
changelog: 'View Changelog',
balenaEtcher: 'Flash with Balena Etcher'
},

error_404: "Error 404 - Page Not Found"
Expand Down
3 changes: 2 additions & 1 deletion i18n/fa.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export default {
)
},
download: text => `دانلود ${text}`,
changelog: 'مشاهدهٔ تغییرات'
changelog: 'مشاهدهٔ تغییرات',
balenaEtcher: 'نوشتن با Balena Etcher'
},

error_404: "ارور ۴۰۴ - برگه پیدا نشد"
Expand Down
10 changes: 6 additions & 4 deletions pages/download/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function DownloadPage({ item }) {
hash={item.hash}
maintainer={item.maintainer} />
</Card>
<div className="flex flex-wrap justify-center gap-2">
<div className="flex max-[520px]:flex-col flex-wrap justify-center gap-2">
{item.changelog && (
<Button asChild variant="outline" size="lg" className="rounded-full text-lg py-6 flex me-4">
<Link href={item.changelog} download>
Expand All @@ -57,9 +57,11 @@ export default function DownloadPage({ item }) {
{t('details.download', item.text[lang])}
</Link>
</Button>
<Link href={`https://efp.balena.io/open-image-url?imageUrl=${item.href}`} className="hover:brightness-110 duration-200 shrink-0">
<img src="http://balena.io/flash-with-etcher.png" className="h-12 drop-shadow" />
</Link>
<Button asChild variant="outline" size="lg" className="rounded-full text-lg py-6 flex">
<Link href={`https://efp.balena.io/open-image-url?imageUrl=${item.href}`}>
{t('details.balenaEtcher')}
</Link>
</Button>
</div>
</div>
</main>
Expand Down

0 comments on commit aa576ba

Please sign in to comment.