Replace promo video with slideshow

This commit is contained in:
Aleksander Knutsen 2022-11-05 19:06:22 +01:00
parent 72fb9e9915
commit 1bc41124c0
2 changed files with 92 additions and 109 deletions

View File

@ -1,9 +1,9 @@
header.landing { header.landing {
display:block; display: block;
margin: 0; margin: 0;
margin-top: 3em; margin-top: 3em;
padding: 3vh 10vw; padding: 3vh 15vw;
width: 80vw; width: 70vw;
background-color: #002244; background-color: #002244;
color: #fff; color: #fff;
} }
@ -73,13 +73,13 @@ img.float-right {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.calendar-events ul .date { .calendar-events ul .date {
color: rgba(0,0,0,.5); color: rgba(0, 0, 0, 0.5);
font-size: 0.8em; font-size: 0.8em;
margin-top: .2em; margin-top: 0.2em;
} }
.calendar-events > li > p { .calendar-events > li > p {
border-bottom: .1em dotted rgba(0,0,0,.2); border-bottom: 0.1em dotted rgba(0, 0, 0, 0.2);
} }
.calendar-events ul { .calendar-events ul {
@ -87,24 +87,27 @@ img.float-right {
padding: 0; padding: 0;
} }
.calendar-events a, #ticker a { .calendar-events a,
#ticker a {
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
color: black; color: black;
} }
.calendar-events a:hover, #ticker a:hover { .calendar-events a:hover,
#ticker a:hover {
text-decoration: underline; text-decoration: underline;
} }
.calendar-events ul .time { .calendar-events ul .time {
color: rgba(0,0,0,.5); color: rgba(0, 0, 0, 0.5);
float: right; float: right;
} }
.calendar-events ul .icon, .calendar-events ul .date { .calendar-events ul .icon,
.calendar-events ul .date {
float: right; float: right;
margin-right: .5em; margin-right: 0.5em;
} }
main.contentsplit { main.contentsplit {
@ -126,7 +129,7 @@ main.contentsplit {
} }
.essentials a { .essentials a {
margin: .2em 0; margin: 0.2em 0;
} }
} }

View File

@ -40,29 +40,9 @@ $doorTime = date("H:i", $doorEntry->time);
</nav> </nav>
<header class="landing"> <header class="landing">
<!-- HACK INCOMING! --> <div id="imageSlideshow">
<style> <?php include("galleri/slideshow.php"); ?>
.iframe-container { <script src="js/slideshow.js"></script>
position: relative;
overflow: hidden;
max-width: 100%;
max-height: 100%;
aspect-ratio: 16/9;
margin: 0 auto;
}
.responsive-iframe {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
aspect-ratio: 16/9;
}
</style>
<div class="iframe-container" style="max-width: 100em;">
<iframe class="responsive-iframe" src="https://www.youtube.com/embed/Uy6HAvMdeuA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen ></iframe>
</div> </div>
<div class="info"> <div class="info">
<h2>Velkommen til Programvare&shy;verkstedet</h2> <h2>Velkommen til Programvare&shy;verkstedet</h2>