-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
95 lines (95 loc) · 2.75 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Andalucia Developers</title>
<style type="text/css" media="all">
body {
margin: 0;
font-family: sans-serif;
}
header {
padding: 3rem 2rem;
background-color: rgb(6, 87, 6);
color: white;
}
header h1 {
font-weight: 600;
line-height: 1.125;
margin: 0;
}
header h2 {
font-weight: 400;
font-size: 1.25rem;
line-height: 1.25;
margin: 0;
}
</style>
<link rel="stylesheet" href="https://unpkg.com/normalize.css">
<link rel="stylesheet" href="index.css">
<meta name="theme-color" content="rgb(6, 87, 6)">
</head>
<body>
<!--[if IE]>
<p style="margin: 1rem">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<header>
<h1>Andalucía Developers</h1>
<h2>Código con denominación de origen</h2>
</header>
<main>
<p class="description">
Hola! Somos un grupo de desarrolladores andaluces que nos organizamos en un grupo de Telegram. <br />
Puedes entrar al grupo siguiendo <a href="https://t.me/andaluciadev">este enlace</a>.
</p>
<section>
<p>Miembros:</p>
<ul id="vue">
<li v-for="member in people">
<p class="name">
<img :src="member.Foto" v-if="member.Foto" alt="avatar" />
<strong>{{ member.Nombre }}</strong>
<small>{{ member.Provincia }}</small>
</p>
<p class="bio">{{ member.Bio }}</p>
<p class="links">
<a :href="link.link" v-for="link in member.Links">
{{link.name}}
</a>
</p>
</li>
</ul>
</section>
</main>
<script src="https://unpkg.com/vue"></script>
<script>
new Vue({
el: '#vue',
data: { people: [] },
mounted () {
if (typeof window.fetch !== 'function') {
console.info('This browser is not supported')
return
}
window.fetch('data.json')
.then(res => res.json())
.then(data => {
this.people = data['Miembros'].map(d => {
d.Foto = d.Foto && d.Foto.replace('.replace(')', '')
d.Links = d.Web.split(',').map(text => {
const parts = text.split('](').map(part => part.replace(/[\[\)]/, ''))
return {
name: parts[0],
link: parts[1]
}
})
return d
})
})
}
})
</script>
</body>
</html>