-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia.html
216 lines (183 loc) · 6.26 KB
/
media.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet">
<title> Digital Scrapbook</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Courier Prime', monospace;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f2f2f2;
color: #231f20;
line-height: 1.6;
}
h1 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 2rem;
letter-spacing: 1px;
text-transform: uppercase;
}
.introduction {
background-color: #ffd6e0;
padding: 2rem;
text-align: center;
margin: 2rem auto;
border: 2px solid #000000;
box-shadow: 4px 4px 0 #000000;
}
.music-player {
background-color: #ffffff;
padding: 2rem;
margin: 2rem auto;
border-radius: 4px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
max-width: 800px;
}
.audio-container {
background-color: #c1fba4;
padding: 1rem;
border-radius: 25px;
margin: 1rem 0;
}
.song-title {
font-weight: 600;
font-style: italic;
text-align: center;
}
.grid-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
.grid-item {
background: white;
aspect-ratio: 4/3;
overflow: hidden;
border-radius: 4px;
}
.grid-item img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
}
.video-section {
margin: 2rem auto;
width: 100%;
max-width: 800px;
}
video {
width: 100%;
height: auto;
}
.caption {
text-align: center;
margin-top: 1rem;
font-style: italic;
font-weight: 600;
}
audio {
width: 100%;
}
audio::-webkit-media-controls-panel {
background-color: #ffffff;
}
audio::-webkit-media-controls-play-button {
background-color: #ffd6e0;
border-radius: 50%;
}
audio::-webkit-media-controls-play-button:hover {
background-color: #ffbfcf;
}
h2 {
text-transform: uppercase;
display: flex;
align-items: center;
gap: 0.5rem;
}
@media (max-width: 768px) {
.grid-container {
grid-template-columns: 1fr;
}
h1 {
font-size: 2rem;
}
.introduction {
padding: 1.5rem;
}
}
</style>
</head>
<body>
<h1>My Digital Scrapbook <span role="img" aria-label="pink heart">💗</span></h1>
<div class="introduction">
<p>Welcome to my digital scrapbook! Explore a collection of engaging and interesting multimedia—photos, audio,
and videos that would give a little insight about me</p>
</div>
<div class="music-player">
<h2>Listen to Music <span role="img" aria-label="Music note">🎵</span></h2>
<div class="audio-container">
<audio controls>
<source src="./assets/audio/Tems - Free Mind.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
<p class="song-title">Now playing: Free Mind - Tems</p>
</div>
<div class="grid-container">
<div class="grid-item">
<picture>
<source srcset="./assets/images/coding.JPG" media="(min-width: 1024px)">
<source srcset="./assets/images/coding.JPG" media="(min-width: 768px)">
<source srcset="./assets/images/coding.JPG" media="(max-width: 767px)">
<img src="./assets/images/coding.JPG" alt="Woman coding">
</picture>
</div>
<div class="grid-item">
<picture>
<source srcset="./assets/images/cooking.JPG" media="(min-width: 1024px)">
<source srcset="./assets/images/cooking.JPG" media="(min-width: 768px)">
<source srcset="./assets/images/cooking.JPG" media="(max-width: 767px)">
<img src="./assets/images/cooking.JPG" alt="Woman enjoying cooking">
</picture>
</div>
<div class="grid-item">
<picture>
<source srcset="./assets/images/music.JPG" media="(min-width: 1024px)">
<source srcset="./assets/images/music.JPG" media="(min-width: 768px)">
<source srcset="./assets/images/music.JPG" media="(max-width: 767px)">
<img src="./assets/images/music.JPG" alt="Woman listening to music">
</picture>
</div>
<div class="grid-item">
<picture>
<source srcset="./assets/images/reading.JPG" media="(min-width: 1024px)">
<source srcset="./assets/images/reading.JPG" media="(min-width: 768px)">
<source srcset="./assets/images/reading.JPG" media="(max-width: 767px)">
<img src="./assets/images/reading.JPG" alt="Woman reading in a chair">
</picture>
</div>
</div>
<p class="caption">My favorite pastimes</p>
<div class="video-section">
<video controls autoplay muted loop>
<source src="./assets/video/sunflowers.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
<p class="caption">I love flowers - especially sunflowers</p>
</div>
</body>
</html>