-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,14 @@ import Img, { FxReveal, FxParallax } from '$lib' | |
import { version } from '$app/environment' | ||
import testSingle from './assets/640/01.jpg?w=80&h=80&format=jpg&as=run:0' | ||
import testFallback from './assets/640/01.jpg?h=80' | ||
import testProfile from './assets/640/01.jpg?as=run2' | ||
const modules = import.meta.glob('./assets/640/*.jpg', { | ||
import: 'default', | ||
eager: true, | ||
query: { w: 640, h: 640, fit: 'cover', as: 'run' } | ||
}) | ||
const esc = (i) => i | ||
const images = Object.entries(modules).map((i) => i[1]) | ||
let selected = 0 | ||
</script> | ||
|
@@ -94,11 +93,11 @@ export default defineConfig({ | |
</p> | ||
</div> | ||
|
||
<div class="mx-auto mb-16 h-[32rem] w-full max-w-[1920px] overflow-hidden"> | ||
<div | ||
class="h-full w-full blur" | ||
style="background: url(data:image/webp;base64,{i1.img.lqip}) no-repeat center/cover" | ||
/> | ||
<div | ||
class="mx-auto mb-16 h-[32rem] w-full max-w-[1920px] overflow-hidden" | ||
style="background: url(data:image/webp;base64,{i1.img.lqip}) no-repeat center/cover" | ||
> | ||
<div class="h-full w-full backdrop-blur-[20px]" /> | ||
</div> | ||
|
||
<div class="prose mx-auto mb-8 px-4"> | ||
|
@@ -195,6 +194,9 @@ const images = Object.entries(modules).map((i) => i[1]) | |
<Img src={testSingle} alt="test" /> | ||
</div> | ||
<div class="test-fallback hidden">{JSON.stringify(testFallback)}</div> | ||
<div class="test-profile hidden"> | ||
<Img src={testProfile} alt="test" /> | ||
</div> | ||
<!-- End tests --> | ||
|
||
<footer | ||
|
@@ -203,13 +205,3 @@ const images = Object.entries(modules).map((i) => i[1]) | |
<span class="icon-[mdi--email] mr-2 h-6 w-6" /> | ||
<a class="link" href="mailto:[email protected]">[email protected]</a> | ||
</footer> | ||
|
||
<style> | ||
.blur::after { | ||
content: ''; | ||
position: absolute; | ||
inset: 0; | ||
backdrop-filter: blur(20px); | ||
pointer-events: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters