-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
171 lines (161 loc) · 6.43 KB
/
index.html
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>Ganymède</title>
<meta name="description" content="Ganymède" />
<meta name="author" content="Xavier Jouppe" />
<link rel="stylesheet" href="resources/css/reset.css?v=1.0" />
<link rel="stylesheet" href="resources/css/styles.css?v=1.0" />
<style>
/* nunito-600 - latin */
@font-face {
font-family: "Nunito";
font-style: normal;
font-weight: 600;
src: url("resources/fonts/nunito-v12-latin-600.eot"); /* IE9 Compat Modes */
src: local("Nunito SemiBold"), local("Nunito-SemiBold"),
url("resources/fonts/nunito-v12-latin-600.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("resources/fonts/nunito-v12-latin-600.woff2")
format("woff2"),
/* Super Modern Browsers */
url("resources/fonts/nunito-v12-latin-600.woff") format("woff"),
/* Modern Browsers */ url("resources/fonts/nunito-v12-latin-600.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("resources/fonts/nunito-v12-latin-600.svg#Nunito") format("svg"); /* Legacy iOS */
}
</style>
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta property="og:url" content="https://ganymede.tech" />
<meta property="og:title" content="Ganymede" />
<meta
property="og:description"
content="Développement de projets informatiques"
/>
<meta property="og:image" content="/resources/logo/linkedin.png" />
<meta property="og:image:alt" content="Ganymede logo" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="627" />
<meta property="og:locale" content="fr_FR" />
<meta property="og:site_name" content="Ganymède" />
<link rel="canonical" href="https://ganymede.tech" />
<meta name="description" content="Développement de projets informatiques" />
<meta name="image" content="/resources/logo/linkedin.pngg" />
<meta itemprop="name" content="Ganymède" />
<meta
itemprop="description"
content="Développement de projets informatiques"
/>
<meta name="next-head-count" content="19" />
</head>
<body>
<div id="space" class="parallax">
<div class="main-container parallax__layer parallax__layer--ganymede">
<img class="logo" src="resources/logo/ganymede.svg" />
<h1>Ganymède</h1>
<p>Développement de projets informatiques.</p>
<div class="buttons">
<a href="mailto:[email protected]">@ Contactez-moi !</a>
ou
<a href="https://github.com/XavierJp"
><svg
xmlns="http://www.w3.org/2000/svg"
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="3"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-github"
>
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"
></path>
</svg>
Voir mon Github</a
>
</div>
</div>
<div class="main-container parallax__layer parallax__layer--comet">
<img id="comet" src="resources/logo/comet.svg" />
</div>
<div
id="star-container"
class="parallax__layer parallax__layer--deep"
></div>
<div
id="planet-small-container"
class="parallax__layer parallax__layer--back"
></div>
<div
id="planet-medium-container"
class="parallax__layer parallax__layer--base"
></div>
</div>
<script>
function starFactory(windowWidth, windowHeight) {
var stars = document.getElementById("star-container");
var smallPlanets = document.getElementById("planet-small-container");
var mediumPlanets = document.getElementById("planet-medium-container");
var celestials = [];
function nebulae(
count,
sizeMultiplier,
sizeOffset,
className,
anchorNode
) {
for (var i = 0; i < count; i++) {
var size = sizeMultiplier * Math.random() + sizeOffset;
var posX = Math.random();
var posY = Math.random();
var newStar = document.createElement("div");
newStar.className = className + " celestial";
newStar.style.width = `${size}px`;
newStar.style.height = `${size}px`;
newStar.style.top = `${posX * windowHeight}px`;
newStar.style.left = `${posY * windowWidth}px`;
anchorNode.appendChild(newStar);
celestials.push({ element: newStar, X: posX, Y: posY });
}
}
nebulae(400, 3, 1, "star", stars);
nebulae(100, 5, 2, "star", stars);
nebulae(4, 6, 8, "red-planet", smallPlanets);
nebulae(2, 8, 8, "blue-planet", mediumPlanets);
return {
reDraw: function () {
var newWidth = window.innerWidth;
var newHeight = window.innerHeight * 1.1;
for (var i = 0; i < celestials.length; i++) {
var celestial = celestials[i];
var newStar = celestial.element;
newStar.style.top = `${celestial.X * newHeight}px`;
newStar.style.left = `${celestial.Y * newWidth}px`;
}
},
};
}
(function draw() {
var windowWidth = window.innerWidth;
var windowHeight = window.innerHeight * 1.1;
var orion = starFactory(windowWidth, windowHeight);
var comet = document.getElementById("comet");
var space = document.getElementById("space");
space.addEventListener("scroll", function (e) {
var run = (space.scrollTop / space.scrollHeight) * 100;
comet.style.top = `${(run * 50) / 2 - 20}px`;
comet.style.right = `${run * 50 + 200}px`;
});
window.addEventListener("resize", orion.reDraw);
})();
</script>
</body>
</html>