Skip to content

Commit

Permalink
adds blur
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Dec 22, 2024
1 parent 5445a9e commit 6075a45
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 257 deletions.
75 changes: 0 additions & 75 deletions apps/hub/app/components/RichArtickle.vue

This file was deleted.

14 changes: 0 additions & 14 deletions apps/hub/app/composables/useTiptap/extensions/DisplayHeader.ts

This file was deleted.

48 changes: 0 additions & 48 deletions apps/hub/app/composables/useTiptap/extensions/Overflow.ts

This file was deleted.

23 changes: 0 additions & 23 deletions apps/hub/app/composables/useTiptap/extensions/Slugline.ts

This file was deleted.

97 changes: 0 additions & 97 deletions apps/hub/app/composables/useTiptap/index.ts

This file was deleted.

112 changes: 112 additions & 0 deletions apps/hub/app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ onKeyStroke('Escape', () => {
<template>
<div class="layout" :class="classObject">
<div class="burger" @click="toggleReveal" />
<div class="frost">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="content-layer">
<div class="vignet" @click="toggleReveal" />
<main class="page">
Expand Down Expand Up @@ -167,4 +175,108 @@ onKeyStroke('Escape', () => {
grid-area: content;
background-color: var(--base-20);
}
.layout .frost {
--blur-contrast: 1.3;
--blur-brightness: 0.9;
position: fixed;
z-index: 10;
bottom: 0;
left: 0;
height: 15dvh;
width: 100dvw;
pointer-events: none;
& > div,
&::before,
&::after {
position: absolute;
inset: 0;
}
&::before {
content: '';
z-index: 1;
backdrop-filter: blur(0.5px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 12.5%,
rgba(0, 0, 0, 1) 25%,
rgba(0, 0, 0, 0) 37.5%
);
}
& > div:nth-of-type(1) {
z-index: 2;
backdrop-filter: blur(1px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 12.5%,
rgba(0, 0, 0, 1) 25%,
rgba(0, 0, 0, 1) 37.5%,
rgba(0, 0, 0, 0) 50%
);
}
& > div:nth-of-type(2) {
z-index: 3;
backdrop-filter: blur(2px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 25%,
rgba(0, 0, 0, 1) 37.5%,
rgba(0, 0, 0, 1) 50%,
rgba(0, 0, 0, 0) 62.5%
);
}
& > div:nth-of-type(3) {
z-index: 4;
backdrop-filter: blur(4px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 37.5%,
rgba(0, 0, 0, 1) 50%,
rgba(0, 0, 0, 1) 62.5%,
rgba(0, 0, 0, 0) 75%
);
}
& > div:nth-of-type(4) {
z-index: 5;
backdrop-filter: blur(8px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 50%,
rgba(0, 0, 0, 1) 62.5%,
rgba(0, 0, 0, 1) 75%,
rgba(0, 0, 0, 0) 87.5%
);
}
& > div:nth-of-type(5) {
z-index: 6;
backdrop-filter: blur(16px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 62.5%,
rgba(0, 0, 0, 1) 75%,
rgba(0, 0, 0, 1) 87.5%,
rgba(0, 0, 0, 0) 100%
);
}
& > div:nth-of-type(6) {
z-index: 7;
backdrop-filter: blur(32px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 75%,
rgba(0, 0, 0, 1) 87.5%,
rgba(0, 0, 0, 1) 100%
);
}
&::after {
content: '';
z-index: 8;
backdrop-filter: blur(64px) brightness(var(--blur-brightness)) contrast(var(--blur-contrast));
mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%);
}
}
</style>

0 comments on commit 6075a45

Please sign in to comment.