Header
Header
<nav>
<div class="logo">
<img src="https://images.unsplash.com/photo-1533794318766-897f4d50cb39?
crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTg0MD
UyMDk&ixlib=rb-1.2.1&q=80">
</div>
<div class="items">
<a href="#">Service</a>
<a href="#">About</a>
<a href="#">Contact</a>
<a href="#">Blog</a>
</div>
<div class="other">
<button>Log in</button>
</div>
</nav>
</header>
<section>
<div class="container">
<div class="row">
<div class="info">
<p class="short-info">#Get Your 14 Days Free Trial</p>
<p class="hero-sub-heading">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Id tincidunt
eifend odio viverra diam aliquet donec again.</p>
<div class="users">
<img src="https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?
crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTg0MT
M4Nzk&ixlib=rb-1.2.1&q=80" class="img-fluid user">
<img src="https://images.unsplash.com/photo-1524250502761-1ac6f2e30d43?
crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTg0MT
M4Nzk&ixlib=rb-1.2.1&q=80" class="img-fluid user">
<img src="https://images.unsplash.com/photo-1522556189639-b150ed9c4330?
crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTg0MT
M4Nzk&ixlib=rb-1.2.1&q=80" class="img-fluid user">
<img src="https://images.unsplash.com/photo-1534614971-6be99a7a3ffd?
crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTg0MT
M4Nzk&ixlib=rb-1.2.1&q=80" class="img-fluid user">
<p>4M+ users</p>
</div>
<button class="learn-more">
Learn More</button>
</div>
<div class="hero-image">
<img src="https://images.unsplash.com/photo-1519326882834-04c334752f58?
crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTg0MD
UxMzU&ixlib=rb-1.2.1&q=80" class="img-fluid">
</div>
</div>
</div>
</section>
<!-- Hero Section Ends -->
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
body {
color: white;
background-color: black;
.container {
max-width: 90rem;
.img-fluid {
max-width: 100%;
.logo img {
width: 70px;
height: 70px;
border-radius: 41px;
nav {
display: flex;
justify-content: space-between;
align-items: center;
.items {
display: flex;
align-items: center;
gap: 30px;
.items a:link {
text-decoration: none;
color: white;
font-size: 1.5rem;
font-weight: bold;
.items a:hover {
color: red;
}
.active {
button {
font-size: 2rem;
font-weight: bold;
color: white;
border-radius: 10px;
cursor: pointer;
border: none;
button:hover {
background: white;
color: red;
border: none;
}
.row {
display: grid;
justify-content: center;
align-items: center;
.info {
display: flex;
flex-direction: column;
.short-info {
color: yellow;
font-size: 1rem;
margin-bottom: 0.9rem;
.hero-heading {
font-size: 3rem;
margin-bottom: 0.3rem;
.hero-sub-heading {
font-size: 0.9rem;
opacity: 0.7;
}
.users {
display: flex;
align-items: center;
.user {
width: 20px;
height: 20px;
border-radius: 50%;
.learn-more {
align-self: start;
margin-top: 3rem;
/* media queries */
.items {
display: none;
.row {
grid-template-columns: 1fr;
.learn-more {
align-self: start;