improve top styling

This commit is contained in:
Ell 2023-05-23 12:36:19 +02:00
parent 8666013866
commit 9f76315d1a
2 changed files with 181 additions and 177 deletions

View file

@ -4,15 +4,14 @@
<h4>A fun simulation game where you mess with people's lives</h4> <h4>A fun simulation game where you mess with people's lives</h4>
<div class="container top-container"> <div class="container top-container">
<h4>Play the demo or buy the game</h4>
<div class="row"> <div class="row">
<div class="col site"> <div class="col site">
<h3>Play the free demo</h3>
<a href="https://ellpeck.itch.io/tiny-life"> <a href="https://ellpeck.itch.io/tiny-life">
<img src="media/itch.png" alt="itch.io" width="200px" height="auto"></image> <img src="media/itch.png" alt="itch.io" width="200px" height="auto"></image>
</a> </a>
</div> </div>
<div class="col site"> <div class="col site">
<h3>Get the game</h3>
<a href="https://store.steampowered.com/app/1651490/Tiny_Life/"> <a href="https://store.steampowered.com/app/1651490/Tiny_Life/">
<img src="media/steam.png" alt="Steam" width="200px" height="auto"></image> <img src="media/steam.png" alt="Steam" width="200px" height="auto"></image>
</a> </a>

View file

@ -1,175 +1,180 @@
html { html {
scroll-padding-top: 70px; scroll-padding-top: 70px;
} }
body { body {
position: relative; position: relative;
font-family: Lato, sans-serif; font-family: Lato, sans-serif;
} }
.navbar-container { .navbar-container {
max-width: 950px; max-width: 950px;
} }
.top { .top {
background-image: url("media/large_background.png"); background-image: url("media/large_background.png");
background-size: cover; background-size: cover;
color: white; color: white;
} }
.top a:link, .top a:link,
.top a:visited { .top a:visited {
color: lightsteelblue; color: lightsteelblue;
} }
.top-content { .top-content {
text-align: center; text-align: center;
padding-top: 70px; padding-top: 70px;
} }
.section { .section {
width: 95%; width: 95%;
max-width: 950px; max-width: 950px;
margin-top: 50px; margin-top: 50px;
margin-bottom: 50px; margin-bottom: 50px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.site { .site {
padding-bottom: 20px; padding-top: 20px;
} padding-bottom: 30px;
}
.top-container {
background-color: rgba(0, 0, 0, 0.4); .top-container {
border-radius: 5px; background-color: rgba(0, 0, 0, 0.4);
margin-bottom: 30px; border-radius: 5px;
margin-top: 120px; margin-bottom: 30px;
padding: 20px; margin-top: 120px;
} padding: 20px;
}
.link {
display: inline-block; .link {
width: 150px; display: inline-block;
} width: 150px;
}
.feature {
margin-top: 40px; .feature {
margin-bottom: 40px; margin-top: 40px;
} margin-bottom: 40px;
}
.feature-banner {
position: relative; .feature-banner {
} position: relative;
}
.feature ul {
margin-top: 1rem; .feature ul {
} margin-top: 1rem;
}
.feature-title {
margin: 10px; .feature-title {
padding: 10px; margin: 10px;
color: white; padding: 10px;
background: rgb(0, 0, 0, 0.7); color: white;
position: absolute; background: rgb(0, 0, 0, 0.7);
text-align: center; position: absolute;
transform: translate(-50%, 0); text-align: center;
left: 50%; transform: translate(-50%, 0);
top: 0; left: 50%;
white-space: nowrap; top: 0;
} white-space: nowrap;
}
.feature-title h2 {
margin-bottom: 0; .feature-title h2 {
} margin-bottom: 0;
}
.footer {
text-align: center; .footer {
padding: 15px; text-align: center;
} padding: 15px;
}
.devlog {
margin-bottom: 20px; .devlog {
min-width: 250px; margin-bottom: 20px;
width: 45%; min-width: 250px;
display: inline-block; width: 45%;
} display: inline-block;
}
.devlog-date {
margin-bottom: 10px; .devlog-date {
} margin-bottom: 10px;
}
.devlog-title {
margin-bottom: 0; .devlog-title {
} margin-bottom: 0;
}
.trailer {
position: relative; .trailer {
width: 100%; position: relative;
height: 0; width: 100%;
padding-bottom: 56.25%; height: 0;
} padding-bottom: 56.25%;
}
.trailer iframe {
position: absolute; .trailer iframe {
top: 0; position: absolute;
left: 0; top: 0;
width: 100%; left: 0;
height: 100%; width: 100%;
} height: 100%;
}
.roadmap {
width: 75%; .roadmap {
min-width: 250px; width: 75%;
margin-left: auto; min-width: 250px;
margin-right: auto; margin-left: auto;
} margin-right: auto;
}
.roadmap-entry {
margin: 20px; .roadmap-entry {
margin-top: 40px; margin: 20px;
margin-bottom: 40px; margin-top: 40px;
} margin-bottom: 40px;
}
.roadmap-entry-left {
text-align: left; .roadmap-entry-left {
} text-align: left;
}
.roadmap-entry-right {
text-align: right; .roadmap-entry-right {
} text-align: right;
}
.roadmap-entry-important {
text-align: center; .roadmap-entry-important {
margin-top: 60px; text-align: center;
margin-bottom: 60px; margin-top: 60px;
} margin-bottom: 60px;
}
.mailing-list {
width: 80%; .mailing-list {
margin-left: auto; width: 80%;
margin-right: auto; margin-left: auto;
margin-top: 40px; margin-right: auto;
padding: 20px; margin-top: 40px;
border-radius: 5px; padding: 20px;
} border-radius: 5px;
}
@media (max-width: 576px) {
@media (max-width: 576px) {
.top-content {
max-width: 90%; .top-content {
} max-width: 90%;
}
.top-container img {
max-width: 150px; .top-container img {
} max-width: 150px;
}
.top-container h3 {
font-size: 1.5rem; .top-container h3 {
} font-size: 1.5rem;
}
.top-content {
padding-top: 40px; .top-content {
} padding-top: 40px;
}
}
.site {
padding-top: 10px;
padding-bottom: 10px;
}
}