Halikulade Site
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Home Delivery</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<div class="navbar">
<img src="img/logo.png" alt="" id="navbar_img">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Menu</a>
<a href="#">Products</a>
<a href="#">Contact</a>
</div>
<div class="content">
<h1>Express Home Delivery</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Laboriosam quas repellendus aliquam quam aperiam quas?</p>
<button>Order Now</button>
</div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
overflow-x: hidden;
}
.container {
position: relative;
height: 100vh;
background: url('../img/home.jpg') no-repeat center center/cover;
}
.navbar {
margin: auto;
top: 0;
width: 90%;
border-radius: 100px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 50px;
background: rgba(255, 255, 255, 0.8);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
animation: fadeIn 2s ease
}
.navbar a {
text-decoration: none;
color: #333;
margin: 0 15px;
font-weight: bold;
}
.navbar a:hover {
color: #e63946;
}
.content {
position: absolute;
top: 50%;
left: 30%;
transform: translate(-50%, -50%);
text-align: left;
color: #fff;
animation: slideInFromBottom 1.5s ease;
}
.content h1 {
font-size: 3rem;
text-transform: uppercase;
letter-spacing: 2px;
}
.content p {
margin: 20px 0;
font-size: 1.2rem;
max-width: 600px;
line-height: 1.6;
}
.content button {
padding: 15px 30px;
font-size: 1rem;
border: none;
border-radius: 25px;
background: #000;
color: #FFF;
cursor: pointer;
animation: pulse 1.5s infinite;
}
.content button:hover {
background: #d62828;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideInFromBottom {
from {
transform: translate(-50%, 50%);
opacity: 0;
}
to {
transform: translate(-50%, -50%);
opacity: 1;
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
#navbar_img{
width: 100px;
}
Yorumlar
Yorum Gönder