-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
256 lines (250 loc) · 8.63 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
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
<!doctype html>
<html lang="fr-FR">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="robots" content="noindex, nofollow" />
<title>Atelier des Medias - Liens</title>
<meta
name="description"
content="Liens vers les sites, réseaux sociaux et outils de l'ADM"
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0d2f39" />
<meta name="apple-mobile-web-app-title" content="ADM" />
<meta name="application-name" content="ADM" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<script
src="https://kit.fontawesome.com/ac5688d412.js"
crossorigin="anonymous"
></script>
<script src="https://cdn.tailwindcss.com"></script>
<style type="text/tailwindcss">
@layer components {
.btn {
@apply rounded-md shadow mx-4;
}
.btn a {
@apply w-full flex items-center justify-center border border-transparent text-base font-medium rounded-md text-white py-2 text-lg px-8;
}
}
</style>
<style type="text/css">
body {
background-color: #ffffff;
background:
linear-gradient(135deg, #fcfcff55 25%, transparent 25%) -11px 0/ 22px
22px,
linear-gradient(225deg, #fcfcff 25%, transparent 25%) -11px 0/ 22px
22px,
linear-gradient(315deg, #fcfcff55 25%, transparent 25%) 0px 0/ 22px 22px,
linear-gradient(45deg, #fcfcff 25%, #ffffff 25%) 0px 0/ 22px 22px;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
// Detects if device is on Android
const isAndroid = () => {
const userAgent = window.navigator.userAgent.toLowerCase();
return /android/.test(userAgent);
};
// Detects if device is on iOS
const isIos = () => {
const userAgent = window.navigator.userAgent.toLowerCase();
return /iphone|ipad|ipod/.test(userAgent);
};
// Detects if device is in standalone mode
const isInStandaloneMode = () =>
"standalone" in window.navigator && window.navigator.standalone;
// Checks if should display install popup notification:
if (isIos() && !isInStandaloneMode()) {
document.querySelector("body").classList.add("mb-28");
document.querySelector(".ios").classList.remove("hidden");
setTimeout(function () {
document.querySelector(".ios").classList.add("opacity-100");
}, 1000);
document
.querySelector(".ios")
.addEventListener("click", function (event) {
this.classList.add("hidden");
document.querySelector("body").classList.remove("mb-28");
});
}
// on click on Element button
const element = document.getElementById("element");
element.addEventListener("click", function (event) {
let url = "element://vector/webapp/";
// desktop fallback if the app is not installed.
let fallback = "https://app.element.io";
if (isIos()) {
fallback = "https://itunes.apple.com/app/riot-im/id1083446067?mt=8";
} else if (isAndroid()) {
fallback =
"https://play.google.com/store/apps/details?id=im.vector.app";
}
window.location = url;
setTimeout(function () {
if (
window.confirm(
"L'application n'est peut-être pas installée.\nVoulez-vous installer Element ?",
)
) {
window.location = fallback;
}
}, 1000);
});
});
</script>
</head>
<body class="m-4">
<div class="text-center">
<img
src="/atelier-des-medias-squared.png"
width="176"
height="176"
alt="Atelier des Médias"
class="mx-auto my-6"
/>
<div class="mt-6 max-w-sm mx-auto flex flex-col gap-4">
<div class="btn">
<a
href="https://intra.atelier-medias.org/"
rel="noreferrer"
target="_blank"
class="bg-sky-600 hover:bg-sky-700"
>
<i class="fa-brands fa-wikipedia-w mr-1"></i>L'Intranet
</a>
</div>
<div class="btn">
<a
href="element.html"
class="element-btn bg-[#03B381] hover:bg-[#058F67]"
>
<i class="fa-solid fa-message mr-2"></i>Le Chat
</a>
</div>
<hr />
<div class="btn">
<a
href="https://intra.atelier-medias.org/xwiki/bin/view/MoccaCalendar/SalleReunion/"
rel="noreferrer"
target="_blank"
class="bg-rose-400 hover:bg-rose-500"
>
<i class="fa-solid fa-calendar mr-2"></i>La Salle de réunion
</a>
</div>
<div class="btn">
<a
href="https://intra.atelier-medias.org/xwiki/bin/view/MoccaCalendar/Box/"
rel="noreferrer"
target="_blank"
class="bg-green-400 hover:bg-lime-500"
>
<i class="fa-solid fa-calendar mr-2"></i>Le Bocal
</a>
</div>
<div class="btn">
<a
href="https://intra.atelier-medias.org/xwiki/bin/view/MoccaCalendar/Cabine/"
rel="noreferrer"
target="_blank"
class="bg-orange-400 hover:bg-orange-500"
>
<i class="fa-solid fa-calendar mr-2"></i>La Cabine
</a>
</div>
<div class="btn">
<a
href="https://intra.atelier-medias.org/xwiki/bin/view/Main/UserDirectory"
rel="noreferrer"
target="_blank"
class="bg-purple-400 hover:bg-purple-500"
>
<i class="fa-solid fa-users mr-2"></i>L'Annuaire
</a>
</div>
<div class="btn">
<a
href="https://intra.atelier-medias.org/xwiki/bin/view/MoccaCalendar/Ev%C3%A9nements%20ext%C3%A9rieurs/"
rel="noreferrer"
target="_blank"
class="bg-[#1877F2] hover:bg-[#1660BF]"
>
<i class="fa-solid fa-calendar mr-2"></i>Les Evènements
</a>
</div>
</div>
<div class="mt-6 mx-auto text-xl">
<a
href="https://www.atelier-medias.org/"
rel="noreferrer"
target="_blank"
class="mx-2"
>
<img
src="./globe.png?v1"
width="24"
height="24"
class="inline-block align-sub"
/>
</a>
<a
href="https://www.facebook.com/Coworkinglyon"
rel="noreferrer"
target="_blank"
class="mx-2 text-[#1877F2] hover:text-[#1660BF]"
>
<i class="fa-brands fa-facebook-f"></i>
</a>
<a
href="https://twitter.com/coworkinglyon"
rel="noreferrer"
target="_blank"
class="mx-2 text-[#1DA1F2] hover:text-[#137FC2]"
>
<i class="fa-brands fa-twitter"></i>
</a>
<a
href="https://www.linkedin.com/company/l-atelier-des-m%C3%A9dias-coworking-lyon/"
rel="noreferrer"
target="_blank"
class="mx-2 text-[#0e76a8] hover:text-[#185a7a]"
>
<i class="fa-brands fa-linkedin-in"></i>
</a>
<a
href="https://www.instagram.com/atelierdesmedias_lyon"
rel="noreferrer"
target="_blank"
class="mx-2 text-[#F56040] hover:text-[#CC4B2F]"
>
<i class="fa-brands fa-instagram"></i>
</a>
<a
href="https://github.com/atelierdesmedias/"
rel="noreferrer"
target="_blank"
class="mx-2 text-black hover:text-[#CC4B2F]"
>
<i class="fa-brands fa-github"></i>
</a>
</div>
</div>
<div
class="ios hidden fixed transition-opacity duration-500 opacity-0 bottom-0 left-0 right-0 m-2 rounded-md bg-neutral-500 p-2 text-center text-white"
>
Installez cette webapp sur votre iPhone : appuyez sur
<img src="/safari-share.png?v1" class="inline-block mx-1" width="16" />
puis "Sur l'écran d'accueil"
</div>
</body>
</html>