mirror of https://github.com/VERT-sh/VERT.git
add gradient to blurred image bg in convert page
This commit is contained in:
parent
e11dced438
commit
f6e0b7db5d
10
src/app.scss
10
src/app.scss
|
@ -89,6 +89,11 @@
|
|||
var(--accent-blue),
|
||||
hsl(220, 100%, 91%) 100%
|
||||
);
|
||||
--bg-gradient-image: linear-gradient(
|
||||
to bottom,
|
||||
hsla(0, 0%, 95%, 0.5),
|
||||
hsla(0, 0%, 95%, 1) 100%
|
||||
);
|
||||
--bg-panel: hsl(0, 0%, 100%);
|
||||
--bg-panel-accented: hsl(0, 0%, 92%);
|
||||
--bg-separator: hsl(0, 0%, 88%);
|
||||
|
@ -160,6 +165,11 @@
|
|||
var(--accent-blue),
|
||||
hsl(220, 100%, 91%) 100%
|
||||
);
|
||||
--bg-gradient-image: linear-gradient(
|
||||
to bottom,
|
||||
hsla(220, 5%, 12%, 0.5),
|
||||
hsla(220, 5%, 12%, 1) 100%
|
||||
);
|
||||
--bg-panel: hsl(220, 4%, 18%);
|
||||
--bg-panel-accented: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
--bg-separator: hsl(220, 4%, 28%);
|
||||
|
|
|
@ -95,7 +95,9 @@
|
|||
});
|
||||
|
||||
motion.set(localStorage.getItem("motion") !== "false"); // defaults to true if not set
|
||||
theme.set(localStorage.getItem("theme") as "light" | "dark" || "light");
|
||||
theme.set(
|
||||
(localStorage.getItem("theme") as "light" | "dark") || "light",
|
||||
);
|
||||
});
|
||||
|
||||
let goingLeft = $state(false);
|
||||
|
@ -234,7 +236,7 @@
|
|||
></div>
|
||||
{:else if page.url.pathname === "/convert" && files.files.length === 1 && files.files[0].blobUrl}
|
||||
<div
|
||||
class="fixed w-screen h-screen opacity-75 overflow-hidden top-0 left-0 -z-50 pointer-events-none grid grid-cols-1 grid-rows-1"
|
||||
class="fixed w-screen h-screen opacity-75 overflow-hidden top-0 left-0 -z-50 pointer-events-none grid grid-cols-1 grid-rows-1 scale-105"
|
||||
>
|
||||
<div
|
||||
class="w-full relative"
|
||||
|
@ -244,12 +246,14 @@
|
|||
}}
|
||||
>
|
||||
<img
|
||||
class="object-cover w-full {!$isMobile
|
||||
? 'h-[calc(100%-66px)]'
|
||||
: 'h-full'} blur-md"
|
||||
class="object-cover w-full h-full blur-md"
|
||||
src={files.files[0].blobUrl}
|
||||
alt={files.files[0].name}
|
||||
/>
|
||||
<div
|
||||
class="absolute top-0 left-0 w-full h-full"
|
||||
style="background: var(--bg-gradient-image);"
|
||||
></div>
|
||||
<!-- <div class="absolute bottom-0 left-0 w-full h-full">
|
||||
<ProgressiveBlur
|
||||
direction="bottom"
|
||||
|
|
Loading…
Reference in New Issue