#77 TBD footer

This commit is contained in:
neil 2022-12-09 16:11:05 +08:00
parent 8a909948ca
commit 7ea443b0c5
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,8 @@
<footer class="h-autofont-machina relative w-full bg-black">
<section class="h-56 p-4 px-16">
<a class="text-xl text-primary" href="/"> Quick Links (TBD) </a>
</section>
<section class="h-16 border border-r-0 border-gray p-4 px-16">
<a class="text-sm text-primary" href="/"> terms and services </a>
</section>
</footer>

View file

@ -2,6 +2,7 @@
<script lang="ts">
import '$appcss';
import NavBar from '$components/NavBar/NavBar.svelte';
import FooterLinks from '$components/FooterLinks/FooterLinks.svelte';
import { backLink as backLinkStore } from '$libs/stores';
@ -15,17 +16,20 @@
<nav class="border border-t-0 border-l-0 border-b-0 border-gray">
<NavBar />
</nav>
<section class="px-16 pt-24 pb-24">
<section class="pt-24">
{#if backLink}
<header class="px-16 py-2 text-3xl text-gray hover:text-primary">
<a href={backLink}>&#8592</a>
</header>
{/if}
<figure />
<div>
<div class="px-16">
<!-- all pages get inserted in this slot -->
<slot />
</div>
<footer class="mt-8 w-full border border-r-0 border-gray bg-black">
<FooterLinks />
</footer>
</section>
</div>
@ -70,4 +74,8 @@
div {
position: relative;
}
footer {
height: 100px;
}
</style>