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> <template>
<a href="#" class="go-top"></a> <Teleport to="body"> <a href="#" class="go-top"></a></Teleport>
</template> </template>
<style>
body {
display: grid;
grid-template-columns: auto 0;
}
</style>
<style scoped> <style scoped>
.go-top { .go-top {
--offset: 20rem; --offset: 20rem;

View File

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

View File

@ -25,7 +25,6 @@ useHead({ title: "Eggworld" });
</p> </p>
</footer> </footer>
</div> </div>
<ButtonToTop />
</template> </template>
<style> <style>
@ -76,12 +75,6 @@ html.dark footer {
--footer-drop-color: black; --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) { @media screen and (max-width: 600px) {
main { main {
width: 90%; width: 90%;

View File

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

View File

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