Nuxt Content 3 migration #12

Merged
eggy merged 81 commits from js into master 2022-08-10 18:38:39 -04:00
5 changed files with 14 additions and 9 deletions
Showing only changes of commit ef78861e16 - Show all commits

View File

@ -1,7 +1,14 @@
<template>
<a href="#" class="go-top"></a>
<Teleport to="body"> <a href="#" class="go-top"></a></Teleport>
</template>
<style>
body {
display: grid;
grid-template-columns: auto 0;
}
</style>
<style scoped>
.go-top {
--offset: 20rem;

View File

@ -1,6 +1,8 @@
<script setup lang="ts">
import ColourPicker from "./ColourPicker.vue";
import { navItems } from "@/data/navItems";
const props = defineProps<{ activeItem?: string }>();
</script>
<template>

View File

@ -25,7 +25,6 @@ useHead({ title: "Eggworld" });
</p>
</footer>
</div>
<ButtonToTop />
</template>
<style>
@ -76,12 +75,6 @@ html.dark footer {
--footer-drop-color: black;
}
div#__nuxt {
/* we need an element with only one child */
display: grid;
grid-template-columns: auto 0px;
}
@media screen and (max-width: 600px) {
main {
width: 90%;

View File

@ -6,6 +6,7 @@ useTitle("Home");
</script>
<template>
<ButtonToTop />
<main class="flex flex-col items-center justify-around gap-8">
<h1>Welcome!</h1>
<p>What are you here to see?</p>

View File

@ -2,4 +2,6 @@
useTitle("Stories");
</script>
<template></template>
<template>
<main class="flex grow">hello</main>
</template>