feat: make totop optional and normal
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import Navbar from "../components/Navbar.vue";
|
||||
|
||||
// this is in /components so i can import the thing
|
||||
useHead({ title: "Eggworld" });
|
||||
</script>
|
||||
|
||||
@@ -25,6 +24,7 @@ useHead({ title: "Eggworld" });
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<slot name="top-button" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
1
layouts/error.vue
Normal file
1
layouts/error.vue
Normal file
@@ -0,0 +1 @@
|
||||
<template>error!</template>
|
17
layouts/withtop.vue
Normal file
17
layouts/withtop.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import Default from "./default.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Default>
|
||||
<slot />
|
||||
<template #top-button> <ButtonToTop /> </template>
|
||||
</Default>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
div#__nuxt {
|
||||
display: grid;
|
||||
grid-template-columns: auto 0;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user