• 14-03-2025, 03:47:26
    #1
    Mobil uyumlu basit çift görünümlü link bio tasarımı;




    <!DOCTYPE html>
    <html lang="tr">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Link Bio - Hakan Baştan</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
    
        <header>
            <div class="container">
                <div class="profile">
                    <img src="https://hakanbastan.com/images/33737-logom.png" alt="Hakan Baştan" class="profile-img">
                    <h1>Hakan Baştan</h1>
                    <p>Web Tasarımcısı ve Yazılım Geliştiricisi</p>
                    <label class="switch">
                        <input type="checkbox" id="theme-toggle">
                        <span class="slider"></span>
                    </label>
                </div>
            </div>
        </header>
    
        <section id="links" class="container">
            <a href="https://www.instagram.com" class="link-item" target="_blank">
                <i class="fab fa-instagram"></i> Instagram
            </a>
            <a href="https://www.linkedin.com" class="link-item" target="_blank">
                <i class="fab fa-linkedin"></i> LinkedIn
            </a>
            <a href="https://github.com" class="link-item" target="_blank">
                <i class="fab fa-github"></i> GitHub
            </a>
            <a href="mailto:hakan@example.com" class="link-item">
                <i class="fas fa-envelope"></i> E-posta Gönder
            </a>
        </section>
    
        <footer>
            <p>© 2025 Hakan Baştan | Tüm Hakları Saklıdır.</p>
        </footer>
    
        <script src="script.js"></script>
    </body>
    </html>
    
    [CENTER][/CENTER]

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body {
        font-family: 'Arial', sans-serif;
        background-color: #f9f9f9;
        color: #333;
        line-height: 1.6;
        text-align: center;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    body.dark-mode {
        background-color: #121212;
        color: #f4f4f4; /* Karanlık modda metin rengini beyaz yapıyoruz */
    }
    body.dark-mode header {
        background-color: #333;
        color: #f4f4f4; /* Karanlık modda header metin rengini beyaz yapıyoruz */
    }
    body.dark-mode .link-item {
        background-color: #4CAF50;
    }
    body.dark-mode .link-item:hover {
        background-color: #45a049;
    }
    
    header {
        background-color: #fff;
        padding: 50px 0;
        color: #333;
        transition: background-color 0.3s ease;
    }
    .container {
        width: 80%;
        margin: 0 auto;
    }
    .profile {
        text-align: center;
    }
    .profile-img {
        border-radius: 50%;
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    .profile h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .profile p {
        font-size: 18px;
        color: #666;
    }
    
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }
    
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 34px;
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        border-radius: 50%;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
    }
    
    input:checked + .slider {
        background-color: #4CAF50;
    }
    
    input:checked + .slider:before {
        transform: translateX(26px);
    }
    
    
    #links {
        background-color: white;
        padding: 30px 0;
        border-top: 1px solid #ddd;
        margin-top: 30px;
    }
    .link-item {
        display: inline-block;
        background-color: #4CAF50;
        color: white;
        text-decoration: none;
        padding: 15px 25px;
        border-radius: 50px;
        margin: 10px;
        font-size: 18px;
        transition: background-color 0.3s ease, transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .link-item i {
        margin-right: 10px;
        font-size: 22px;
    }
    .link-item:hover {
        background-color: #45a049;
        transform: translateY(-5px);
    }
    
    footer {
        background-color: #fff;
        color: #333;
        padding: 15px 0;
        margin-top: 30px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    body.dark-mode footer {
        background-color: #333;
        color: #f4f4f4; /* Karanlık modda footer metnini beyaz yapıyoruz */
    }
    
    
    @media (max-width: 768px) {
        .container {
            width: 90%;
        }
        .link-item {
            width: 100%;
            margin: 10px 0;
        }
    }
    
    [CENTER][/CENTER]

    const themeToggle = document.getElementById("theme-toggle");
    
    themeToggle.addEventListener("change", () => {
        document.body.classList.toggle("dark-mode");
    });
    
    [CENTER][/CENTER]

    Dosya isimleri:
    index.html
    script.js
    style.css
  • 14-03-2025, 05:07:41
    #2
    Çok güzel çalışma olmuş hocam teşekkürler