From db0a6d821cb22649f9050eaad67d94f91efdf560 Mon Sep 17 00:00:00 2001 From: nyomansunima Date: Tue, 30 May 2023 21:51:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20build:=20create=20simple=20home?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/app.vue | 4 --- .../web/components/base/header/MainHeader.vue | 2 +- apps/web/components/blog/BlogHeader.vue | 13 ++++--- apps/web/error.vue | 32 +++++++++++++++++ apps/web/nuxt.config.ts | 19 +++++----- apps/web/pages/index.vue | 36 +++++++++++++++++-- 6 files changed, 84 insertions(+), 22 deletions(-) create mode 100644 apps/web/error.vue diff --git a/apps/web/app.vue b/apps/web/app.vue index 7761655..53f7aa2 100644 --- a/apps/web/app.vue +++ b/apps/web/app.vue @@ -19,10 +19,6 @@ gsap.registerPlugin(ScrollTrigger) // scroll smoother using lenis onMounted(() => { const lenis = new Lenis() - lenis.on('scroll', (e) => { - console.log(e) - }) - function raf(time) { lenis.raf(time) requestAnimationFrame(raf) diff --git a/apps/web/components/base/header/MainHeader.vue b/apps/web/components/base/header/MainHeader.vue index 24ef727..ddbbaea 100644 --- a/apps/web/components/base/header/MainHeader.vue +++ b/apps/web/components/base/header/MainHeader.vue @@ -5,7 +5,7 @@ diff --git a/apps/web/components/blog/BlogHeader.vue b/apps/web/components/blog/BlogHeader.vue index 1ff701f..e06c046 100644 --- a/apps/web/components/blog/BlogHeader.vue +++ b/apps/web/components/blog/BlogHeader.vue @@ -5,7 +5,10 @@ >
- + Blog @@ -35,16 +38,16 @@ interface Menu { const menus: Menu[] = [ { label: 'Tips', - path: 'tips' + path: 'tips', }, { label: 'Development', - path: 'development' + path: 'development', }, { label: 'Design', - path: 'design' - } + path: 'design', + }, ] const viewTag = (tag: string) => { diff --git a/apps/web/error.vue b/apps/web/error.vue new file mode 100644 index 0000000..2627a2e --- /dev/null +++ b/apps/web/error.vue @@ -0,0 +1,32 @@ + + diff --git a/apps/web/nuxt.config.ts b/apps/web/nuxt.config.ts index b9d63b5..4842190 100644 --- a/apps/web/nuxt.config.ts +++ b/apps/web/nuxt.config.ts @@ -4,29 +4,30 @@ export default defineNuxtConfig({ '@nuxt/devtools', '@nuxt/image-edge', '@nuxtjs/sanity', - '@nuxtjs/tailwindcss' + '@nuxtjs/tailwindcss', ], routeRules: { - '/blog/**': { isr: true } + '/blog/**': { isr: true }, }, css: [ '~/assets/styles/globals.css', - '@flaticon/flaticon-uicons/css/all/all.css' + '@flaticon/flaticon-uicons/css/all/all.css', ], components: { - dirs: [{ path: '~/components', pathPrefix: false }] + dirs: [{ path: '~/components', pathPrefix: false }], }, devtools: { - enabled: true + enabled: true, }, sanity: { projectId: process.env.SANITY_PROJECT_ID, apiVersion: process.env.SANITY_API_VERSION, - dataset: process.env.SANITY_DATASET + dataset: process.env.SANITY_DATASET, + useCdn: false, }, runtimeConfig: { public: { - brevoApiKey: '' - } - } + brevoApiKey: '', + }, + }, }) diff --git a/apps/web/pages/index.vue b/apps/web/pages/index.vue index fb62d1f..7000936 100644 --- a/apps/web/pages/index.vue +++ b/apps/web/pages/index.vue @@ -1,7 +1,37 @@ - +