Skip to content

Commit

Permalink
Better download page
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed Dec 16, 2023
1 parent 50ddc27 commit 0315e9d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
21 changes: 21 additions & 0 deletions src/components/widgets/Button.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
import Icon from 'astro-icon';
export interface Props {
text: string;
href: string;
icon?: string;
}
const { href, icon, text } = Astro.props;
---

<a
class="btn btn-primary w-full sm:w-auto"
href={href}
target="_blank"
rel="noopener"
>
{icon && <Icon name={icon} class="w-5 h-5 mr-1 -ml-1.5" />}
{text}
</a>
31 changes: 11 additions & 20 deletions src/pages/docs/download.astro
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
---
import Layout from "~/layouts/PageLayout.astro";
import CallToAction from "~/components/widgets/CallToAction.astro";
import Button from "~/components/widgets/Button.astro";
const meta = {
title: "FAQs",
title: "FAQs",
};
---

<Layout {meta}>
<CallToAction
title="Android"
subtitle="Download the stable android app"
callToAction={{
text: "Google Play",
href: "https://play.google.com/store/apps/details?id=de.shortdev.nearby_sharing_windows",
icon: "fluent:arrow-download-24-regular",
}}
/>

<CallToAction
title="Android (Preview)"
subtitle="Download the preview android app and start receiving!"
callToAction={{
text: "Google Play",
href: "https://play.google.com/apps/testing/de.shortdev.nearby_sharing_windows",
icon: "fluent:arrow-download-24-regular",
}}
/>
<CallToAction title="Android" subtitle="Send and receive files on your phone">
<div slot="callToAction">
<div class="mt-6 flex flex-row gap-3 flex-wrap">
<Button text="Google Play" href="https://play.google.com/store/apps/details?id=de.shortdev.nearby_sharing_windows" icon="tabler:brand-google-play" />
<Button text="Google Play (Preview)" href="https://play.google.com/apps/testing/de.shortdev.nearby_sharing_windows" icon="tabler:brand-google-play" />
<Button text="GitHub" href="https://github.com/nearby-sharing/android/releases" icon="tabler:brand-github" />
</div>
</div>
</CallToAction>
</Layout>

0 comments on commit 0315e9d

Please sign in to comment.