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),
|
var(--accent-blue),
|
||||||
hsl(220, 100%, 91%) 100%
|
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: hsl(0, 0%, 100%);
|
||||||
--bg-panel-accented: hsl(0, 0%, 92%);
|
--bg-panel-accented: hsl(0, 0%, 92%);
|
||||||
--bg-separator: hsl(0, 0%, 88%);
|
--bg-separator: hsl(0, 0%, 88%);
|
||||||
|
@ -160,6 +165,11 @@
|
||||||
var(--accent-blue),
|
var(--accent-blue),
|
||||||
hsl(220, 100%, 91%) 100%
|
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: hsl(220, 4%, 18%);
|
||||||
--bg-panel-accented: color-mix(in srgb, var(--accent) 12%, transparent);
|
--bg-panel-accented: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||||
--bg-separator: hsl(220, 4%, 28%);
|
--bg-separator: hsl(220, 4%, 28%);
|
||||||
|
|
|
@ -95,7 +95,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
motion.set(localStorage.getItem("motion") !== "false"); // defaults to true if not set
|
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);
|
let goingLeft = $state(false);
|
||||||
|
@ -234,7 +236,7 @@
|
||||||
></div>
|
></div>
|
||||||
{:else if page.url.pathname === "/convert" && files.files.length === 1 && files.files[0].blobUrl}
|
{:else if page.url.pathname === "/convert" && files.files.length === 1 && files.files[0].blobUrl}
|
||||||
<div
|
<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
|
<div
|
||||||
class="w-full relative"
|
class="w-full relative"
|
||||||
|
@ -244,12 +246,14 @@
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
class="object-cover w-full {!$isMobile
|
class="object-cover w-full h-full blur-md"
|
||||||
? 'h-[calc(100%-66px)]'
|
|
||||||
: 'h-full'} blur-md"
|
|
||||||
src={files.files[0].blobUrl}
|
src={files.files[0].blobUrl}
|
||||||
alt={files.files[0].name}
|
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">
|
<!-- <div class="absolute bottom-0 left-0 w-full h-full">
|
||||||
<ProgressiveBlur
|
<ProgressiveBlur
|
||||||
direction="bottom"
|
direction="bottom"
|
||||||
|
|
Loading…
Reference in New Issue