From 44a070668e68d11ad12ca5e26beb9f55fded0cb3 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 20:22:20 +0000 Subject: [PATCH] Improve font loading and add fallback for better display Updates client/index.html and client/src/index.css to improve Oswald font loading with preconnect hints and adds a fallback font stack for desktop users in the .oswald-text class. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/kdQ95gE --- client/index.html | 12 ++++++++++-- client/src/index.css | 7 ++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/client/index.html b/client/index.html index 5581bf1..e6422bd 100644 --- a/client/index.html +++ b/client/index.html @@ -26,10 +26,18 @@ - + - + + diff --git a/client/src/index.css b/client/src/index.css index 54fa74e..a689e01 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -392,12 +392,13 @@ input[data-testid*="search"]::placeholder { z-index: 2147483647 !important; } -/* Oswald font povsod */ +/* Oswald font povsod z fallback za desktop */ .oswald-text { - font-family: 'Oswald', sans-serif; - font-weight: 500; + font-family: 'Oswald', 'Arial Black', 'Helvetica', sans-serif; + font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; + font-display: swap; } /* Hide picture-in-picture button on all video elements */