JSFiddle - React, Tailwind, and code Playground
by blineberry
HTML
<div id="c-app">
<div id="c-home">
<div id="logo">
<img src="https://placehold.it/1080x986" />
</div>
<nav id="nav">
<div id="people">
<div class="img" style="background-image: url(https://placehold.it/201x187)"></div>
<label>People</label>
</div>
<div id="places">
<div class="img" style="background-image: url(https://placehold.it/114x204)"></div>
<label>Places</label>
</div>
<div id="schedule">
<div class="img" style="background-image: url(https://placehold.it/181x205)"></div>
<label>Schedule</label>
</div>
</nav>
</div>
</div>
SCSS
body {
margin: 0;
}
body * {
box-sizing: border-box;
border: 1px dotted black;
}
#c-app {
width: 100%;
height: 100vh;
}
#c-home {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
#logo {
height: 78%;
overflow: hidden;
align-items: center;
justify-content: center;
display: flex;
img {
max-width: 100%;
max-height: 100%;
}
}
#nav {
display: flex;
height: 22%;
min-height: 10em;
& > div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1em;
width: 33%;
label {
padding: 3em 0 0;
}
.img {
flex-grow: 1;
width: 100%;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
}
}