-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (130 loc) · 4.01 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
<!DOCTYPE html>
<html lang="en">
<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">
<meta name="description" content="How I challenged myself to see the same object differently every day in quarantine">
<link rel="shortcut icon" type="image/jpg" href="./favicon.ico"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css" />
<title>Skytower Views during Quarantine</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
new Vue({
el: '#app',
data: {
days: [
{
id: "zero",
food: "./images/food-1.jpg",
image:"./images/zero.jpg",
show: true
},
{
id: "one",
food: "./images/food-3.jpg",
image:"./images/one.jpg",
show: true
},
{
id: "two",
food: "./images/food-4.jpg",
image:"./images/two.jpg",
show: true
},
{
id: "three",
food: "./images/food-5.jpg",
image:"./images/three.jpg",
show: true
},
{
id: "four",
food: "./images/food-6.jpg",
image:"./images/four.jpg",
show: true
},
{
id: "five",
food: "./images/food-7.jpg",
image:"./images/five.jpg",
show: true
},
{
id: "six",
food: "./images/food-8.jpg",
image:"./images/six.jpg",
show: true
},
{
id: "seven",
food: "./images/food-10.jpg",
image:"./images/seven.jpg",
show: true
},
{
id: "eight",
food: "./images/food-11.jpg",
image:"./images/eight.jpg",
show: true
},
{
id: "nine",
food: "./images/food-12.jpg",
image:"./images/nine.jpg",
show: true
},
{
id: "ten",
food: "./images/food-13.jpg",
image:"./images/ten.jpg",
show: true
},
{
id: "eleven",
food: "./images/food-14.jpg",
image:"./images/eleven.jpg",
show: true
},
{
id: "twelf",
food: "./images/food-15.jpg",
image:"./images/twelf.jpg",
show: true
},
{
id: "thirteen",
food: "./images/food-16.jpg",
image:"./images/thirteen.jpg",
show: true
}
]
}
})
})
</script>
</head>
<body>
<div id="app">
<h1>My Quarantine View</h1>
<p class="intro">This is what happens when you leave a wanna be photographer in a room with nothing to look at but the Skytower :)</p>
<div class="container">
<div v-for="day in days" :key="day.id" :class="day.id + ' flip-card'">
<div class="flip-card-inner">
<div class="flip-card-front">
<img v-if="day.show" :src="day.image" alt="Skytower" class="flip-card-image" />
<h2 v-else>Day {{ day.id }}</h2>
</div>
<div class="flip-card-back" :style="[day.show ? {'backgroundColor': '#486DB1'} : {'backgroundColor': '#bbb'}]">
<h2>Day {{ day.id }}</h2>
<img v-if="day.show" :src="day.food" alt="food of the day" class="flip-card-food" loading=lazy />
</div>
</div>
</div>
</div>
</div>
</body>
</html>