fix: background & drawer

This commit is contained in:
puriphatt 2024-07-31 06:09:10 +00:00
parent a369b8528b
commit 43b53c176a
4 changed files with 25 additions and 4 deletions

BIN
public/bg-d.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
public/bg-l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View file

@ -121,6 +121,7 @@ function branchSetting() {}
side="left"
:breakpoint="599"
class="column justify-between no-wrap"
:class="{ dark: $q.dark.isActive }"
:width="mini ? 80 : 256"
show-if-above
>
@ -254,7 +255,13 @@ function branchSetting() {}
:deep(.q-drawer__content) {
border-radius: var(--radius-2);
background: var(--surface-1);
background-color: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(11.2px);
-webkit-backdrop-filter: blur(11.2px);
&.dark {
background-color: hsla(var(--gray-10-hsl) / 0.5);
}
}
.dot {

View file

@ -178,7 +178,12 @@ onMounted(async () => {
</script>
<template>
<q-layout view="lHh Lpr lFf">
<q-layout
view="lHh Lpr lFf"
class="bg"
:class="{ dark: $q.dark.isActive }"
:style="`background-size: ${$q.screen.gt.sm ? '100% 100%' : 'cover'}`"
>
<drawer-component
:mini="leftDrawerMini"
v-model:left-drawer-open="leftDrawerOpen"
@ -222,12 +227,12 @@ onMounted(async () => {
</div>
<div
class="surface-0 scroll column"
class="scroll column"
style="height: 100vh; flex-wrap: nowrap; padding-bottom: var(--size-4)"
>
<!-- header -->
<div
class="q-px-lg surface-0 row items-center justify-start q-pb-md q-pt-lg"
class="q-px-lg row items-center justify-start q-pb-md q-pt-lg"
style="position: sticky; top: 0; z-index: 8"
>
<q-btn
@ -486,6 +491,15 @@ onMounted(async () => {
</template>
<style scoped>
.bg {
background-image: url('bg-l.png');
background-repeat: no-repeat;
&.dark {
background-image: url('bg-d.png');
}
}
.text-stone {
--_color: var(--stone-5);
color: var(--_color);