This commit is contained in:
Michał Gdula 2022-06-11 23:53:44 +01:00
parent e153e5bfb3
commit de7a54195e
9 changed files with 62 additions and 30 deletions

View file

@ -34,7 +34,7 @@ footer .top div {
color: var(--fg-dark); color: var(--fg-dark);
} }
footer .uwu { footer .op {
margin: 0.5em auto; margin: 0.5em auto;
padding: 0; padding: 0;
@ -43,23 +43,23 @@ footer .uwu {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
} }
footer .uwu hr { footer .op hr {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@media (max-width:470px) { @media (max-width:470px) {
footer .uwu { footer .op {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
footer .uwu hr { footer .op hr {
display: none; display: none;
} }
} }
footer .uwu p, footer .op p,
footer .uwu a { footer .op a {
font-family: 'Lexend Deca', sans-serif; font-family: 'Lexend Deca', sans-serif;
margin: 0; margin: 0;

View file

@ -118,6 +118,8 @@
background: #151515dd; background: #151515dd;
border-radius: 0; border-radius: 0;
backdrop-filter: blur(1px);
} }
#team .fullScreenImage span { #team .fullScreenImage span {
margin: 0; margin: 0;
@ -134,6 +136,8 @@
font-weight: bolder; font-weight: bolder;
color: #FFFFFF; color: #FFFFFF;
cursor: pointer; cursor: pointer;
user-select: none;
} }
#team .fullScreenImage img { #team .fullScreenImage img {
margin: 0; margin: 0;
@ -141,6 +145,8 @@
max-width: 90%; max-width: 90%;
max-height: 90%; max-height: 90%;
width: auto;
height: auto;
min-width: none; min-width: none;
min-height: none; min-height: none;
@ -152,5 +158,8 @@
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
border-radius: 0; background-color: #151515;
outline: #FFFFFF88 1px solid;
border: #00000088 1px solid;
border-radius: 5px;
} }

14
fullscreenViewer.js Normal file
View file

@ -0,0 +1,14 @@
document.querySelectorAll(".gallery div img").forEach(image =>{
image.onclick = () =>{
document.querySelector(".fullScreenImage").style.display= "block";
document.querySelector(".fullScreenImage img").src = image.getAttribute("src");
document.querySelector("html").style.overflow= "hidden";
}
});
document.querySelector(".fullScreenImage span").onclick = () =>{
document.querySelector(".fullScreenImage").style.display= "none";
document.querySelector("html").style.overflow= "auto";
}

BIN
images/merror.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

BIN
images/noImage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View file

@ -31,6 +31,9 @@
<!-- Root of all the text sections --> <!-- Root of all the text sections -->
<main> <main>
<img src="images/merror.jpg" alt="" class="manualError">
<!-- Script -->
<script src="script.js"></script>
<header> <header>
<img src="images/wiggleBefore.png" alt="3 colourful wiggly lines"> <img src="images/wiggleBefore.png" alt="3 colourful wiggly lines">
<h1>Welcome to DV8's Game Event!</h1> <h1>Welcome to DV8's Game Event!</h1>
@ -50,17 +53,17 @@
<p>Team:</p> <p>Team:</p>
<p>- Farley Barker <p>- Farley Barker
<span class="gray">3D Environment Art, Game Design, Programming</span></p> <span class="gray">3D&nbsp;Environment&nbsp;Art, Game&nbsp;Design, Programming</span></p>
<p>- Ben Easton <p>- Ben Easton
<span class="gray">3D Art, Story Development</span></p> <span class="gray">3D&nbsp;Art, Story&nbsp;Development</span></p>
<p>- Hannah Burfoot <p>- Hannah Burfoot
<span class="gray">Character Art, UI Design</span></p> <span class="gray">Character&nbsp;Art, UI&nbsp;Design</span></p>
<p>- Sasha Guerrier Gregory <p>- Sasha Guerrier Gregory
<span class="gray">Level Design, Game Design</span></p> <span class="gray">Level&nbsp;Design, Game&nbsp;Design</span></p>
<p>- Toby Pettman <p>- Toby Pettman
<span class="gray">Programming</span></p> <span class="gray">Programming</span></p>
<p>- Russell Charlwood <p>- Russell Charlwood
<span class="gray">3D Environment Art, Level Design, Programming</span></p> <span class="gray">3D&nbsp;Environment&nbsp;Art, Level&nbsp;Design, Programming</span></p>
<p>About: Foragers Haven is a peaceful, cute, stylized adventure walking simulator. Explore a humble little forest, follow the quest line, craft potions and harvest plants, flowers and items around you.<p> <p>About: Foragers Haven is a peaceful, cute, stylized adventure walking simulator. Explore a humble little forest, follow the quest line, craft potions and harvest plants, flowers and items around you.<p>
</div> </div>
@ -183,11 +186,11 @@
<!-- Screen overlay --> <!-- Screen overlay -->
<div class="fullScreenImage"> <div class="fullScreenImage">
<span>&times;</span> <span>&times;</span>
<img src="images/noImage.jpg" alt=""> <img src="images/noImage.png" alt="Error, could not load image">
</div> </div>
<!-- Script --> <!-- Script -->
<script src="script.js"></script> <script src="fullscreenViewer.js"></script>
</section> </section>
<section id="about"> <section id="about">
@ -273,7 +276,7 @@
<p></p> <p></p>
</div> </div>
</div> </div>
<div class="uwu"> <div class="op">
<p>Made by Michal</p> <p>Made by Michal</p>
<hr> <hr>
<a href="https://github.com/Fluffy-Bean/GameExpo">GitHub</a> <a href="https://github.com/Fluffy-Bean/GameExpo">GitHub</a>
@ -291,7 +294,7 @@
<!--.. /0 0 \ . . . . . ..--> <!--.. /0 0 \ . . . . . ..-->
<!--(III% . \________, . .--> <!--(III% . \________, . .-->
<!--.. .\_, .%###%/ \'\,..--> <!--.. .\_, .%###%/ \'\,..-->
<!--. . . .||#####| |'\ \.--> <!--. . . .||#####| |'\ \.-->
<!--.. . . ||. . .|/. .\V.--> <!--.. . . ||. . .|/. .\V.-->
<!--. . . .|| . . || . . .--> <!--. . . .|| . . || . . .-->
<!--.. . . ||. . .||. . ..--> <!--.. . . ||. . .||. . ..-->

View file

@ -1,14 +1,7 @@
document.querySelectorAll(".gallery div img").forEach(image =>{ document.querySelector(".manualError").onclick = () =>{
image.onclick = () =>{ document.querySelector(".manualError").style.top= "5em";
document.querySelector(".fullScreenImage").style.display= "block"; document.querySelector(".manualError").style.width= "160px";
document.querySelector(".fullScreenImage img").src = image.getAttribute("src"); document.querySelector(".manualError").style.height= "90px";
document.querySelector("html").style.overflow= "hidden";
}
});
document.querySelector(".fullScreenImage span").onclick = () =>{
document.querySelector(".fullScreenImage").style.display= "none";
document.querySelector("html").style.overflow= "auto";
} }
console.log("UwU")

View file

@ -133,7 +133,7 @@ h3 {
margin: 0.5em 0; margin: 0.5em 0;
} }
.gray { .gray {
margin: 0; margin: 0 !important;
padding: 0; padding: 0;
color: #696969; color: #696969;
@ -173,3 +173,16 @@ h3 {
padding: 3em 0 0 0; padding: 3em 0 0 0;
} }
} }
/*
No cheating!
*/
.manualError {
width: 40px;
height: 40px;
top: 0.6em;
left: 2em;
position: absolute;
}