asset caching & image re-encode and downscale
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user