-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a25ffc
commit e240386
Showing
6 changed files
with
225 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"title": "Cookie Collective", | ||
"link": "https://cookie.paris" | ||
}, | ||
{ | ||
"title": "YouTube", | ||
"link": "https://www.youtube.com/@cookiecollective" | ||
}, | ||
{ | ||
"title": "Spotify", | ||
"link": "https://open.spotify.com/artist/2EzsVF83hFQU0lITwaMiBj?si=m1KaEQOXSJKqEKMpUIqrlA" | ||
}, | ||
{ | ||
"title": "Bandcamp", | ||
"link": "https://cookiecollectif.bandcamp.com/music" | ||
}, | ||
{ | ||
"title": "LiveCoding.fr", | ||
"link": "https://livecoding.fr" | ||
}, | ||
{ | ||
"title": "Renardo", | ||
"link": "https://renardo.org" | ||
}, | ||
{ | ||
"title": "qsdlfkjqsdfl", | ||
"link": "" | ||
}, | ||
{ | ||
"title": "qsdlfkjqsdfl", | ||
"link": "" | ||
}, | ||
{ | ||
"title": "qsdlfkjqsdfl", | ||
"link": "" | ||
}, | ||
{ | ||
"title": "qsdlfkjqsdfl", | ||
"link": "" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{%include "head.njk" %} | ||
{%include "navigation.njk"%} | ||
|
||
<div class="container"> | ||
<div class="mobile-warning"> | ||
<p lang="en" class="warning">Please turn your device to landscape mode to view the video.</p> | ||
</div> | ||
<video class="view box-shadow borders" controls style="display: none;"> | ||
<source src="https://ccc-static.cookie.paris/ccc.mp4" type="video/mp4" /> | ||
</video> | ||
</div> | ||
|
||
<script> | ||
function checkOrientation() { | ||
const warning = document.querySelector('.mobile-warning'); | ||
const video = document.querySelector('video.view'); | ||
if (window.innerWidth > window.innerHeight) { | ||
warning.style.display = 'none'; | ||
video.style.display = 'block'; | ||
} else { | ||
warning.style.display = 'block'; | ||
video.style.display = 'none'; | ||
} | ||
} | ||
window.addEventListener('resize', checkOrientation); | ||
window.addEventListener('load', checkOrientation); | ||
</script> | ||
|
||
|
||
<style> | ||
.container { | ||
margin-top: 7%; | ||
margin-bottom: 0%; | ||
padding: 0 15px; | ||
} | ||
.box-shadow { | ||
box-shadow: 0px 0px 5px #111; | ||
} | ||
.view { | ||
width: 100%; | ||
height: 80%; | ||
margin-top: 1%; | ||
} | ||
@media (orientation: landscape) and (max-width: 600px) { | ||
.view { | ||
margin-top: 1%; | ||
} | ||
} | ||
@media (orientation: portrait) and (max-width: 600px) { | ||
.view { | ||
margin-top: 5%; | ||
} | ||
} | ||
@media (max-width: 600px) { | ||
.container { | ||
margin-top: 5%; | ||
padding: 0 10px; | ||
} | ||
.view { | ||
width: 100%; | ||
height: auto; | ||
} | ||
} | ||
.warning { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 2em; | ||
color: white; | ||
height: 100vh; | ||
hyphens: auto; | ||
text-align: center; | ||
} | ||
</style> |
Oops, something went wrong.