forked from JIITODC/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
team-2018.svelte
51 lines (43 loc) · 1.01 KB
/
team-2018.svelte
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
<svelte:head>
<title>Team - 2018</title>
</svelte:head>
<script>
import {onMount} from 'svelte';
import TeamComponent from '../components/TeamComponent.svelte';
let datas = [];
onMount(async () => {
const res = await fetch('./Data/2018Team.json');
const textData = await res.text();
datas = await JSON.parse(textData);
});
</script>
<div class="main-title">OUR TEAM <br> 2018-2019</div>
<section class="card-list">
{#each datas as data (data.id)}
<TeamComponent imgSrc={data.imgSrc} name={data.name} role={data.role}
gitLink={data.gitlink} />
{/each}
</section>
<style>
.main-title {
font-size: 3rem;
font-weight: bold;
text-align: center;
padding-bottom: 1rem;
border-bottom: 2px solid #ff8c00;
}
.card-list {
display:grid;
grid-template-columns: repeat(2,1fr);
gap:7rem 3rem;
}
@media (max-width:700px) {
.main-title {
font-size:2.5rem;
}
.card-list {
grid-template-columns: 1fr;
gap:2rem 1rem;
}
}
</style>