asset caching & image re-encode and downscale

This commit is contained in:
Zoe
2024-11-12 01:30:24 -06:00
parent 796e889809
commit d23b66dda1
11 changed files with 101 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
<main class="flex justify-center items-center h-100vh relative bg-[#0E0A0E]">
<div class="flex bg-[#151316] rounded-xl overflow-hidden">
<img src="/leaves.jpg" class="h-96 w-64 object-cover" />
<img src="/assets/leaves.webp" class="h-96 w-64 object-cover" />
<div class="flex flex-col p-4 text-center">
<h2 class="text-2xl">
Login

View File

@@ -8,21 +8,21 @@
<style>
@font-face {
font-family: "Instrument Sans";
src: url("/fonts/InstrumentSans-Regular.ttf");
src: url("/assets/fonts/InstrumentSans-Regular.ttf");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Instrument Sans";
src: url("/fonts/InstrumentSans-SemiBold.ttf");
src: url("/assets/fonts/InstrumentSans-SemiBold.ttf");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Instrument Sans";
src: url("/fonts/InstrumentSans-Italic.ttf");
src: url("/assets/fonts/InstrumentSans-Italic.ttf");
font-weight: normal;
font-style: italic;
}