mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-03 02:04:31 +10:00
"Everything you've done, on one page." A single resume page is assembled, written, restyled, checked, tailored and shared as the visitor scrolls, followed by live community numbers, languages, a support receipt, a closing call to action and the footer. It replaces the previous homepage and its playgrounds. Motion: a small scroll engine (features/homepage/scroll.ts) writes each section's progress as --p on every animation frame, and the scenes derive their motion from it with CSS calc(). React only re-renders on coarse steps held in a zustand store. Reduced motion collapses every pinned scene to one screen at its end state and stops all ambient motion. Server-rendered copy: the web build now prerenders the homepage once per locale (Vite app builder, features/homepage/prerender.tsx) into apps/web/dist-prerender, which the server sends for "/" by `?locale=`, then the saved locale cookie. main.tsx waits for the route to load before React replaces the prerendered page, so it never flashes a loading screen. dist-prerender is added to turbo outputs, the Docker image and the Vercel function files. SEO: localized title and description, a canonical per locale, hreflang alternates for every locale over `/?locale=` addresses (the app now reads that parameter), and SoftwareApplication JSON-LD. The FAQ structured data is dropped because the page shows no FAQ. Also: self-hosted Anybody and Martian Mono (landing only) and Newsreader italic, graphite doodles as WebP, new Material Symbols in the icon subset, the pull-cord theme switch on the app's theme cookie, and new catalog strings extracted for translation.
82 lines
3.5 KiB
HTML
82 lines
3.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="#F8F7F3" media="(prefers-color-scheme: light)" />
|
|
<meta name="theme-color" content="#100F0C" media="(prefers-color-scheme: dark)" />
|
|
<!-- Apply the saved or system theme before first paint, so nothing flashes. Mirrors libs/theme.ts. -->
|
|
<script>
|
|
(() => {
|
|
try {
|
|
const match = document.cookie.match(/(?:^|; )theme=([^;]*)/);
|
|
const theme = match ? decodeURIComponent(match[1]) : "system";
|
|
const dark = theme === "dark" || (theme !== "light" && window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
document.documentElement.classList.toggle("dark", dark);
|
|
} catch {
|
|
// Without cookies or matchMedia the page starts light, and the app corrects it once it loads.
|
|
}
|
|
})();
|
|
</script>
|
|
<meta name="application-name" content="Reactive Resume" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-title" content="Reactive Resume" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
<!-- Keep under ~120 characters so Google's mobile SERP snippet is not truncated at 3 lines. -->
|
|
<meta name="description" content="Free, open-source resume builder. Create, update, and share a professional resume in minutes — no ads, no paywall.">
|
|
|
|
<link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="128x128" />
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" sizes="256x256 any" />
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" type="image/png" sizes="180x180 any" />
|
|
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
|
|
|
<title>Reactive Resume — A free and open-source resume builder</title>
|
|
</head>
|
|
<body>
|
|
<!-- Empty here; the server prerenders the homepage into it (apps/server/src/static/web.ts). -->
|
|
<div id="app"></div>
|
|
<!-- Branded first paint; hidden once React populates #app (higher-specificity rule below). -->
|
|
<div id="initial-loader">
|
|
<img class="initial-loader__logo-light" src="/icon/light.svg" width="48" height="48" alt="Reactive Resume" />
|
|
<img class="initial-loader__logo-dark" src="/icon/dark.svg" width="48" height="48" alt="" />
|
|
<div class="initial-loader__spinner"></div>
|
|
<span class="initial-loader__sr-only">Loading</span>
|
|
</div>
|
|
<style>
|
|
@keyframes app-spin { to { transform: rotate(360deg) } }
|
|
#initial-loader {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 24px;
|
|
background: #f8f7f3;
|
|
}
|
|
html.dark #initial-loader { background: #100f0c; }
|
|
.initial-loader__logo-dark, html.dark .initial-loader__logo-light { display: none; }
|
|
html.dark .initial-loader__logo-dark { display: block; }
|
|
#app:not(:empty) ~ #initial-loader { display: none; }
|
|
.initial-loader__spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 2px solid rgba(28, 27, 21, 0.2);
|
|
border-top-color: #1c1b15;
|
|
border-radius: 9999px;
|
|
animation: app-spin 0.7s linear infinite;
|
|
}
|
|
html.dark .initial-loader__spinner { border-color: rgba(239, 238, 235, 0.2); border-top-color: #efeeeb; }
|
|
.initial-loader__sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
}
|
|
</style>
|
|
<script type="module" data-cfasync="false" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|