Skip to content

Commit 3e8bdc5

Browse files
committed
19.0 RC2
[index] - background videos: - compressed and encoded background videos using av1 - added title to videos in data file - chained videos on end - overlay: - better styling - new 'next' button - show 'now playing' on video change - load overlay from js instead of html - better randomize lib [general] - minor tweaks
1 parent adb6360 commit 3e8bdc5

13 files changed

Lines changed: 120 additions & 49 deletions

File tree

-4.34 MB
Binary file not shown.
-4.28 MB
Binary file not shown.
-6.91 MB
Binary file not shown.
-4.39 MB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/data/backgrounds.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
2-
"birthday-nile.mp4",
3-
"ram-unboxed.mp4",
4-
"unseen-ram.mp4",
5-
"electroma-ad.mp4"
2+
{"name": "Daft Punk - \"Happy Birthday\" from Daft Punk to Nile Rodgers", "src": "birthday-nile.mp4"},
3+
{"name": "Daft Punk - Random Access Memories Unboxed", "src": "ram-unboxed.mp4"},
4+
{"name": "Daft Punk - Random Access Memories Ad (Unseen Advert)", "src": "unseen-ram.mp4"},
5+
{"name": "Daft Punk - 10th Anniversary Teaser of Electroma", "src": "electroma-ad.mp4"}
66
]

src/index.njk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,3 @@ js: index
144144
</section>
145145

146146
<video id="background" autoplay loop muted playsinline></video>
147-
<div id="overlay">
148-
<span id="fullscreen-background" class="button light">⛶</span>
149-
<span id="stop-background" class="button light">⨯</span>
150-
</div>

src/static/css/global.sass

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ a, a:visited
4848
text-decoration: none
4949
user-select: none
5050

51-
&.light
52-
background-color: transparent
53-
border-radius: 8px
54-
margin: 2.5px
55-
56-
&:hover, &.active
57-
animation: none
58-
background-color: colors.$secondary
59-
6051
&:hover
6152
animation: animations.$multicolor
6253
cursor: pointer
@@ -84,6 +75,7 @@ code
8475
text-decoration: none
8576
cursor: alias
8677
z-index: 2
78+
padding: 0.125em
8779

8880
::selection
8981
background-color: colors.$white

src/static/css/index.sass

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ video#background
9494
left: 50%
9595
transform: translate(-50%, -50%)
9696
z-index: -3
97-
opacity: 0.1
97+
opacity: 0.125
9898
transition: all 0.5s ease
9999
width: 100%
100100
height: 100%
@@ -104,22 +104,41 @@ video#background
104104
z-index: 3
105105
opacity: 1
106106

107-
#overlay
107+
#overlay-container
108+
display: ruby
108109
position: fixed
109110
bottom: 16px
110111
left: 16px
111112
margin-bottom: 0
112113
z-index: 2
113114

114-
.button
115-
color: white
116-
font-weight: bolder
115+
#overlay-box
116+
border: 2px solid transparent
117+
border-radius: base.$radius
118+
opacity: 0.4
117119

118-
#fullscreen-background
119-
font-size: 0.85em
120+
&:hover, &.active
121+
border-color: colors.$light
122+
background-color: colors.$secondary
123+
opacity: 1
124+
125+
.button
126+
color: white
127+
font-weight: bolder
128+
background-color: transparent
129+
border-radius: 8px
130+
margin: 2.5px
120131

121-
#stop-background
122-
font-size: 1.15em
132+
&:hover, &.active
133+
animation: none
134+
background-color: colors.$dark
135+
136+
#bg-nowplaying
137+
overflow: hidden
138+
white-space: nowrap
139+
color: colors.$light
140+
font-style: italic
141+
margin: 1em
123142

124143
.project
125144
.project-title

src/static/js/index/marquee.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import randomize from './randomize.js';
1+
import {randElement} from './randomize.js';
22

33
fetch('/content/data/marquee.json').then(response => response.json()).then(data => {
4-
let string = randomize(data);
4+
let string = randElement(data);
55
let marquee = document.getElementById('marquee');
66
marquee.innerHTML = string.text;
77
if (string.url && string.url !== '') {

0 commit comments

Comments
 (0)