-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
182 lines (159 loc) · 5.03 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
<!--
* @Description: DearJobs
* @Author: Pony
* @Date: 2021-10-07 02:06:11
* @LastEditors: Pony
* @LastEditTime: 2021-10-27 23:33:57
* @FilePath: /StevenJobs/index.html
-->
<!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">
<link rel="shortcut icon" href="/StevenJobs/assets/apple.png" type="image/x-icon">
<title>DearJobs</title>
<style>
* {
padding: 0;
margin: 0;
list-style: none;
box-sizing: border-box;
}
#app {
width: 990px;
height: 100vh;
margin: 0 auto;
display: flex;
flex-direction: column;
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
}
#app video {
width: 100%;
height: auto;
}
.cover {
width: 100%;
line-height: 0;
position: relative;
}
.start {
/* width: 20vw; */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 26;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
}
.stop {
display: none;
}
.mainTitle {
height: 60px;
aspect-ratio: auto 167 / 60;
width: 167px;
margin-bottom: 16px;
}
.subTitle {
height: 37px;
aspect-ratio: auto 372 / 37;
width: 372px;
}
#messagesHeader {
flex: 1 1;
width: 990px;
margin: 0 auto;
padding: 100px 0px 60px 0px;
text-align: center;
border-bottom: 1px solid #CFCFCF;
}
h1 {
margin-bottom: 8px;
}
a {
color: #08c;
text-decoration: none;
}
#messagesHeader p {
font-size: 14px;
line-height: 1.5;
font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
}
.apple {
width: 90px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
/* z-index: 28; */
}
.start:hover .apple {
opacity: 0.7;
transition: all ease-in 500ms;
}
.play .mainTitle,
.play .subTitle {
opacity: 0;
transition: all ease-in-out 600ms;
}
@media (max-width: 450px) {
#app {
width: 100%;
}
#messagesHeader {
width: 100%;
padding: 100px 8px 8px;
}
h1 img {
width: 80vw;
height: auto;
}
}
</style>
</head>
<body>
<div id="app">
<div class="cover">
<video src="https://aodour.oss-ap-southeast-1.aliyuncs.com/Frontend/chunk/js/OurDearSteve_2021.mp4"
id="movie"></video>
<div class="start">
<img src="/StevenJobs/assets/title.png" alt="Steve Jobs 1955-2011" class="mainTitle">
<img src="/StevenJobs/assets/footer-text-removebg-preview.png"
alt="Steve touched all of our lives in so many ways. Thank you for sharing your thoughts and remeberances."
class="subTitle">
<img src="/StevenJobs/assets/apple.png" alt="Apple" class="apple">
</div>
</div>
<div id="messagesHeader">
<h1><img src="/StevenJobs/assets/remembering-steve-removebg-preview.png" height="48" width="433"
alt="Remembering Steve"> </h1>
<p id="emailCallout" class="footnote">Over a million people from all over the world have shared their
memories, thoughts, and feelings about Steve. One thing they all have in common — from personal
friends to colleagues to owners of Apple products — is how they’ve been touched by his passion and
creativity. You can view some of these messages below.<br> And share your own at <a
href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<script>
let playBtn = document.querySelector('.start');
let movie = document.querySelector('#movie');
playBtn.onclick = () => {
if (movie.paused) {
movie.play();
// let classVal = playBtn.getAttribute("class");
// classVal = classVal.concat(" play");
playBtn.setAttribute("class", 'start play');
} else {
movie.pause();
playBtn.setAttribute("class", 'start');
}
}
</script>
</body>
</html>