<header class="header">
<p class="logo">Evento</p>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item">
<a href="#" class="nav-link">Concerts</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Sports</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Conferences</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<h1 class="heading">Find and book events anywhere</h1>
<p class="text">Search through hundreds of events to find your next one. Get your tickets safely through Evento.</p>
<form class="form">
<input type="text" class="input" placeholder='Find events by cities (eg. India)'>
<button class="btn">Search</button>
</form>
</main>
<footer class="footer">
<p class="copyright">© 2025. Copyright by evento</p>
<p class="stats">24,452 events. 322 cities.</p>
</footer>
/* PRESETS */
* {
marign: 0;
padding: 0;
box-sizing: border-box;
}
ul {
list-style: none;
}
li {
text-decoration: none;
}
a {
texte-decoration: none;
color: inherit;
}
/* KEYFRAMES */
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(15px);
}
100% {
opacity: 1;
transform: translate(0);
}
}
body {
font-family: 'Lato', sans-serif;
background-image: url("https://images.unsplash.com/photo-1583795484071-3c453e3a7c71?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=100");
background-position-y: -120px;
background-size: cover;
background-repeat: no-repeat;
background-color: rgba(0, 0, 0, 0.5);
background-blend-mode: darken;
height: 100vh;
overflow-y: hidden;
margin: 0;
display: flex;
flex-direction: column;
}
/* HEADER */
.header {
display: flex;
align-items: center;
justify-content: space-between;
width: 900px;
margin: 0 auto;
animation: fade-in 0.4s;
}
.logo {
color: rgba(225, 225, 225, 1);
font-size: 18px;
font-weight: 700;
}
.nav {
padding: 20px 0;
}
.nav-list {
display: flex;
column-gap: 10px;
}
.nav-item {
margin-left: 25px;
}
.nav-link {
text-decoration: none;
color: rgba(225, 225, 225, 0.7);
font-size: 14px;
font-weight: 500;
transition: all 0.3s;
}
.nav-link:hover {
color: rgba(225, 225, 225, 1);
}
/* MAIN */
.main {
color: #fff;
text-align: center;
margin-top: 0px;
animation: fade-in 0.4s 0.1s backwards;
}
.heading {
font-size: 65px;
font-weight : 700;
max-width: 800px;
margin-left: auto;
margin-right: auto;
margin-bottom: 25px;
line-height: 0.9;
}
.text {
max-width: 630px;
font-size: 25px;
line-height: 1.4;
margin-left: auto;
margin-right: auto;
opacity: 0.7;
}
.form {
margin-top: 40px;
}
.input {
width: 511px;
height: 64px;
outline: none;
border: none;
border-radius: 3px;
opacity: 0.8;
font: inherit;
padding: 0;
padding-left: 10px;
font-size: 17px;
transition: all 0.3s;
}
.input:focus {
opacity: 1;
}
.input::placeholder {
color: #000;
}
.btn {
height: 64px;
width: 130px;
color: #fff;
border: none;
border-radius: 3px;
background-color: #000;
font: inherit;
margin-left: 5px;
text-transform: uppercase;
letter-spacing: 1;
padding: 0;
font-size: 14px;
font-weight: 500;
transition: all 0.3s;
}
.btn:hover {
cursor: pointer;
background-color: #353535;
}
/* FOOTER */
.footer {
display: flex;
align-items: center;
width: 900px;
margin-left: auto;
margin-right: auto;
color: #fff;
opacity: 0.8;
justify-content: space-between;
font-size: 12px;
margin-top: auto;
padding-top: 10px;
padding-botton: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.3);
animation: fade-in 0.4s 0.2s backwards;
}
/* MEDIA QUERIES */
@media (max-width : 985px) {
body {
background-size: auto;
background-position: center;
background-color: rgba(0, 0, 0, 0.5);
background-blend-mode: darken;
overflow-x: hidden;
}
.header {
width: 600px;
font-size: 10px;
}
.heading {
font-size: 55px;
width: 450px;
}
.text {
font-size: 15px;
width: 380px;
}
.input {
width:450px;
height: 54px;
}
.btn {
width: 100px;
height: 54px;
}
.footer {
margin-top: auto;
width: 600px;
}
}
@media (max-width: 650px) {
.header {
flex-direction: column;
}
.nav {
padding: 0;
}
.heading {
font-size: 40px;
width: 450px;
}
.input {
display: block;
margin: 0 auto;
margin-bottom: 10px;
}
.btn {
display: block;
width: 450px;
margin: 0 auto;
}
.footer {
width: 500px;
}
}
@media (max-width: 500px) {
.header {
width: 350px;
margin: 0 auto;
}
.footer {
flex-direction: column;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.