Skip to content

Commit

Permalink
:wq
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSM committed Sep 22, 2023
2 parents fea5e1b + b0e921b commit 1bdb14a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 49 deletions.
10 changes: 7 additions & 3 deletions apps/www/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { useScroll } from "@vueuse/core";
const { arrivedState } = useScroll(document);
const route = useRoute();
useSchemaOrg([
defineOrganization({
Expand Down Expand Up @@ -70,11 +72,13 @@ const menuOpened = ref<boolean>(false);
<template>
<main class="font-sans" :class="{ 'mt-[60px] md:mt-0': menuOpened }">
<header
class="top-0 z-10 flex w-full flex-col items-center justify-between md:container md:flex-row md:py-[11.5px]"
class="top-0 z-10 flex w-full flex-col items-center justify-between md:container md:flex-row md:py-[11.5px] blur-performance"
:class="{
'fixed h-screen bg-zinc-300/40 backdrop-blur-sm blur-performance md:sticky md:h-fit md:bg-inherit md:backdrop-blur-none':
'fixed h-screen bg-zinc-300/40 backdrop-blur-sm md:sticky md:h-fit md:bg-inherit md:backdrop-blur-none':
menuOpened,
sticky: !menuOpened,
'backdrop-blur-sm border-b border-zinc-100/50 bg-zinc-100/40':
!arrivedState.top,
}"
>
<div
Expand Down Expand Up @@ -129,7 +133,7 @@ const menuOpened = ref<boolean>(false);
target="_blank"
external
>
<MIconButton variant="glass" icon="fa-brands fa-discord" />
<MIconButton icon="fa-brands fa-discord" />
</nuxt-link>
<nuxt-link
class="block md:hidden"
Expand Down
3 changes: 2 additions & 1 deletion apps/www/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import eslintPlugin from "vite-plugin-eslint";
import path from "node:path";

export default defineNuxtConfig({
ssr: false,
sourcemap: { server: true, client: false }, // Disable sourcemap errors
runtimeConfig: {
public: {
Expand Down Expand Up @@ -40,9 +41,9 @@ export default defineNuxtConfig({
"@nuxt/image-edge",
"nuxt-simple-sitemap",
"nuxt-schema-org",
"nuxt-delay-hydration",
"nuxt-simple-robots",
"@nuxtjs/fontaine",
"@vueuse/nuxt",
],
vite: {
plugins: [eslintPlugin()],
Expand Down
2 changes: 1 addition & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/vue-fontawesome": "^3.0.3",
"@nuxt/image-edge": "1.0.0-rc.1-28180077.d51e794",
"@vueuse/nuxt": "^10.3.0",
"eslint-config-custom": "workspace:*",
"humps": "^2.0.1",
"nuxt-delay-hydration": "^1.2.1",
"nuxt-umami": "^2.5.2",
"tailwind-config": "workspace:*"
}
Expand Down
68 changes: 24 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1bdb14a

Please sign in to comment.