-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (87 loc) · 3.36 KB
/
index.html
File metadata and controls
103 lines (87 loc) · 3.36 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<!--
Purpose:
Base HTML template used for both development and production.
Responsibilities:
- Provide the root container for React
- Serve as the entry point for SSR and client hydration
- Define global layout, metadata, and base styles
Design notes:
- This file is intentionally minimal
- No dynamic logic lives here
- All rendering is delegated to React (SSR + hydration)
Related docs:
- https://vite.dev/guide/ssr#source-structure
- https://react.dev/reference/react-dom/client/hydrateRoot
-->
<html lang="fr">
<head>
<!-- ----------------------------------------------------------------- -->
<!-- Document metadata -->
<!-- ----------------------------------------------------------------- -->
<meta charset="UTF-8" />
<!--
Responsive behavior is required for most modern layouts.
This keeps CSS frameworks and custom styles predictable.
-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Start Express React</title>
<!-- ----------------------------------------------------------------- -->
<!-- Assets -->
<!-- ----------------------------------------------------------------- -->
<!--
Favicon is served as a static asset by Vite in dev
and by the production static server after build.
-->
<link
rel="shortcut icon"
href="/src/react/assets/images/favicon.webp"
type="image/png"
/>
<!-- ----------------------------------------------------------------- -->
<!-- Base styling -->
<!-- ----------------------------------------------------------------- -->
<!--
Pico.css is used as a lightweight, classless CSS framework.
It provides sensible defaults without enforcing a design system.
-->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
<!--
Local CSS variables allow small visual tweaks
without overriding or forking the framework.
-->
<style>
:root {
--pico-border-radius: 2rem;
--pico-form-element-spacing-vertical: 0.5rem;
--pico-form-element-spacing-horizontal: 1rem;
}
</style>
</head>
<body>
<!-- ----------------------------------------------------------------- -->
<!-- Application root -->
<!-- ----------------------------------------------------------------- -->
<!--
This is the single mounting point for the React application.
In SSR mode:
- The server injects rendered HTML here
- The client hydrates it on load
In client-only mode:
- React renders everything from scratch
-->
<div class="container" id="root"><!--ssr-outlet--></div>
<!-- ----------------------------------------------------------------- -->
<!-- Client entry -->
<!-- ----------------------------------------------------------------- -->
<!--
Client-side entry point:
- Attaches React to the existing DOM
- Enables interactivity and navigation
-->
<script type="module" src="/src/entry-client"></script>
</body>
</html>