JSFiddle - React, Tailwind, and code Playground
by linerjerk
HTML
<nav class='navbar'>
<div class='nav'>Navbar</div>
<ul class='nav-items'>
<li class='item'><a href='#'>Active</a></li>
<li class='item'><a href='#'>Home</a></li>
<li class='item'><a href='#'>Blog</a></li>
<li class='item'><a href='#'>About</a></li>
<li class='item'><a href='#'>Login</a></li>
</ul>
</nav>
<div class='double'>
<div class='cards' style="background-color: #2e7ae2;">
<div id='slideshow'>
<div class='slide-text'>texd;sfkjsdlfkjsdlfjdslfjdsfolsjdlkfsdlifjsdljfdsilfj</div>
<div></div>
<div></div>
</div>
</div>
<img class='img-stol' src="https://i.ibb.co/j6n9YGy/stol.jpg">
</div>
CSS
/* navbar */
html {
height: 100%;
}
body {
height: 100%;
margin:0%;
}
.navbar {
display: flex;
width: 100%;
height: 15%;
background: #fff;
align-items: center;
max-width: 1450px;
margin: 0 auto;
}
.nav-items {
display: flex;
max-width: 1450px;
margin: 0 auto;
width: 100%;
right: 50px;
justify-content: flex-end;
}
.nav, .item {
display: inline;
max-width: 1450px;
z-index: 1;
}
.nav {
font-size: 35px;
z-index: 5;
}
.item {
right: 10px;
font-size: 25px;
padding: 20px;
}
.item a {
text-decoration: none;
position: relative;
}
.item a:after {
content: '';
display: none;
width: 100%;
height: 3px;
background-color: #2e7ae2;
position: absolute;
top: 100%;
left: 0;
z-index: 1;
}
.item a:visited, .item a:link {
color:black;
}
.item a:hover {
color: blue;
}
.item a:hover:after {
display: block;
}
/* double */
.double {
display: flex;
width: 100%;
height: 100%;
}
.double>div {
width:50%;
}
.img-stol {
width:50%;
}
/* cards */
#slideshow{
display:flex;
max-height:100%;
}
#slideshow>.slide-text {
max-height:100%;
max-width:33%;
text-align:center;
color: #fff;
font-size: 30px;
background: pink;
margin:auto;
word-break: break-all;
}