From 4135cdca3aad950a417da329ae011d90e9b8bdf9 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Tue, 1 Sep 2026 15:53:43 +0800 Subject: [PATCH] updated fonts --- dev-dist/sw.js | 2 +- src/app.html | 6 --- src/routes/layout.css | 42 +++++++++++++++++- static/fonts/Inter/Inter_18pt-Medium.ttf | Bin 0 -> 343200 bytes static/fonts/Inter/Inter_18pt-Regular.ttf | Bin 0 -> 342680 bytes static/fonts/Inter/Inter_18pt-SemiBold.ttf | Bin 0 -> 343828 bytes static/fonts/Montserrat/Montserrat-Medium.ttf | Bin 0 -> 330872 bytes .../fonts/Montserrat/Montserrat-Regular.ttf | Bin 0 -> 330948 bytes 8 files changed, 42 insertions(+), 8 deletions(-) create mode 100644 static/fonts/Inter/Inter_18pt-Medium.ttf create mode 100644 static/fonts/Inter/Inter_18pt-Regular.ttf create mode 100644 static/fonts/Inter/Inter_18pt-SemiBold.ttf create mode 100644 static/fonts/Montserrat/Montserrat-Medium.ttf create mode 100644 static/fonts/Montserrat/Montserrat-Regular.ttf diff --git a/dev-dist/sw.js b/dev-dist/sw.js index 9621773..8edd9ac 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -78,7 +78,7 @@ define(['./workbox-7e5eb42b'], (function (workbox) { 'use strict'; */ workbox.precacheAndRoute([{ "url": "/", - "revision": "0.5d3f7lf01og" + "revision": "0.or5ntbjovsg" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/"), { diff --git a/src/app.html b/src/app.html index d5a4d58..342fe9c 100644 --- a/src/app.html +++ b/src/app.html @@ -28,12 +28,6 @@ - - - %sveltekit.head%
diff --git a/src/routes/layout.css b/src/routes/layout.css index f890726..575f0ee 100644 --- a/src/routes/layout.css +++ b/src/routes/layout.css @@ -1,8 +1,48 @@ @import "tailwindcss"; +@font-face { + font-family: "Inter"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("/fonts/Inter/Inter_18pt-Regular.ttf") format("truetype"); +} + +@font-face { + font-family: "Inter"; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url("/fonts/Inter/Inter_18pt-Medium.ttf") format("truetype"); +} + +@font-face { + font-family: "Inter"; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url("/fonts/Inter/Inter_18pt-SemiBold.ttf") format("truetype"); +} + +@font-face { + font-family: "Montserrat"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("/fonts/Montserrat/Montserrat-Regular.ttf") format("truetype"); +} + +@font-face { + font-family: "Montserrat"; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url("/fonts/Montserrat/Montserrat-Medium.ttf") format("truetype"); +} + @theme { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; - --font-serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif; + --font-serif: "Montserrat", "Iowan Old Style", Palatino, Georgia, serif; --color-primary: #ea4c65; --color-primary-dark: #d43d56; --color-secondary: #00bcd4; diff --git a/static/fonts/Inter/Inter_18pt-Medium.ttf b/static/fonts/Inter/Inter_18pt-Medium.ttf new file mode 100644 index 0000000000000000000000000000000000000000..71d90172f10fab5ed0fd422a40cc09e7ef558072 GIT binary patch literal 343200 zcmd?S2bdMbwy?dbdw1A-$T>4086@W*Ip>^n&I2=KK?Egd5RjZD35bYf5XlGvA|fIn zA_yuOMACe3_3Rl2^qk{8_dECg&;QLlZ&h`5b=9g>tE#K2_uef^L=xcmL@HOPSgF&Q zHs6RC4MfbxmFv{5e{^J?rJ~lmqQWy)uHUfS>Dl9ZigaHj(t1Yi`g!svKi2VW5p|zj z+SG4Qwn5{wrRQ=yo8xBfd$tX$IdT3Sk)s7gI*jYwHatw1#`z@pZs#6@I&D2$va^^O zbBU2EqD#lN9rDjXqv`|!8EU4Qr5371>O=L3+N?fRThw;7TkTN?)DiWiI-yRguheOE
zUR_X^)Lr#JMH;pdV#HzT5swi$cg*Np$*649F )LK;yGz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