Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (58 loc) · 2.35 KB
/
Copy pathindex.html
File metadata and controls
58 lines (58 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="ko" class="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="코딩마루 - 학생용 1년 완성 인터랙티브 코딩 학습 플랫폼" />
<title>코딩마루 - 재미있는 코딩 학습</title>
<!-- 폰트 프리로드로 깜빡임 방지 - Jua 폰트 추가 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<!-- 초기 다크모드 배경색 설정으로 흰 화면 방지 -->
<style>
/* 폰트 로딩 전 깜빡임 방지 */
html, body, #root {
background-color: #0f172a;
min-height: 100vh;
}
body {
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: #e2e8f0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Jua 폰트 사전 정의 */
.font-logo {
font-family: 'Jua', 'Noto Sans KR', sans-serif;
}
/* 로딩 중 콘텐츠 숨김 - 폰트 로드 후 표시 */
.fonts-loading #root {
visibility: hidden;
}
.fonts-loaded #root {
visibility: visible;
}
</style>
<!-- 폰트 로딩 감지 스크립트 -->
<script>
document.documentElement.classList.add('fonts-loading');
if (document.fonts && document.fonts.ready) {
document.fonts.ready.then(function() {
document.documentElement.classList.remove('fonts-loading');
document.documentElement.classList.add('fonts-loaded');
});
} else {
// 폴백: 폰트 API 미지원 브라우저
document.documentElement.classList.remove('fonts-loading');
document.documentElement.classList.add('fonts-loaded');
}
</script>
</head>
<body class="antialiased">
<div id="root"></div>
<script src="https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>