-
Notifications
You must be signed in to change notification settings - Fork 35
/
team-2019.svelte
92 lines (80 loc) · 1.62 KB
/
team-2019.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
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
<style>
.main-title {
font-size: 3rem;
font-weight: bold;
text-align: center;
padding-bottom: 1rem;
}
.sub-title {
font-size: 2rem;
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;
}
.other-team {
margin-top: 6rem;
}
.year-container {
display: flex;
justify-content: space-around;
}
.year-container a {
text-decoration: none;
font-size: 2rem;
}
@media (max-width: 700px) {
.main-title {
font-size: 2.5rem;
}
.card-list {
grid-template-columns: 1fr;
gap: 2rem 1rem;
}
.year-container {
flex-direction: column;
align-items: center;
}
.year-container a {
font-size: 1.5rem;
margin-bottom: 1rem;
}
}
</style>
<script context="module">
export async function preload() {
const res = await this.fetch('Data/2019Team.json');
const datas = await res.json();
return { datas };
}
</script>
<script>
import TeamComponent from '../components/TeamComponent.svelte';
export let datas;
</script>
<svelte:head>
<title>Team - 2019</title>
</svelte:head>
<div class="main-title">OUR TEAM</div>
<div class="sub-title">2019-2020</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>
<div class="other-team">
<div class="year-container">
<a sapper:prefetch href="/team-2018"> ← 2018-2019 </a>
<a sapper:prefetch href="/team"> 2020-2021 → </a>
</div>
</div>