From bd76dc2ba8d42e8eb594febbbf404311e93b9472 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 10 Aug 2024 13:47:34 +0800 Subject: [PATCH] :lipstick: Optimized homepage --- assets/index.css | 8 ++++++ nuxt.config.ts | 4 ++- pages/index.vue | 66 ++++++++++-------------------------------------- 3 files changed, 24 insertions(+), 54 deletions(-) create mode 100644 assets/index.css diff --git a/assets/index.css b/assets/index.css new file mode 100644 index 0000000..7f46ef9 --- /dev/null +++ b/assets/index.css @@ -0,0 +1,8 @@ +html, body { + padding: 0; + margin: 0; +} + +html, body, #app, .v-application { + overflow: auto !important; +} diff --git a/nuxt.config.ts b/nuxt.config.ts index d1e3a41..bf92087 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -4,6 +4,8 @@ import vuetify, { transformAssetUrls } from "vite-plugin-vuetify" export default defineNuxtConfig({ devtools: { enabled: true }, + css: ["@/assets/index.css"], + app: { head: { title: "Solsynth LLC", @@ -47,4 +49,4 @@ export default defineNuxtConfig({ }, compatibilityDate: "2024-08-10", -}) \ No newline at end of file +}) diff --git a/pages/index.vue b/pages/index.vue index 9047ea0..05b65e0 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,63 +1,23 @@ @@ -72,7 +32,7 @@ const { data: products } = await useAsyncData("products", () => queryContent("/p } .content-section { - margin-top: 8rem; - margin-bottom: 8rem; + margin-top: 7.5rem; + margin-bottom: 7.5rem; }