mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
* feat: mobile UX overhaul, theme flash prevention and build cleanup UI/UX (mostly mobile): - Prevent white flash on load: pre-paint inline style + script in index.html applies the persisted theme before first paint. - Match browser chrome to the app background: theme-color meta kept in sync for Android/older iOS, and body background pinned to the Layout color for Safari 26+, which ignores theme-color and samples the page. - Make the document the app's scroller instead of n-layout's nested container: single scrollbar, native iOS tap-status-bar-to-scroll-top, natural toolbar collapsing; desktop sider becomes sticky and router scrollBehavior restores/resets scroll on navigation. - Full-width mobile menu that fades in under an always-visible sticky top bar, seamless app background without the hero gradient, closes on navigation (including About while already on /about), scroll-locked behind, symmetric spacing around the title block and icon row. - Language selector and theme toggle become icon dropdowns; theme supports System/Light/Dark via useColorMode (same storage as before). - Route-change loading spinner scoped to the page area so the nav bar stays visible; spinner remains cosmetic-only (350ms delay). - Halve content padding on small screens; reduce home top padding. - Full-width expand/collapse tools button so its width doesn't jump. - No sticky hover styles on touch devices (hover gated behind @media (hover: hover)). Build: - Rename deprecated rolldown output.advancedChunks to codeSplitting. - Fix unocss 'unmatched utility' warnings in the pretty-scrollbar shortcut; override js-sha256 to 0.11.x (drops eval); bump javascript-obfuscator to 5.4.6. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TNayL5ianBBucVapfkM8CC * Remove unnecessary comment * Refresh lockfile, remove releaseage ignore Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me> * chore: remove unused LocaleSelector component Language selection moved into the NavbarButtons dropdown; nothing references this component anymore. Its i18n keys are left in place. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TNayL5ianBBucVapfkM8CC --------- Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me> Co-authored-by: Claude <noreply@anthropic.com>
57 lines
2.5 KiB
HTML
57 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="theme-color" content="#f1f5f9" />
|
|
<style>
|
|
html { color-scheme: light; }
|
|
html.dark { color-scheme: dark; }
|
|
html, body { background-color: #f1f5f9; }
|
|
html.dark, html.dark body { background-color: #1c1c1c; }
|
|
</style>
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var mode = localStorage.getItem('vueuse-color-scheme') || 'auto';
|
|
if (mode === 'dark' || (mode === 'auto' && matchMedia('(prefers-color-scheme: dark)').matches)) {
|
|
document.documentElement.classList.add('dark');
|
|
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#1c1c1c');
|
|
}
|
|
}
|
|
catch (e) {}
|
|
})();
|
|
</script>
|
|
<link rel="icon" href="favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>IT Tools - Handy online tools for developers</title>
|
|
<link rel="author" href="humans.txt" />
|
|
<link rel="canonical" href="https://sharevb-it-tools.vercel.app" />
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
|
|
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#18a058" />
|
|
|
|
<meta name="msapplication-TileColor" content="#da532c" />
|
|
|
|
<meta property="og:url" content="https://sharevb-it-tools.vercel.app/" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
|
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:site" content="@ittoolsdottech" />
|
|
<meta name="twitter:creator" content="@cthmsst" />
|
|
|
|
<meta name="twitter:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
|
|
<meta name="twitter:image:alt" content="IT Tools - Handy online tools for developers" />
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
<link rel="preload" href="home.custom.md" as="fetch" crossorigin="anonymous" />
|
|
<link rel="preload" href="tools-filter.json" as="fetch" crossorigin="anonymous" />
|
|
<link rel="preload" href="external-tools.json" as="fetch" crossorigin="anonymous" />
|
|
<link rel="preload" href="tools-settings.json" as="fetch" crossorigin="anonymous" />
|
|
</body>
|
|
</html>
|