File tree Expand file tree Collapse file tree 3 files changed +43
-11
lines changed Expand file tree Collapse file tree 3 files changed +43
-11
lines changed Original file line number Diff line number Diff line change @@ -235,12 +235,39 @@ main section.skills .skills-chart text {
235
235
}
236
236
237
237
main header {
238
- padding : 1 em ;
238
+ position : relative ;
239
239
grid-area : header;
240
- text-align : center;
241
- background-color : var (--colors-dark-grey );
242
240
border-bottom-right-radius : 2px ;
243
241
border-bottom-left-radius : 2px ;
242
+ background : var (--colors-dark-grey );
243
+ }
244
+
245
+ main header .head-container {
246
+ padding : 1em ;
247
+ text-align : center;
248
+ z-index : 1 ;
249
+ }
250
+
251
+ # video-bg {
252
+ width : 100% ;
253
+ height : 100% ;
254
+ object-fit : cover;
255
+ position : absolute;
256
+ left : 0 ;
257
+ top : 0 ;
258
+ z-index : 0 ;
259
+ opacity : 0.3 ;
260
+
261
+ animation : animate-video 23s ease-in-out infinite;
262
+ }
263
+
264
+ @keyframes animate-video {
265
+ 0% {opacity : 0 ;}
266
+ 10% {opacity : 0.1 ;}
267
+ 20% {opacity : 0.5 ;}
268
+ 60% {opacity : 0.3 ;}
269
+ 80% {opacity : 0.1 ;}
270
+ 100% {opacity : 0.01 ;}
244
271
}
245
272
246
273
main header h1 {
Original file line number Diff line number Diff line change 122
122
123
123
<main >
124
124
<header >
125
- <img src =" /assets/svg/logo.svg" alt =" JH" width =" 100" >
126
-
127
- <h1 >
128
- <span >James</span >
129
- <span >Harris</span >
130
- </h1 >
131
- <hr class =" thin" >
132
- <h2 >Web Architect UX</h2 >
125
+ <video id =" video-bg" muted autoplay loop >
126
+ <source src =" /assets/video/video-bg.mp4" type =" video/mp4" >
127
+ </video >
128
+ <div class =" head-container" >
129
+ <img src =" /assets/svg/logo.svg" alt =" JH" width =" 100" >
130
+
131
+ <h1 >
132
+ <span >James</span >
133
+ <span >Harris</span >
134
+ </h1 >
135
+ <hr class =" thin" >
136
+ <h2 >Web Architect UX</h2 >
137
+ </div >
133
138
</header >
134
139
135
140
<h3 >MY STORY</h3 >
You can’t perform that action at this time.
0 commit comments