-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdefault.vue
37 lines (34 loc) · 1.25 KB
/
default.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script setup lang="ts">
import { chakra, useColorModeValue } from '@chakra-ui/vue-next';
import TheNavbar from '~/components/TheNavbar.vue'
import TheSidebar from '~/components/navigation/TheSidebar.vue';
/**
* Styling
*/
const color = useColorModeValue('gray.700', 'white');
</script>
<template>
<chakra.div :min-h="['auto', 'auto', '100vh']" w="100%" :color="color">
<TheNavbar />
<chakra.div max-w="8xl" mx="auto" d="flex">
<!-- Sidebar Navigation -->
<chakra.div
:display="{ base: 'none', lg: 'block' }" position="fixed" z-index="30" bottom="0" top="6rem"
left="max(0px, calc(50% - 45rem))" right="auto" width="19.5rem" pb="10" px="8" overflow-y="auto"
overscroll-behavior="contain"
>
<TheSidebar />
</chakra.div>
<chakra.main :pl="{ base: 4, lg: '19.5rem' }" pt="4" pb="24" :pr="{ base: 4, xl: 16 }" class="chakra-prose">
<chakra.div :mr="{ xl: '15.5rem' }" :pl="{ base: 2, lg: '1rem' }">
<slot />
<c-h-stack align-items="center" mt="6">
<c-icon name="info" />
<p>Edit this page on GitHub</p>
</c-h-stack>
</chakra.div>
<!-- <table-of-contents /> -->
</chakra.main>
</chakra.div>
</chakra.div>
</template>