| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <template>
- <NuxtLayout>
- <v-app>
- <div id="top" />
- <div class="topbar-container">
- <Topbar />
- </div>
- <div class="body">
- <NuxtPage />
- <BackToTheTop />
- </div>
- <v-footer no-gutters :height="36">
- </v-footer>
- </v-app>
- </NuxtLayout>
- </template>
- <script setup lang="ts">
- const route = useRoute()
- useHead(() => ({
- link: [
- {
- rel: 'canonical',
- href: 'https://olivier.massot.net' + route.path,
- },
- ],
- }))
- </script>
- <style scoped lang="scss">
- html {
- scroll-behavior: smooth;
- }
- .v-application {
- background: rgb(var(--v-theme-neutral));
- color: rgb(var(--v-theme-on-neutral));
- }
- .body, .topbar {
- margin: 0 20%;
- max-width: 100%;
- @media (max-width: 1280px) {
- margin: 0 10%;
- }
- @media (max-width: 600px) {
- margin: 0 3%;
- }
- }
- .body {
- padding: 18px;
- display: flex;
- flex-direction: column;
- flex: 1;
- }
- .topbar-container {
- border-bottom: solid 1px rgba(var(--v-theme-on-neutral), 0.2);
- margin-bottom: 3rem;
- position: sticky;
- top: 0;
- background: rgb(var(--v-theme-neutral));
- z-index: 1000;
- }
- :deep(h2) {
- margin: 48px 0 24px 0;
- padding-bottom: 9px;
- border-bottom: solid 1px rgba(var(--v-theme-on-neutral), 0.2);
- @media (max-width: 600px) {
- margin: 24px 0;
- }
- }
- .v-footer {
- max-height: 36px;
- display: flex;
- flex-direction: row;
- justify-content: center;
- border-top: rgb(var(--v-theme-neutral-strong));
- font-size: 12px;
- a {
- color: rgb(var(--v-theme-on-neutral));
- }
- span {
- margin: 0 24px;
- }
- }
- </style>
|