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

clean

parent 73b858ad
No related branches found
No related tags found
No related merge requests found
Pipeline #115887 passed
...@@ -24,10 +24,6 @@ watchEffect(() => { ...@@ -24,10 +24,6 @@ watchEffect(() => {
theme.global.name.value = switchTheme.value ? "dark" : "light"; theme.global.name.value = switchTheme.value ? "dark" : "light";
}) })
// function toggleSwitchTheme() {
// theme.global.name.value = switchTheme.value ? "light" : "dark";
// }
const sections = ref([ const sections = ref([
{ {
id: "webservice", id: "webservice",
......
<script setup lang="ts">
const { page } = useContent();
// import { useCustomTheme } from '~/composables/useCustomTheme'
import { useDisplay } from 'vuetify'
// const { isDark } = useCustomTheme()
// const { mobile } = useDisplay()
</script>
<template> <template>
<VApp> <VApp>
<v-main style="min-height: 300px"> <v-main style="min-height: 300px">
<v-container> <v-container>
<slot /> <slot />
<!-- <EditGitlab /> -->
<NavPrevNext /> <NavPrevNext />
</v-container> </v-container>
<!-- <Footer></Footer> -->
</v-main> </v-main>
<NavNavbar /> <NavNavbar />
<nav-back-to-top /> <nav-back-to-top />
......
<script setup lang="ts"> <script setup lang="ts">
const { page } = useContent(); const { page } = useContent();
// import { useCustomTheme } from '~/composables/useCustomTheme'
import { useDisplay } from 'vuetify'
const scrollThreshold = ref(200) const scrollThreshold = ref(200)
const density = ref("prominent") const density = ref<'compact' | 'prominent'>("prominent")
function onScroll(e) { function onScroll() {
if (window.scrollY > scrollThreshold.value) { if (window.scrollY > scrollThreshold.value) {
density.value = "compact" density.value = "compact"
} }
...@@ -15,12 +11,7 @@ function onScroll(e) { ...@@ -15,12 +11,7 @@ function onScroll(e) {
</script> </script>
<template> <template>
<VApp> <VApp>
<v-main style="min-height: 300px"> <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 v-scroll="onScroll"> <v-container v-scroll="onScroll">
<slot /> <slot />
<!-- </v-card-text> <!-- </v-card-text>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment