This repository was archived by the owner on Dec 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
328 lines (292 loc) · 10.6 KB
/
index.html
File metadata and controls
328 lines (292 loc) · 10.6 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Python Togo - Site en construction</title>
<meta name="description" content="Le site de Python Togo est en construction. Accédez aux informations de PyCon Togo 2025." />
<link rel="shortcut icon" href="https://res.cloudinary.com/dvg7vky5o/image/upload/v1744083253/Py_owbvez.png" type="image/x-icon">
<style>
:root{
--py-blue: #3776AB;
--py-yellow: #FFD43B;
--bg: #ffffff;
--text: #000000;
--muted: #4b5563;
--card-radius: 14px;
--shadow: 0 10px 30px rgba(55,118,171,0.08);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{
height:100%;
background: linear-gradient(180deg, #f8feff 0%, #ffffff 100%);
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
color:var(--text);
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
}
.wrap{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
padding:32px;
}
.card{
width:100%;
max-width:920px;
background:var(--bg);
border-radius:var(--card-radius);
box-shadow:var(--shadow);
display:flex;
gap:32px;
align-items:center;
padding:36px;
transition:transform .25s ease, box-shadow .25s ease;
animation:fadeInUp 700ms ease both;
position:relative;
}
.card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(55,118,171,0.12); }
/* left column - emblem */
.brand{
flex:0 0 120px;
display:flex;
align-items:center;
justify-content:center;
}
.emblem{
width:96px;
height:96px;
border-radius:20px;
display:flex;
align-items:center;
justify-content:center;
background: conic-gradient(from 180deg at 50% 50%, var(--py-blue) 0 40%, var(--py-yellow) 40% 80%, #ffffff 80% 100%);
box-shadow: 0 6px 18px rgba(55,118,171,0.08), inset 0 -6px 18px rgba(0,0,0,0.03);
font-weight:700;
color:#fff;
font-size:18px;
border:3px solid rgba(0,0,0,0.04);
}
/* main content */
.content{
flex:1 1 auto;
min-width:0;
}
.lang-row{
display:flex;
gap:12px;
align-items:center;
justify-content:space-between;
}
.lang-switch{ display:flex; gap:8px; }
.lang-btn{
background:transparent;
border:1px solid rgba(0,0,0,0.06);
padding:6px 8px;
border-radius:8px;
font-weight:700;
color:var(--py-blue);
cursor:pointer;
font-size:0.85rem;
}
.lang-btn[aria-pressed="true"]{ background:var(--py-blue); color:#fff; border-color:transparent; }
h1{
font-size:1.6rem;
color:var(--py-blue);
margin-bottom:12px;
letter-spacing:0.2px;
font-weight:800;
animation:popIn 900ms cubic-bezier(.2,.9,.2,1) both;
}
p.lead{
color:var(--muted);
font-size:1.05rem;
line-height:1.5;
margin-bottom:22px;
opacity:0.96;
}
.actions{
display:flex;
gap:12px;
flex-wrap:wrap;
align-items:center;
}
.btn{
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
padding:10px 16px;
border-radius:10px;
font-weight:600;
text-decoration:none;
cursor:pointer;
border:0;
transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
user-select:none;
}
.btn-primary{
background:linear-gradient(180deg,var(--py-yellow), #ffdf66);
color:var(--py-blue);
box-shadow: 0 6px 18px rgba(255,212,59,0.18);
border: 1px solid rgba(0,0,0,0.05);
animation:popIn 1100ms cubic-bezier(.2,.9,.2,1) both;
}
.btn-primary:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(255,212,59,0.18); }
.btn-outline{
background:transparent;
color:var(--py-blue);
border:2px solid var(--py-blue);
padding:8px 14px;
}
.subscribe{
background: #056d1e;
color:#ffffff;
border-radius:10px;
padding:10px 14px;
font-weight:600;
border:0;
}
/* small meta text */
.meta{
margin-top:14px;
color:#6b7280;
font-size:0.88rem;
}
/* footer */
footer{
margin-top:18px;
text-align:center;
width:100%;
color:#9aa0a6;
font-size:0.85rem;
}
/* responsive layout: stack on small screens */
@media (max-width:720px){
.card{ flex-direction:column; padding:24px; gap:18px; text-align:center; }
.brand{ flex:0 0 auto; }
h1{ font-size:1.25rem; }
.actions{ justify-content:center; }
.lang-row{ flex-direction:column; gap:10px; align-items:center; }
}
/* animations */
@keyframes fadeInUp {
0%{ opacity:0; transform:translateY(10px) scale(.998); }
100%{ opacity:1; transform:translateY(0) scale(1); }
}
@keyframes popIn {
0%{ opacity:0; transform:translateY(8px) scale(.98); }
60%{ opacity:1; transform:translateY(-4px) scale(1.02); }
100%{ transform:translateY(0) scale(1); }
}
/* subtle focus outline */
.btn:focus{ outline:3px solid rgba(55,118,171,0.12); outline-offset:3px; }
.lang-btn:focus{ outline:3px solid rgba(55,118,171,0.12); outline-offset:3px; }
/* prefer reduced motion safety */
@media (prefers-reduced-motion: reduce){
.card, .btn-primary { animation: none; transition: none; }
}
</style>
</head>
<body>
<div class="wrap">
<main class="card" role="main" aria-labelledby="title">
<div class="brand" aria-hidden="true">
<!-- emblem image; keep path relative to project static folder -->
<img src="https://res.cloudinary.com/dvg7vky5o/image/upload/v1744083253/Py_owbvez.png" alt="Python Togo" width="100" height="" style="border-radius:12px;" />
</div>
<div class="content">
<div class="lang-row">
<h1 id="title" data-l10n="title">Le site de Python Togo est en Maintenance</h1>
<div class="lang-switch" role="tablist" aria-label="Choix de la langue">
<button class="lang-btn" data-lang="fr" aria-pressed="true">FR</button>
<button class="lang-btn" data-lang="en" aria-pressed="false">EN</button>
</div>
</div>
<p class="lead" data-l10n="lead">Le site de Python Togo est en Maintenance. Merci de revenir bientôt.</p>
<div class="actions" role="group" aria-label="Actions">
<a class="btn btn-primary" id="primaryLink" href="http://pycontg.pytogo.org/" target="_blank" rel="noopener noreferrer" data-l10n="primary">
Accéder aux informations de PyCon Togo 2025
</a>
<a class="btn btn-outline subscribe" href="http://pycontg.pytogo.org/"> PyCon Togo 2025 </a>
</div>
<p class="meta" data-l10n-html="meta">Vous pouvez aussi suivre <a href="https://pytogo.org/discord" target="_blank" rel="noopener noreferrer">notre Discord</a> pour les dernières nouvelles.</p>
<footer aria-hidden="true" data-l10n="footer">© Python Togo — PyCon Togo 2025</footer>
</div>
</main>
</div>
<script>
(function(){
// simple bilingual translations
const translations = {
fr: {
title: 'Le site de Python Togo est en Maintenance',
lead: 'Le site de Python Togo est en Maintenance. Merci de revenir bientôt.',
primary: 'Accéder aux informations de PyCon Togo 2025',
subscribe: "S'abonner pour être notifié",
subscribeThanks: 'Merci — Vous serez notifié',
subscribeAlert: 'Vous serez notifié quand le site sera disponible.',
meta: 'Vous pouvez aussi suivre <a href="https://pytogo.org/discord" target="_blank" rel="noopener noreferrer">notre Discord</a> pour les dernières nouvelles.',
footer: '© Python Togo — PyCon Togo 2025',
docTitle: 'Python Togo - Site en construction'
},
en: {
title: 'Python Togo site under maintenance',
lead: 'The Python Togo website is under maintenance. Please check back soon.',
primary: 'View PyCon Togo 2025 information',
subscribe: 'Subscribe for notification',
subscribeThanks: 'Thanks — You will be notified',
subscribeAlert: 'You will be notified when the site becomes available.',
meta: 'You can also follow <a href="https://pytogo.org/discord" target="_blank" rel="noopener noreferrer">our Discord</a> for the latest updates.',
footer: '© Python Togo — PyCon Togo 2025',
docTitle: 'Python Togo - Site under construction'
}
};
// find elements to localize
function applyLang(lang){
const map = translations[lang] || translations.fr;
document.documentElement.lang = (lang === 'en') ? 'en' : 'fr';
document.title = map.docTitle;
// text nodes
const els = document.querySelectorAll('[data-l10n]');
els.forEach(el => {
const key = el.getAttribute('data-l10n');
if(key && map[key]) el.textContent = map[key];
});
// html content
const elsHtml = document.querySelectorAll('[data-l10n-html]');
elsHtml.forEach(el => {
const key = el.getAttribute('data-l10n-html');
if(key && map[key]) el.innerHTML = map[key];
});
// update lang buttons state
document.querySelectorAll('.lang-btn').forEach(b => b.setAttribute('aria-pressed', b.getAttribute('data-lang')===lang ? 'true' : 'false'));
}
// detect preferred language
const initial = (navigator.language && navigator.language.startsWith('en')) ? 'en' : 'fr';
applyLang(initial);
// wire language buttons
document.querySelectorAll('.lang-btn').forEach(btn => {
btn.addEventListener('click', function(){
const lang = this.getAttribute('data-lang');
applyLang(lang);
});
});
// subscribe button behavior (uses translations)
const subBtn = document.getElementById('subscribeBtn');
if(subBtn){
subBtn.addEventListener('click', function(){
const lang = document.querySelector('.lang-btn[aria-pressed="true"]')?.getAttribute('data-lang') || 'fr';
const map = translations[lang] || translations.fr;
alert(map.subscribeAlert);
subBtn.textContent = map.subscribeThanks;
subBtn.setAttribute('aria-pressed','true');
subBtn.disabled = true;
subBtn.style.opacity = '0.85';
});
}
})();
</script>
</body>
</html>