Professional Documents
Culture Documents
Sexs
Sexs
DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ana Sayfa</title>
<link rel="stylesheet" href="styles.css">
<style>
/* Your CSS styles here */
</style>
</head>
<body>
<script>
// Your JavaScript functions here
function toggleMenu() {
var menu = document.getElementById("menu");
menu.classList.toggle("open");
}
</body>
</html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ana Sayfa</title>
<link rel="stylesheet" href="styles.css">
<style>
/* Arka plan stilini ayarla */
body {
background-image: url('https://images.pexels.com/photos/432786/pexels-
photo-432786.jpeg?auto=compress&'); /* Kullanmak istediğiniz deniz görüntüsünün
dosya yolunu buraya ekleyin */
background-size: cover; /* Görüntünün ekran boyutuna uyum sağlamasını
sağlar */
background-position: center; /* Görüntünün sayfa üzerinde
merkezlenmesini sağlar */
background-repeat: no-repeat; /* Görüntünün tekrarlanmasını engeller */
font-family: Arial, sans-serif; /* Genel font ayarları */
margin: 0; /* Sayfa kenar boşluklarını sıfırlar */
padding: 0; /* Sayfa içi boşlukları sıfırlar */
}
<body>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ana Sayfa</title>
<link rel="stylesheet" href="styles.css">
<style>
/* Genel stiller */
.menu-btn {
position: fixed;
top: 20px; /* Site adından 40px aşağıda */
right: 20px;
z-index: 1000;
cursor: pointer;
}
.menu-btn .bar {
width: 30px;
height: 4px;
background-color: #333;
margin: 6px 0;
transition: 0.4s;
}
.menu-btn.open .bar:nth-child(1) {
transform: rotate(-45deg) translate(-9px, 6px);
}
.menu-btn.open .bar:nth-child(2) {
opacity: 0;
}
.menu-btn.open .bar:nth-child(3) {
transform: rotate(45deg) translate(-8px, -8px);
}
.menu {
display: none;
position: absolute;
top: 80px; /* Site adından 80px aşağıda */
right: 20px;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px;
z-index: 999;
}
.menu.open {
display: block;
}
.menu ul {
list-style-type: none;
padding: 0;
}
.menu ul li {
margin-bottom: 8px;
}
.menu ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
}
.logo {
position: fixed;
top: 20px;
left: 20px;
font-size: 36px; /* Font boyutunu artırdık */
font-weight: bold;
z-index: 1001; /* Menü ve çizgi üstüne çıkması için z-index değerini
artırdık */
}
.menu-line {
position: fixed;
top: 60px; /* Site adından 80px aşağıda */
right: 0;
height: 4px;
background-color: #333;
width: calc(100% - 20px); /* Sayfa genişliğinin sağ ve sol kenarlardan
20px içeriye kadar */
z-index: 999;
}
.addToCartBtn {
position: absolute;
bottom: 0px;
left: 50%;
transform: translateX(-50%);
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
.addToCartBtn:hover {
background-color: #45a049;
}
.user-section {
position: fixed;
top: 30px;
right: 65px;
z-index: 100;
}
.user-section a {
text-decoration: none;
color: #333;
font-weight: bold;
margin-left: 10px;
}
.user-section a:hover {
color: #555;
}
</style>
</head>
<body>
<div class="logo">UZARSU</div>
<div class="menu-btn" onclick="toggleMenu()">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<div class="user-section">
<a href="#signup">Kayıt Ol</a>
<a href="#login">Giriş Yap</a>
</div>
<div class="menu-line"></div>
<main id="mainContent">
<!-- Ana Sayfa İçeriği -->
<section id="anasayfa">
<br><br><br> <!-- Yeni eklediğimiz satırlar boşluğu -->
<h1>Hoş Geldiniz!</h1>
<p>Uzarsu Arıtma olarak, su arıtma sistemleri konusunda uzmanız. Sizin için
en iyi çözümleri sunmaya hazırız.</p>
<a href="#urunler">Ürünlerimize göz atın</a>
</section>
<script>
function toggleMenu() {
var menu = document.getElementById("menu");
menu.classList.toggle("open");
}
</body>
</html>