Replace promo video with slideshow #30

Merged
al3xknutsen merged 1 commits from video-til-karusell into master 2022-11-05 20:51:12 +01:00
2 changed files with 92 additions and 109 deletions
Showing only changes of commit 1bc41124c0 - Show all commits

View File

@ -1,154 +1,157 @@
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;
} }
header.landing .logo { header.landing .logo {
display: block; display: block;
width: 24vh; width: 24vh;
height: 24vh; height: 24vh;
margin: auto; margin: auto;
} }
main { main {
margin-top: 0; margin-top: 0;
} }
.info { .info {
text-align: center; text-align: center;
width: 100%; width: 100%;
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow-y: hidden; overflow-y: hidden;
} }
.essentials { .essentials {
width: 100%; width: 100%;
margin: 1em 0; margin: 1em 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.essentials li { .essentials li {
display: inline-block; display: inline-block;
} }
.essentials a { .essentials a {
margin: 0 2em; margin: 0 2em;
height: 100%; height: 100%;
} }
.essentials .focus { .essentials .focus {
padding: 0.8em; padding: 0.8em;
font-size: 1.2em; font-size: 1.2em;
} }
img.float-right { img.float-right {
float: right; float: right;
max-width: 12em; max-width: 12em;
max-height: 12em; max-height: 12em;
vertical-align: baseline; vertical-align: baseline;
} }
.calendar-events { .calendar-events {
padding: 0; padding: 0;
margin-bottom: 1.5em; margin-bottom: 1.5em;
list-style: none; list-style: none;
} }
.calendar-events ul li :not(.date):not(.time) { .calendar-events ul li :not(.date):not(.time) {
display: inline-block; display: inline-block;
width: calc(100% - 7em); width: calc(100% - 7em);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
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 {
list-style: none; list-style: none;
padding: 0; padding: 0;
} }
.calendar-events a, #ticker a { .calendar-events a,
text-decoration: none; #ticker a {
font-weight: bold; text-decoration: none;
color: black; font-weight: bold;
color: black;
} }
.calendar-events a:hover, #ticker a:hover { .calendar-events a:hover,
text-decoration: underline; #ticker a:hover {
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,
float: right; .calendar-events ul .date {
margin-right: .5em; float: right;
margin-right: 0.5em;
} }
main.contentsplit { main.contentsplit {
padding-top: 1em; padding-top: 1em;
} }
.contentsplit { .contentsplit {
display: grid; display: grid;
grid-template-columns: 2.5fr 2fr; grid-template-columns: 2.5fr 2fr;
} }
.gridr { .gridr {
border-left: 0; border-left: 0;
} }
@media screen and (max-width: 50rem) { @media screen and (max-width: 50rem) {
.essentials { .essentials {
flex-direction: column; flex-direction: column;
} }
.essentials a { .essentials a {
margin: .2em 0; margin: 0.2em 0;
} }
} }
@media screen and (max-width: 65rem) { @media screen and (max-width: 65rem) {
.contentsplit { .contentsplit {
display: block; display: block;
} }
.gridr { .gridr {
height: auto; height: auto;
padding: 0; padding: 0;
margin-left: 0; margin-left: 0;
margin-bottom: 3em; margin-bottom: 3em;
} }
.gridr br { .gridr br {
margin: 0; margin: 0;
height: 0px; height: 0px;
} }
.gridl { .gridl {
margin-top: 0; margin-top: 0;
padding: 0; padding: 0;
} }
} }

View File

@ -40,30 +40,10 @@ $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; </div>
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 class="info"> <div class="info">
<h2>Velkommen til Programvare&shy;verkstedet</h2> <h2>Velkommen til Programvare&shy;verkstedet</h2>
<p>Programvareverkstedet (PVV) er en studentorganisasjon ved NTNU som vil skape et miljø for datainteresserte personer tilknyttet universitetet.</p> <p>Programvareverkstedet (PVV) er en studentorganisasjon ved NTNU som vil skape et miljø for datainteresserte personer tilknyttet universitetet.</p>