From 2db1dd640d7be0d946688229377d64888e9fb6c0 Mon Sep 17 00:00:00 2001 From: Jorge Vargas Date: Tue, 11 Feb 2025 00:33:36 -0600 Subject: [PATCH] Add Play Asia footer --- src/components/Footer.astro | 48 +++++++++++++++++++++++++++++++++++++ src/layouts/base.astro | 3 ++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/components/Footer.astro diff --git a/src/components/Footer.astro b/src/components/Footer.astro new file mode 100644 index 0000000..b31ba01 --- /dev/null +++ b/src/components/Footer.astro @@ -0,0 +1,48 @@ +--- +const { permissions } = Astro.locals +const show = !permissions.includes('SKIP_ADS') +--- + +{ show ? ( + <> + + + + +) : null} \ No newline at end of file diff --git a/src/layouts/base.astro b/src/layouts/base.astro index e681da0..ba3cef5 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -3,6 +3,7 @@ import { Toaster } from 'react-hot-toast' import { languageTag } from '../paraglide/runtime' import Header from 'components/Header.astro' +import Footer from 'components/Footer.astro' import 'styles/global.css' --- @@ -29,6 +30,6 @@ import 'styles/global.css' -
This is the footer
+