diff --git a/package.json b/package.json index 1f320df7..57374dcc 100644 --- a/package.json +++ b/package.json @@ -69,5 +69,10 @@ ] }, "type": "module", - "packageManager": "pnpm@10.4.1" + "packageManager": "pnpm@10.4.1", + "dependencies": { + "@fontsource-variable/inter-tight": "^5.1.1", + "@fontsource-variable/playfair-display": "^5.1.1", + "@fontsource/iosevka": "^5.1.0" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c44196ee..48578e64 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,16 @@ settings: importers: .: + dependencies: + '@fontsource-variable/inter-tight': + specifier: ^5.1.1 + version: 5.1.1 + '@fontsource-variable/playfair-display': + specifier: ^5.1.1 + version: 5.1.1 + '@fontsource/iosevka': + specifier: ^5.1.0 + version: 5.1.0 devDependencies: '@eslint/js': specifier: ^9.20.0 @@ -353,6 +363,15 @@ packages: '@floating-ui/utils@0.2.8': resolution: {integrity: sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==} + '@fontsource-variable/inter-tight@5.1.1': + resolution: {integrity: sha512-uPBgjWbkau/7q/IGu/offWoaQqx9dky6shbqQFsBUsoosG6rhrX7azqh0tnrENpgjoE+CwgEotQ8eZaha1ni8w==} + + '@fontsource-variable/playfair-display@5.1.1': + resolution: {integrity: sha512-89gLVOcVRIp0aayWwTcaLGQxhxDT2ZIv7cFU/BjxcWA8iALi8SrlT7dNHdhakb8MeXc0UUw9n8k6kG+jWvX61A==} + + '@fontsource/iosevka@5.1.0': + resolution: {integrity: sha512-wfo4Tzbb3Lz3Zf+UMF5c/bEQL5enPJ7LT83q/UQxbgXtg+BtleIETkziIwP8lZsw8MwhSou8HVCmSZnY0sfiCw==} + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -2467,6 +2486,12 @@ snapshots: '@floating-ui/utils@0.2.8': {} + '@fontsource-variable/inter-tight@5.1.1': {} + + '@fontsource-variable/playfair-display@5.1.1': {} + + '@fontsource/iosevka@5.1.0': {} + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.6': diff --git a/src/app.css b/src/app.css index 3207042c..c9d1c7f0 100644 --- a/src/app.css +++ b/src/app.css @@ -8,6 +8,10 @@ --breakpoint-xs: 475px; --breakpoint-2xl: 1400px; + --font-display: "GT Super Display", serif; + --font-sans: "Inter Tight Variable", sans-serif; + --font-mono: "Iosevka", monospace; + --color-background: hsl(var(--background)); --color-foreground: hsl(var(--foreground)); @@ -119,7 +123,7 @@ --radius: 0.5rem; } .dark { - --background: 20 14.3% 4.1%; + --background: 276 10.64% 9.22%; --foreground: 60 9.1% 97.8%; --card: 20 14.3% 4.1%; --card-foreground: 60 9.1% 97.8%; diff --git a/src/app.html b/src/app.html index 3539310c..9c617b81 100644 --- a/src/app.html +++ b/src/app.html @@ -6,6 +6,8 @@ rel="icon" href="https://raw.githubusercontent.com/sveltejs/branding/master/svelte-logo.svg" /> + + %sveltekit.head% diff --git a/src/lib/components/MarkdownRenderer.svelte b/src/lib/components/MarkdownRenderer.svelte index d738b42a..faa8cab5 100644 --- a/src/lib/components/MarkdownRenderer.svelte +++ b/src/lib/components/MarkdownRenderer.svelte @@ -31,7 +31,8 @@ import "../app.css"; + import "@fontsource-variable/playfair-display"; + import "@fontsource-variable/inter-tight"; + import "@fontsource/iosevka/400.css"; + import "@fontsource/iosevka/500.css"; + import "@fontsource/iosevka/600.css"; + import { onMount, type SvelteComponent } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; import { fade } from "svelte/transition"; @@ -134,7 +140,7 @@
-

+

{data.repos[currentTab].name} Releases

diff --git a/src/routes/navbar.svelte b/src/routes/navbar.svelte new file mode 100644 index 00000000..d64863eb --- /dev/null +++ b/src/routes/navbar.svelte @@ -0,0 +1,343 @@ + + +
+
+
+ + tabState.set("svelte")}> + Svelte + + + + + + {#if scrollY > 150 && page.route.id === "/"} + + {/if} + + +
+ +
+
+
+ {#if newsToDisplay} +
+ {newsToDisplay.content} + +
+ {/if} +
diff --git a/static/fonts/GTSuperDisplay-Bold.woff b/static/fonts/GTSuperDisplay-Bold.woff new file mode 100644 index 00000000..d4182a31 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Bold.woff differ diff --git a/static/fonts/GTSuperDisplay-Bold.woff2 b/static/fonts/GTSuperDisplay-Bold.woff2 new file mode 100644 index 00000000..c4837d5e Binary files /dev/null and b/static/fonts/GTSuperDisplay-Bold.woff2 differ diff --git a/static/fonts/GTSuperDisplay-BoldItalic.woff b/static/fonts/GTSuperDisplay-BoldItalic.woff new file mode 100644 index 00000000..af2bc2b9 Binary files /dev/null and b/static/fonts/GTSuperDisplay-BoldItalic.woff differ diff --git a/static/fonts/GTSuperDisplay-BoldItalic.woff2 b/static/fonts/GTSuperDisplay-BoldItalic.woff2 new file mode 100644 index 00000000..5f2777a6 Binary files /dev/null and b/static/fonts/GTSuperDisplay-BoldItalic.woff2 differ diff --git a/static/fonts/GTSuperDisplay-Light.woff b/static/fonts/GTSuperDisplay-Light.woff new file mode 100644 index 00000000..9f2ace60 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Light.woff differ diff --git a/static/fonts/GTSuperDisplay-Light.woff2 b/static/fonts/GTSuperDisplay-Light.woff2 new file mode 100644 index 00000000..646e42c5 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Light.woff2 differ diff --git a/static/fonts/GTSuperDisplay-LightItalic.woff b/static/fonts/GTSuperDisplay-LightItalic.woff new file mode 100644 index 00000000..5eb084be Binary files /dev/null and b/static/fonts/GTSuperDisplay-LightItalic.woff differ diff --git a/static/fonts/GTSuperDisplay-LightItalic.woff2 b/static/fonts/GTSuperDisplay-LightItalic.woff2 new file mode 100644 index 00000000..7971e4c9 Binary files /dev/null and b/static/fonts/GTSuperDisplay-LightItalic.woff2 differ diff --git a/static/fonts/GTSuperDisplay-Medium.woff b/static/fonts/GTSuperDisplay-Medium.woff new file mode 100644 index 00000000..16870b61 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Medium.woff differ diff --git a/static/fonts/GTSuperDisplay-Medium.woff2 b/static/fonts/GTSuperDisplay-Medium.woff2 new file mode 100644 index 00000000..3827e514 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Medium.woff2 differ diff --git a/static/fonts/GTSuperDisplay-MediumItalic.woff b/static/fonts/GTSuperDisplay-MediumItalic.woff new file mode 100644 index 00000000..72f0a109 Binary files /dev/null and b/static/fonts/GTSuperDisplay-MediumItalic.woff differ diff --git a/static/fonts/GTSuperDisplay-MediumItalic.woff2 b/static/fonts/GTSuperDisplay-MediumItalic.woff2 new file mode 100644 index 00000000..b491fc63 Binary files /dev/null and b/static/fonts/GTSuperDisplay-MediumItalic.woff2 differ diff --git a/static/fonts/GTSuperDisplay-Regular.woff b/static/fonts/GTSuperDisplay-Regular.woff new file mode 100644 index 00000000..6a7fc2b0 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Regular.woff differ diff --git a/static/fonts/GTSuperDisplay-Regular.woff2 b/static/fonts/GTSuperDisplay-Regular.woff2 new file mode 100644 index 00000000..0bd29832 Binary files /dev/null and b/static/fonts/GTSuperDisplay-Regular.woff2 differ diff --git a/static/fonts/GTSuperDisplay-RegularItalic.woff b/static/fonts/GTSuperDisplay-RegularItalic.woff new file mode 100644 index 00000000..7c764d89 Binary files /dev/null and b/static/fonts/GTSuperDisplay-RegularItalic.woff differ diff --git a/static/fonts/GTSuperDisplay-RegularItalic.woff2 b/static/fonts/GTSuperDisplay-RegularItalic.woff2 new file mode 100644 index 00000000..4d300066 Binary files /dev/null and b/static/fonts/GTSuperDisplay-RegularItalic.woff2 differ diff --git a/static/fonts/GTSuperDisplay-SuperItalic.woff b/static/fonts/GTSuperDisplay-SuperItalic.woff new file mode 100644 index 00000000..7c98650f Binary files /dev/null and b/static/fonts/GTSuperDisplay-SuperItalic.woff differ diff --git a/static/fonts/GTSuperDisplay-SuperItalic.woff2 b/static/fonts/GTSuperDisplay-SuperItalic.woff2 new file mode 100644 index 00000000..0b74123e Binary files /dev/null and b/static/fonts/GTSuperDisplay-SuperItalic.woff2 differ diff --git a/static/fonts/gt-super.css b/static/fonts/gt-super.css new file mode 100644 index 00000000..4363d988 --- /dev/null +++ b/static/fonts/gt-super.css @@ -0,0 +1,81 @@ +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-RegularItalic.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-RegularItalic.woff') format('woff'); + font-weight: normal; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-Light.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-Light.woff') format('woff'); + font-weight: 300; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-Bold.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-Bold.woff') format('woff'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-Regular.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-Regular.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-MediumItalic.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-MediumItalic.woff') format('woff'); + font-weight: 500; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-Medium.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-Medium.woff') format('woff'); + font-weight: 500; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-BoldItalic.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-BoldItalic.woff') format('woff'); + font-weight: bold; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display Super'; + src: url('/fonts/GTSuperDisplay-SuperItalic.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-SuperItalic.woff') format('woff'); + font-weight: 900; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'GT Super Display'; + src: url('/fonts/GTSuperDisplay-LightItalic.woff2') format('woff2'), + url('/fonts/GTSuperDisplay-LightItalic.woff') format('woff'); + font-weight: 300; + font-style: italic; + font-display: swap; +} +