generated from onwidget/astrowind
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50ddc27
commit 0315e9d
Showing
2 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |