168 lines
5.7 KiB
HTML
168 lines
5.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<meta name="theme-color" content="#ffffff" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, interactive-widget=resizes-content" />
|
|
<title>Sakura Sensei 🌸</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: 'Nunito', 'Noto Sans JP', sans-serif;
|
|
}
|
|
/* Custom scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1;
|
|
border-radius: 4px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #94a3b8;
|
|
}
|
|
|
|
/* Loading Animation Styles */
|
|
#app-loader {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
background-color: #f8fafc;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: opacity 0.5s ease-out;
|
|
}
|
|
|
|
.sakura-spinner {
|
|
position: relative;
|
|
width: 80px;
|
|
height: 80px;
|
|
animation: spin-slow 6s linear infinite;
|
|
}
|
|
|
|
.petal {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 30px;
|
|
height: 30px;
|
|
background: radial-gradient(circle at 70% 70%, #f43f5e, #fb7185);
|
|
border-radius: 0 100% 0 100%;
|
|
opacity: 0.9;
|
|
transform-origin: 0 0;
|
|
}
|
|
|
|
.petal:nth-child(1) { transform: rotate(0deg) translate(10px, 10px); }
|
|
.petal:nth-child(2) { transform: rotate(72deg) translate(10px, 10px); }
|
|
.petal:nth-child(3) { transform: rotate(144deg) translate(10px, 10px); }
|
|
.petal:nth-child(4) { transform: rotate(216deg) translate(10px, 10px); }
|
|
.petal:nth-child(5) { transform: rotate(288deg) translate(10px, 10px); }
|
|
|
|
.center-dot {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 12px;
|
|
height: 12px;
|
|
background-color: #fef3c7;
|
|
border-radius: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 10;
|
|
box-shadow: 0 0 10px rgba(251, 113, 133, 0.5);
|
|
}
|
|
|
|
.loader-text {
|
|
margin-top: 2rem;
|
|
font-family: 'Nunito', sans-serif;
|
|
font-weight: 800;
|
|
font-size: 1.5rem;
|
|
color: #e11d48;
|
|
letter-spacing: -0.025em;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes spin-slow {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.7; transform: scale(0.98); }
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeInUp {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
|
|
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
|
|
@keyframes indeterminate {
|
|
0% { transform: translateX(-100%); }
|
|
100% { transform: translateX(100%); }
|
|
}
|
|
|
|
.animate-fade-in-up { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
|
|
.animate-scale-in { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
|
.animate-slide-in-right { animation: slideInRight 0.4s ease-out forwards; }
|
|
.animate-indeterminate { animation: indeterminate 1.5s infinite linear; }
|
|
|
|
.delay-100 { animation-delay: 100ms; }
|
|
.delay-200 { animation-delay: 200ms; }
|
|
.delay-300 { animation-delay: 300ms; }
|
|
.delay-500 { animation-delay: 500ms; }
|
|
</style>
|
|
<script type="importmap">
|
|
{
|
|
"imports": {
|
|
"@vitejs/plugin-react": "https://aistudiocdn.com/@vitejs/plugin-react@^5.1.1",
|
|
"react/": "https://aistudiocdn.com/react@^19.2.0/",
|
|
"react": "https://aistudiocdn.com/react@^19.2.0",
|
|
"react-markdown": "https://aistudiocdn.com/react-markdown@^10.1.0",
|
|
"react-dom/": "https://aistudiocdn.com/react-dom@^19.2.0/",
|
|
"remark-gfm": "https://aistudiocdn.com/remark-gfm@^4.0.1",
|
|
"@google/genai": "https://aistudiocdn.com/@google/genai@^1.30.0",
|
|
"lucide-react": "https://aistudiocdn.com/lucide-react@^0.554.0",
|
|
"vite": "https://aistudiocdn.com/vite@^7.2.2",
|
|
"html2canvas": "https://aistudiocdn.com/html2canvas@^1.4.1"
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="bg-slate-50 text-slate-800 h-[100dvh] overflow-hidden">
|
|
<!-- Preloader -->
|
|
<div id="app-loader">
|
|
<div class="sakura-spinner">
|
|
<div class="petal"></div>
|
|
<div class="petal"></div>
|
|
<div class="petal"></div>
|
|
<div class="petal"></div>
|
|
<div class="petal"></div>
|
|
<div class="center-dot"></div>
|
|
</div>
|
|
<div class="loader-text">Sakura Sensei</div>
|
|
</div>
|
|
|
|
<div id="root" class="h-full w-full"></div>
|
|
<script type="module" src="/index.tsx"></script>
|
|
<script>
|
|
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', () => {
|
|
navigator.serviceWorker.register('/service-worker.js')
|
|
.catch(err => console.log('ServiceWorker registration failed: ', err));
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |