-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
140 lines (124 loc) · 5.29 KB
/
Copy pathindex.html
File metadata and controls
140 lines (124 loc) · 5.29 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Task Final</title>
<!-- Google Fonts -->
<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=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- CANVAS ÉTOILES (background parallax) -->
<canvas id="stars-canvas"></canvas>
<!-- CANVAS GLOBE 3D (Three.js) -->
<canvas id="globe-canvas"></canvas>
<!-- SVG OVERLAY : flèches animées dessinées par-dessus le globe -->
<svg id="arrow-svg" xmlns="http://www.w3.org/2000/svg">
<defs>
<marker id="arrowhead-red" markerWidth="10" markerHeight="7"
refX="10" refY="3.5" orient="auto">
<polygon points="0 0, 10 3.5, 0 7" fill="#ef4444"/>
</marker>
<marker id="arrowhead-green" markerWidth="10" markerHeight="7"
refX="10" refY="3.5" orient="auto">
<polygon points="0 0, 10 3.5, 0 7" fill="#4ade80"/>
</marker>
<marker id="arrowhead-yellow" markerWidth="10" markerHeight="7"
refX="10" refY="3.5" orient="auto">
<polygon points="0 0, 10 3.5, 0 7" fill="#fbbf24"/>
</marker>
<filter id="glow-red">
<feGaussianBlur stdDeviation="4" result="blur"/>
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
</filter>
<filter id="glow-green">
<feGaussianBlur stdDeviation="4" result="blur"/>
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
</filter>
<filter id="glow-yellow">
<feGaussianBlur stdDeviation="4" result="blur"/>
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
</filter>
</defs>
<!-- Les flèches sont injectées dynamiquement par arrows.js -->
</svg>
<!-- ZONE CLIQUABLE SUR LA FLÈCHE (bouton invisible par-dessus la flèche) -->
<div id="arrow-click-zone"></div>
<!-- SCÈNE 0 : INTRO / SLOGAN -->
<section id="scene-intro" class="scene active">
<div class="intro-content">
<p class="intro-eyebrow">A school project about inequality</p>
<h1 class="intro-title">
Task<br/><em>Final</em>
</h1>
<p class="intro-slogan">Everyone is human,<br/>but not everyone has the same luck.</p>
<div class="intro-cta">
<span class="cta-dot"></span>
<span>Click here to begin</span>
</div>
</div>
</section>
<!-- SCÈNE 1 : HÉMISPHÈRE NORD -->
<section id="scene-north" class="scene">
<div class="info-panel panel-right">
<span class="panel-tag north-tag">Northern Hemisphere</span>
</div>
</section>
<!-- SCÈNE 2 : HÉMISPHÈRE SUD -->
<section id="scene-south" class="scene">
<div class="info-panel panel-left">
<span class="panel-tag south-tag">Southern Hemisphere</span>
</div>
</section>
<!-- SCÈNE 3 : EXCEPTION — UKRAINE -->
<section id="scene-ukraine" class="scene">
<div class="info-panel panel-right panel-exception">
<span class="panel-tag exception-tag">Exception — Ukraine</span>
</div>
</section>
<!-- SCÈNE 4 : SLOGAN FINAL -->
<section id="scene-final" class="scene">
<div class="final-content">
<h2 class="final-title">Everyone is human.</h2>
<p class="final-sub">But not everyone has the same luck.</p>
<div class="final-divider"></div>
<p class="final-note">
Where you are born is not a choice.<br/>
What we do about it can be.
</p>
<p class="credits-note">
Developed by Nicolas Hemar and Chance Nanegnon
</p>
</div>
</section>
<!-- NAVIGATION (en bas) -->
<div class="nav-controls">
<button id="nav-prev" class="nav-btn" aria-label="Previous">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
</button>
<span class="nav-counter" id="nav-counter">1 / 5</span>
<button id="nav-next" class="nav-btn" aria-label="Next">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
</div>
<!-- HINT (texte en bas) -->
<p id="hint-text">Click the arrow to continue</p>
<!-- SCRIPTS -->
<!-- Three.js r128 — globe 3D -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<!-- OrbitControls -->
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
<!-- GSAP 3 — toutes les animations fluides -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<script src="scenes.js"></script>
<script src="globe.js"></script>
<script src="arrows.js"></script>
<script src="transitions.js"></script>
<script src="main.js"></script>
</body>
</html>