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
+