Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

Quality changes to be more accurate to the design

Realmydf13147b3ab0
diff --git a/package.json b/package.json
index 225d325..9c4a9ca 100644
--- a/package.json
+++ b/package.json
@@ -40,6 +40,7 @@
"@ffmpeg/util": "^0.12.1",
"@fontsource/azeret-mono": "^5.1.0",
"@fontsource/lexend": "^5.1.1",
+ "@fontsource/radio-canada-big": "^5.1.0",
"@imagemagick/magick-wasm": "^0.0.31",
"client-zip": "^2.4.5",
"clsx": "^2.1.1",
diff --git a/src/app.html b/src/app.html
index 0b55ebd..2baf8f6 100644
--- a/src/app.html
+++ b/src/app.html
@@ -6,10 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
- <link
- href="https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Radio+Canada+Big:ital,wght@0,400..700;1,400..700&display=swap"
- rel="stylesheet"
- />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
diff --git a/src/app.scss b/src/app.scss
index d1117cc..8584291 100644
--- a/src/app.scss
+++ b/src/app.scss
@@ -2,9 +2,8 @@
@tailwind components;
@tailwind utilities;
-@import url(@fontsource/lexend/400.css);
-@import url(@fontsource/lexend/500.css);
-@import url(@fontsource/azeret-mono/600.css);
+@import url(@fontsource/radio-canada-big/600.css);
+@import url("$lib/assets/style/host-grotesk.css");
:root {
--font-body: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
@@ -27,7 +26,6 @@
1.017 63.9%,
1.001
);
- --shadow-panel: 0 4px 6px 0 hsla(0, 0%, 0%, 0.15);
}
@mixin light {
@@ -40,7 +38,7 @@
--fg-on-accent: hsl(0, 0%, 0%);
// backgrounds
- --bg: hsl(0, 0%, 100%);
+ --bg: hsl(0, 0%, 95%);
--bg-gradient: linear-gradient(
to bottom left,
hsla(235, 100%, 50%, 0.3),
@@ -58,9 +56,11 @@
);
--bg-panel: hsl(0, 0%, 100%);
--bg-panel-alt: hsl(0, 0%, 92%);
- --bg-panel-accented: color-mix(in srgb, var(--accent) 35%, transparent);
+ --bg-panel-accented: hsl(300, 25%, 91%);
--bg-separator: hsl(0, 0%, 88%);
--bg-button: var(--bg-panel-accented);
+
+ --shadow-panel: 0 2px 4px 0 hsla(0, 0%, 0%, 0.15);
}
@mixin dark {
@@ -89,10 +89,12 @@
hsla(353, 100%, 50%, 0.07),
hsla(353, 100%, 50%, 0) 50%
);
- --bg-panel: hsl(225, 4%, 18%);
+ --bg-panel: hsl(220, 4%, 18%);
--bg-panel-accented: color-mix(in srgb, var(--accent) 12%, transparent);
- --bg-panel-alt: hsl(225, 6%, 25%);
- --bg-separator: hsl(214, 4%, 32%);
+ --bg-panel-alt: hsl(220, 6%, 25%);
+ --bg-separator: hsl(220, 4%, 28%);
+
+ --shadow-panel: 0 4px 6px 0 hsla(0, 0%, 0%, 0.15);
color-scheme: dark;
}
@@ -130,7 +132,7 @@ body {
}
.btn {
- @apply bg-button flex items-center justify-center overflow-hidden relative cursor-pointer px-6 py-3 rounded-full focus:!outline-none hover:scale-105 duration-200 active:scale-95 disabled:opacity-50 disabled:pointer-events-none;
+ @apply bg-button flex items-center justify-center overflow-hidden relative cursor-pointer px-6 h-14 rounded-full font-medium focus:!outline-none hover:scale-105 duration-200 active:scale-95 disabled:opacity-50 disabled:pointer-events-none;
transition:
opacity 0.2s ease,
transform 0.2s ease,
diff --git a/src/lib/assets/font/HostGrotesk-Italic.woff2 b/src/lib/assets/font/HostGrotesk-Italic.woff2
new file mode 100644
index 0000000..0f769d3
Binary files /dev/null and b/src/lib/assets/font/HostGrotesk-Italic.woff2 differ
diff --git a/src/lib/assets/font/HostGrotesk-Medium.woff2 b/src/lib/assets/font/HostGrotesk-Medium.woff2
new file mode 100644
index 0000000..35e0e20
Binary files /dev/null and b/src/lib/assets/font/HostGrotesk-Medium.woff2 differ
diff --git a/src/lib/assets/font/HostGrotesk-MediumItalic.woff2 b/src/lib/assets/font/HostGrotesk-MediumItalic.woff2
new file mode 100644
index 0000000..f914430
Binary files /dev/null and b/src/lib/assets/font/HostGrotesk-MediumItalic.woff2 differ
diff --git a/src/lib/assets/font/HostGrotesk-Regular.woff2 b/src/lib/assets/font/HostGrotesk-Regular.woff2
new file mode 100644
index 0000000..ce89d2b
Binary files /dev/null and b/src/lib/assets/font/HostGrotesk-Regular.woff2 differ
diff --git a/src/lib/assets/font/HostGrotesk-SemiBold.woff2 b/src/lib/assets/font/HostGrotesk-SemiBold.woff2
new file mode 100644
index 0000000..9a80dbf
Binary files /dev/null and b/src/lib/assets/font/HostGrotesk-SemiBold.woff2 differ
diff --git a/src/lib/assets/font/HostGrotesk-SemiBoldItalic.woff2 b/src/lib/assets/font/HostGrotesk-SemiBoldItalic.woff2
new file mode 100644
index 0000000..51a41c5
Binary files /dev/null and b/src/lib/assets/font/HostGrotesk-SemiBoldItalic.woff2 differ
diff --git a/src/lib/assets/style/host-grotesk.css b/src/lib/assets/style/host-grotesk.css
new file mode 100644
index 0000000..b23bb77
--- /dev/null
+++ b/src/lib/assets/style/host-grotesk.css
@@ -0,0 +1,42 @@
+@font-face {
+ font-family: "Host Grotesk";
+ font-style: normal;
+ font-weight: 400;
+ src: url("$lib/assets/font/HostGrotesk-Regular.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Host Grotesk";
+ font-style: italic;
+ font-weight: 400;
+ src: url("$lib/assets/font/HostGrotesk-Italic.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Host Grotesk";
+ font-style: normal;
+ font-weight: 500;
+ src: url("$lib/assets/font/HostGrotesk-Medium.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Host Grotesk";
+ font-style: italic;
+ font-weight: 500;
+ src: url("$lib/assets/font/HostGrotesk-MediumItalic.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Host Grotesk";
+ font-style: normal;
+ font-weight: 600;
+ src: url("$lib/assets/font/HostGrotesk-SemiBold.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Host Grotesk";
+ font-style: italic;
+ font-weight: 600;
+ src: url("$lib/assets/font/HostGrotesk-SemiBoldItalic.woff2")
+ format("woff2");
+}
diff --git a/src/lib/components/functional/ConversionPanel.svelte b/src/lib/components/functional/ConversionPanel.svelte
index e4fd90d..846cdb7 100644
--- a/src/lib/components/functional/ConversionPanel.svelte
+++ b/src/lib/components/functional/ConversionPanel.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { FolderArchiveIcon, RotateCw } from "lucide-svelte";
+ import { FolderArchiveIcon, RefreshCw } from "lucide-svelte";
import Panel from "../visual/Panel.svelte";
import { files } from "$lib/store/index.svelte";
import Dropdown from "./Dropdown.svelte";
@@ -12,7 +12,7 @@
class="btn highlight flex gap-3"
disabled={!files.ready}
>
- <RotateCw size="24" />
+ <RefreshCw size="24" />
<p>Convert all</p>
</button>
<button
diff --git a/src/lib/components/functional/Navbar.svelte b/src/lib/components/functional/Navbar.svelte
index 550b6ec..882adfa 100644
--- a/src/lib/components/functional/Navbar.svelte
+++ b/src/lib/components/functional/Navbar.svelte
@@ -27,7 +27,7 @@
href={item.url}
aria-label={item.name}
class={clsx(
- "px-4 h-full rounded-xl flex items-center justify-center gap-3 overflow-hidden",
+ "w-32 h-full rounded-xl flex items-center justify-center gap-3 overflow-hidden",
{
"bg-panel-accented": item.activeMatch($page.url.pathname),
},
@@ -37,7 +37,7 @@
<div class="grid grid-rows-1 grid-cols-1">
{#key item.name}
<p
- class="row-start-1 col-start-1"
+ class="row-start-1 col-start-1 font-medium"
in:blur={{
blurMultiplier: 6,
duration,
diff --git a/src/lib/components/visual/Footer.svelte b/src/lib/components/visual/Footer.svelte
index f23ac29..31a4689 100644
--- a/src/lib/components/visual/Footer.svelte
+++ b/src/lib/components/visual/Footer.svelte
@@ -22,7 +22,9 @@
{#each links as [name, url] (name)}
<!-- bullet point -->
<p>•</p>
- <a target="_blank" class="hover:underline" href={url}>{name}</a>
+ <a target="_blank" class="hover:underline font-normal" href={url}
+ >{name}</a
+ >
{/each}
</div>
</footer>
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 683ebaa..2a6cd03 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -16,7 +16,7 @@
import {
InfoIcon,
MoonIcon,
- RotateCw,
+ RefreshCw,
SettingsIcon,
SunIcon,
UploadIcon,
@@ -56,7 +56,7 @@
: `Convert`,
url: "/convert",
activeMatch: (pathname) => pathname === "/convert",
- icon: RotateCw,
+ icon: RefreshCw,
},
{
name: "Settings",
@@ -116,11 +116,6 @@
</div>
</div>
-<div
- class="fixed top-0 left-0 w-screen h-screen -z-50 pointer-events-none"
- style="background: var(--bg-gradient);"
-></div>
-
<div class="min-h-screen">
{@render children()}
</div>
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 3a4507e..d1627e9 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -16,6 +16,11 @@
<VertVBig class="fill-[--fg] opacity-50" />
</div>
+<div
+ class="fixed top-0 left-0 w-screen h-screen -z-50 pointer-events-none"
+ style="background: var(--bg-gradient);"
+></div>
+
<div class="w-screen h-screen flex items-center justify-center">
<div class="max-w-5xl w-full">
<div class="flex items-center h-[266px] gap-24">