Skip to content

Commit

Permalink
Embed Navbar & Footer in default layout (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrrine authored Jul 7, 2024
1 parent 6e45c2a commit 5d0ad57
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 52 deletions.
34 changes: 0 additions & 34 deletions components/navBar.vue

This file was deleted.

14 changes: 0 additions & 14 deletions components/pageFooter.vue

This file was deleted.

35 changes: 31 additions & 4 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,39 @@
<template>
<div class="flex justify-center flex-col p-6 gap-8">
<navBar />
<nav
class="sm:mx-[5%] text-[color:var(--big-text-colour)] select-none font-bold bg-[color:var(--brand-colour)] w-[calc(100%-1.5rem-var(--scrollbar-width))] p-2.5 rounded-3xl flex flex-row items-center text-base justify-between gap-6"
>
<NuxtLink
class="font-[500] italic text-lg flex items-center flex-row gap-4 tracking-wider"
to="/"
>
<img class="h-4" src="/img/logotype.svg" />
</NuxtLink>

<div class="sm:m-[5%] gap-8 flex-col flex">
<NuxtLink
class="text-[0.5rem] sm:text-[1rem] internalFont"
to="/alternatives"
>
Alternatives
</NuxtLink>
</nav>

<main class="sm:m-[5%] gap-8 flex-col flex">
<slot />
</div>
</main>

<pageFooter />
<footer class="flex flex-col gap-1">
<span class="font-[500] text-[var(--text-colour)] text-xs text-center">
THANKS FOR READING - WRITTEN BY BLURRYFACE - DESIGNED BY WORLDWIDEPIXEL
&bull;
<ExternalLink to="https://github.com/blryface/notessential"
>PAGE SOURCE</ExternalLink
>
</span>
<span class="font-[500] italic text-slate-400 text-xs text-center">
THIS SITE IS IN NO WAY AFFILIATED WITH ESSENTIAL OR SPARK UNIVERSE
</span>
</footer>
</div>
</template>

Expand Down

0 comments on commit 5d0ad57

Please sign in to comment.