Fix homepage on mobile

This commit is contained in:
2020-07-15 11:40:39 +01:00
parent 2073d1094f
commit 64bb7ff2d5
3 changed files with 11 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
<h3>{{ .Site.Title }}</h3>
</header>
<main aria-label="Content">
<div style="display: flex; justify-content: center; background: black; margin-left: -5vw; margin-right: -5vw; height: 100%;">
<div style="display: flex; justify-content: center; background: black; margin-left: -5vw; margin-right: -5vw; height: 100%;" id="homepage-container">
<div class="bigimage"><img class="background" src="img/christian-wiediger-WkfDrhxDMC8-unsplash.jpg"><a class="button" href="development"><span class="fas fa-file-code"></span> Development</a></div>
<div class="bigimage"><img class="background" src="img/1*0V2rDSk8SOr6mpfFf28EJA.jpeg"><a class="button" href="writing"><span class="fas fa-pen-fancy"></span> Writing</a></div>
<div class="bigimage"><img class="background" src="img/diwaliball.jpg"><a class="button" href="technical"><span class="fas fa-lightbulb"></span> Technical</a></div>

View File

@@ -206,4 +206,14 @@ nav a:hover {
padding-left: 2em;
border-left: 2px solid black;
}
#homepage-container {
flex-wrap: wrap;
}
.bigimage {
max-height: 20vh;
transform: skew(0deg);
}
a.button {
transform: skew(0deg);
}
}

View File

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB