Skip to content
Snippets Groups Projects
Commit 8ea95749 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

use icon

parent f6e155b8
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,8 @@
<v-app-bar>
<v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
<v-toolbar-title>DefenseFinder Wiki</v-toolbar-title>
<v-btn @click="toggle()">toggle theme</v-btn>
<v-btn icon="mdi-theme-light-dark" @click="toggle()">
</v-btn>
</v-app-bar>
<v-navigation-drawer v-model="drawer" :border="0">
<v-card flat>
......
......@@ -5,7 +5,7 @@ export function useCustomTheme() {
const isDark = useDark({
valueDark: 'dark',
valueLight: 'light',
initialValue: 'light',
initialValue: 'auto',
onChanged: (dark: boolean) => {
$vuetify.theme.global.name.value = dark ? 'dark' : 'light'
},
......
......@@ -3,34 +3,33 @@ const { page, surround } = useContent();
import { useCustomTheme } from '~/composables/useCustomTheme'
const { isDark } = useCustomTheme()
</script>
<template>
<v-card>
<VApp :theme="isDark ? 'dark' : 'light'">
<v-main style="min-height: 300px">
<!-- <v-container class="fill-height w-auto" > -->
<!-- <v-card flat max-width="1000" min-height="300" color="transparent">
<VApp :theme="isDark ? 'dark' : 'light'">
<v-main style="min-height: 300px">
<!-- <v-container class="fill-height w-auto" > -->
<!-- <v-card flat max-width="1000" min-height="300" color="transparent">
<v-card-text> -->
<v-container>
<slot />
<!-- </v-card-text>
<v-container>
<slot />
<!-- </v-card-text>
</v-card> -->
<EditGitlab />
<v-row justify="space-between">
<v-col v-for="(surroundPage, i) in surround" :key="surroundPage?._id" cols="auto">
<v-btn v-if="surroundPage" :prepend-icon="i === 0 ? 'mdi-arrow-left' : undefined"
:append-icon="i === 1 ? 'mdi-arrow-right' : undefined" variant="outlined" color="primary"
:to="surroundPage?._path">{{ surroundPage?.title }}</v-btn>
</v-col>
</v-row>
</v-container>
<v-footer id="app-footer" app>footer</v-footer>
<!-- </v-container> -->
</v-main>
<NavNavbar />
<NavTableOfContent :links="page.body.toc.links" />
</VApp>
</v-card>
<EditGitlab />
<v-row justify="space-between">
<v-col v-for="(surroundPage, i) in surround" :key="surroundPage?._id" cols="auto">
<v-btn v-if="surroundPage" :prepend-icon="i === 0 ? 'mdi-arrow-left' : undefined"
:append-icon="i === 1 ? 'mdi-arrow-right' : undefined" variant="outlined" color="primary"
:to="surroundPage?._path">{{ surroundPage?.title }}</v-btn>
</v-col>
</v-row>
</v-container>
<v-footer id="app-footer" app>footer</v-footer>
<!-- </v-container> -->
</v-main>
<NavNavbar />
<NavTableOfContent :links="page.body.toc.links" />
</VApp>
</template>
<style scoped>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment