Merge pull request #44 from ashkan-o/main

fixed balena etcher button
This commit is contained in:
Sohrab Behdani 2024-12-07 15:05:02 +03:30 committed by GitHub
commit aa576ba576
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View file

@ -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"

View file

@ -83,7 +83,8 @@ export default {
)
},
download: text => `دانلود ${text}`,
changelog: 'مشاهدهٔ تغییرات'
changelog: 'مشاهدهٔ تغییرات',
balenaEtcher: 'نوشتن با Balena Etcher'
},
error_404: "ارور ۴۰۴ - برگه پیدا نشد"

View file

@ -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>
@ -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>