app.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <NuxtLayout>
  3. <v-app>
  4. <a id="top" />
  5. <div class="content-wrapper">
  6. <div class="body">
  7. <header>
  8. <Topbar />
  9. </header>
  10. <NuxtPage />
  11. <BackToTheTop />
  12. </div>
  13. <Footer />
  14. </div>
  15. </v-app>
  16. </NuxtLayout>
  17. </template>
  18. <script setup lang="ts">
  19. const route = useRoute()
  20. useHead(() => ({
  21. link: [
  22. {
  23. rel: 'canonical',
  24. href: 'https://sauvagerie.fr' + route.path,
  25. },
  26. ],
  27. }))
  28. </script>
  29. <style lang="scss">
  30. html {
  31. scroll-behavior: smooth;
  32. height: 100%;
  33. overflow-x: hidden;
  34. }
  35. body {
  36. min-height: 100%;
  37. padding: 0;
  38. margin: 0;
  39. }
  40. .v-application {
  41. background: url('/images/photos/20250624_220653.jpg') no-repeat center center fixed !important;
  42. background-size: cover !important;
  43. color: rgb(var(--v-theme-on-background)) !important;
  44. font-family: Inter, sans-serif;
  45. min-height: 100vh;
  46. padding: 20px 0 0 0; /* Removed padding to allow footer to extend to the edges */
  47. box-sizing: border-box;
  48. }
  49. .content-wrapper {
  50. display: flex;
  51. flex-direction: column;
  52. min-height: calc(100vh - 20px); /* Account for top padding of v-application */
  53. }
  54. .body {
  55. padding: 28px;
  56. display: flex;
  57. flex-direction: column;
  58. flex: 1;
  59. margin: 20px 15% 20px 15%; /* Reduced bottom margin since footer is not fixed anymore */
  60. background-color: rgba(var(--v-theme-card-background), 0.65);
  61. border-radius: 12px;
  62. box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  63. backdrop-filter: blur(5px);
  64. border: 1px solid rgba(255, 255, 255, 0.3);
  65. @media (max-width: 1600px) {
  66. margin: 20px 6% 20px 6%; /* Reduced bottom margin */
  67. }
  68. @media (max-width: 600px) {
  69. margin: 20px 3% 20px 3%; /* Reduced bottom margin */
  70. padding: 16px;
  71. }
  72. }
  73. .topbar-container {
  74. padding: 32px 0;
  75. border-bottom: solid 1px rgba(var(--v-theme-on-background), 0.2);
  76. margin-bottom: 3rem;
  77. position: sticky;
  78. top: 0;
  79. background-color: rgb(var(--v-theme-card-background));
  80. backdrop-filter: blur(5px);
  81. z-index: 1000;
  82. }
  83. :deep(h2) {
  84. margin: 48px 0 24px 0;
  85. padding-bottom: 9px;
  86. border-bottom: solid 1px rgba(var(--v-theme-on-background), 0.2);
  87. @media (max-width: 600px) {
  88. margin: 24px 0;
  89. }
  90. }
  91. .v-footer {
  92. max-height: 36px;
  93. display: flex;
  94. flex-direction: row;
  95. justify-content: center;
  96. border-top: rgb(var(--v-theme-on-surface));
  97. font-size: 12px;
  98. margin-top: 20px; /* Add some space between content and footer */
  99. a {
  100. color: rgb(var(--v-theme-on-background));
  101. }
  102. span {
  103. margin: 0 24px;
  104. }
  105. }
  106. </style>