feat: 📈 add analytics banner component and privacy policy
This commit is contained in:
parent
1143b57085
commit
f4bc779c43
4 changed files with 203 additions and 1 deletions
44
src/layouts/page.webc
Normal file
44
src/layouts/page.webc
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
layout: base.webc
|
||||
---
|
||||
|
||||
<main>
|
||||
<page-content>
|
||||
<h1 @text="$data.title || $data.eleventyNavigation.key"></h1>
|
||||
<template @raw="content" webc:nokeep></template>
|
||||
</page-content>
|
||||
|
||||
<page-footer></page-footer>
|
||||
</main>
|
||||
|
||||
<style>
|
||||
main {
|
||||
--inbox-spacing: 1rem;
|
||||
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
justify-items: center;
|
||||
align-items: start;
|
||||
gap: 1em;
|
||||
grid-auto-columns: 100%;
|
||||
grid-template-areas:
|
||||
'content'
|
||||
'footer';
|
||||
|
||||
margin-block: var(--container-spacing-top-safe) var(--container-spacing-bottom-safe);
|
||||
margin-inline: var(--container-spacing-left-safe) var(--container-spacing-right-safe);
|
||||
|
||||
margin-block: var(--page-spacing);
|
||||
|
||||
@media (min-width: 64em) {
|
||||
--inbox-spacing: 1.5rem;
|
||||
|
||||
grid-auto-columns: revert;
|
||||
grid-template-columns: minmax(0, 65ch);
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-inline: var(--inbox-spacing);
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue