Genel

TEMPLATE

<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML5 Sayfa Yapısı</title>
    <style>
        /* Genel Ayarlar */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        header, nav, section, article, aside, footer {
            padding: 20px;
            margin: 10px;
            border: 1px solid #ccc;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        header {
            background-color: #f4f4f4;
            text-align: center;
        }

        nav {
            background-color: #007bff;
            color: white;
        }

        nav ul {
            list-style: none;
            padding: 0;
            display: flex;
            justify-content: center;
        }

        nav ul li {
            margin: 0 10px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
        }

        section {
            background-color: #e9ecef;
        }

        article {
            background-color: white;
        }

        aside {
            background-color: #f8d7da;
        }

        footer {
            background-color: #343a40;
            color: white;
            text-align: center;
        }

        /* Layout */
        .container {
            display: grid;
            grid-template-areas:
                "header header header"
                "nav nav nav"
                "aside section section"
                "footer footer footer";
            grid-gap: 10px;
        }

        header {
            grid-area: header;
        }

        nav {
            grid-area: nav;
        }

        aside {
            grid-area: aside;
        }

        section {
            grid-area: section;
        }

        footer {
            grid-area: footer;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>Web Sitesi Başlığı</h1>
        </header>

        <nav>
            <ul>
                <li><a href="#home">Ana Sayfa</a></li>
                <li><a href="#about">Hakkında</a></li>
                <li><a href="#contact">İletişim</a></li>
            </ul>
        </nav>

        <aside>
            <h2>Yan Bilgiler</h2>
            <p>Reklamlar, bağlantılar veya yan bilgiler buraya gelir.</p>
        </aside>

        <section>
            <header>
                <h2>Haberler</h2>
            </header>
            <article>
                <h3>Son Dakika</h3>
                <p>Son dakika haberleri burada yer alır...</p>
            </article>
            <footer>
                <p>Bu haberin alt bilgisi</p>
            </footer>
        </section>

        <footer>
            <p>Telif Hakkı © 2024 - Tüm Hakları Saklıdır</p>
        </footer>
    </div>
</body>
</html>
<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ürün Kataloğu</title>
    <style>
        /* Genel Stil */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f9f9f9;
        }

        h1 {
            text-align: center;
            color: #333;
            margin: 20px 0;
            font-size: 2em;
        }

        /* Ürün Kataloğu Konteyneri */
        .product-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Ürün Kartı Stili */
        .product-card {
            flex: 1 1 calc(25% - 20px); /* Varsayılan: 4 ürün yan yana */
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-10px);
        }

        /* Ürün Resmi */
        .product-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        /* Ürün Bilgileri */
        .product-info {
            padding: 15px;
        }

        .product-name {
            font-size: 1.2em;
            color: #333;
            margin: 10px 0;
        }

        .product-price {
            font-size: 1em;
            color: #e74c3c;
            font-weight: bold;
        }

        /* Responsive Tasarım */
        @media (max-width: 768px) {
            .product-card {
                flex: 1 1 calc(50% - 20px); /* Tablet: 2 ürün yan yana */
            }
        }

        @media (max-width: 480px) {
            .product-card {
                flex: 1 1 100%; /* Mobil: 1 ürün */
            }
        }
    </style>
</head>
<body>
    <!-- Sayfa Başlığı -->
    <h1>Ürün Kataloğu</h1>

    <!-- Ürün Kataloğu -->
    <div class="product-container">
        <!-- Ürün 1 -->
        <div class="product-card">
            <img src="https://via.placeholder.com/300x200" alt="Ürün 1" class="product-image">
            <div class="product-info">
                <h2 class="product-name">Ürün 1</h2>
                <p class="product-price">₺100</p>
            </div>
        </div>

        <!-- Ürün 2 -->
        <div class="product-card">
            <img src="https://via.placeholder.com/300x200" alt="Ürün 2" class="product-image">
            <div class="product-info">
                <h2 class="product-name">Ürün 2</h2>
                <p class="product-price">₺150</p>
            </div>
        </div>

        <!-- Ürün 3 -->
        <div class="product-card">
            <img src="https://via.placeholder.com/300x200" alt="Ürün 3" class="product-image">
            <div class="product-info">
                <h2 class="product-name">Ürün 3</h2>
                <p class="product-price">₺200</p>
            </div>
        </div>

        <!-- Ürün 4 -->
        <div class="product-card">
            <img src="https://via.placeholder.com/300x200" alt="Ürün 4" class="product-image">
            <div class="product-info">
                <h2 class="product-name">Ürün 4</h2>
                <p class="product-price">₺250</p>
            </div>
        </div>

        <!-- Ürün 5 -->
        <div class="product-card">
            <img src="https://via.placeholder.com/300x200" alt="Ürün 5" class="product-image">
            <div class="product-info">
                <h2 class="product-name">Ürün 5</h2>
                <p class="product-price">₺300</p>
            </div>
        </div>

        <!-- Ürün 6 -->
        <div class="product-card">
            <img src="https://via.placeholder.com/300x200" alt="Ürün 6" class="product-image">
            <div class="product-info">
                <h2 class="product-name">Ürün 6</h2>
                <p class="product-price">₺350</p>
            </div>
        </div>
    </div>
</body>
</html>

Bir cevap yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir