JavaScript is not enabled!...Please enable javascript in your browser

جافا سكريبت غير ممكن! ... الرجاء تفعيل الجافا سكريبت في متصفحك.

الصفحة الرئيسية

موقع احترافي عن العاب الاطفال

 موقع احترافي عن العاب الاطفال 

الاكواد:

<!DOCTYPE html>

<html lang="ar">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>ألعاب الأطفال</title>

    <link rel="stylesheet" href="styles.css">

    <link rel="icon" href="favicon.ico" type="image/x-icon">

</head>

<body>

    <header>

        <div class="logo">

            <img src="logo.png" alt="ألعاب الأطفال">

        </div>

        <nav>

            <ul>

                <li><a href="#home">الرئيسية</a></li>

                <li><a href="#games">الألعاب</a></li>

                <li><a href="#about">عن الموقع</a></li>

                <li><a href="#contact">اتصل بنا</a></li>

            </ul>

        </nav>

    </header>


    <section id="home" class="hero">

        <div class="overlay">

            <h1>مرحباً بك في أفضل عالم لألعاب الأطفال</h1>

            <p>استمتع بألعاب تعليمية وترفيهية في مكان واحد.</p>

            <a href="#games" class="cta-btn">استكشف الألعاب</a>

        </div>

    </section>


    <section id="games" class="games">

        <h2>الألعاب المميزة</h2>

        <div class="game-card">

            <img src="game1.jpg" alt="لعبة 1" class="game-image">

            <div class="game-info">

                <h3>لعبة مغامرات الأبطال</h3>

                <p>مغامرة مشوقة للأطفال لتطوير مهارات التفكير.</p>

                <a href="#" class="game-link">جرب الآن</a>

            </div>

        </div>

        <div class="game-card">

            <img src="game2.jpg" alt="لعبة 2" class="game-image">

            <div class="game-info">

                <h3>لعبة الأرقام الملونة</h3>

                <p>لعبة تعليمية ممتعة تعلم الأطفال الأرقام.</p>

                <a href="#" class="game-link">جرب الآن</a>

            </div>

        </div>

        <div class="game-card">

            <img src="game3.jpg" alt="لعبة 3" class="game-image">

            <div class="game-info">

                <h3>لعبة التلوين الممتعة</h3>

                <p>اكتشف عالم الألوان مع هذه اللعبة المبدعة.</p>

                <a href="#" class="game-link">جرب الآن</a>

            </div>

        </div>

    </section>


    <section id="about" class="about">

        <h2>عن الموقع</h2>

        <p>موقعنا يقدم مجموعة من الألعاب التعليمية والترفيهية المصممة خصيصاً للأطفال، من أجل تنمية مهاراتهم وتنشيط خيالهم.</p>

    </section>


    <section id="contact" class="contact">

        <h2>اتصل بنا</h2>

        <form action="#" method="POST" class="contact-form">

            <input type="text" placeholder="الاسم الكامل" required>

            <input type="email" placeholder="البريد الإلكتروني" required>

            <textarea placeholder="رسالتك" required></textarea>

            <button type="submit" class="submit-btn">إرسال</button>

        </form>

    </section>


    <footer>

        <p>&copy; 2025 ألعاب الأطفال | جميع الحقوق محفوظة</p>

    </footer>


    <script src="script.js"></script>

</body>

</html>

__________________________________________________________________________________

css:

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


body {

    font-family: 'Arial', sans-serif;

    line-height: 1.6;

    color: #333;

}


header {

    background-color: #ff9800;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    position: sticky;

    top: 0;

    z-index: 10;

}


header .logo img {

    width: 150px;

}


header nav ul {

    list-style: none;

    display: flex;

}


header nav ul li {

    margin: 0 20px;

}


header nav ul li a {

    color: white;

    text-decoration: none;

    font-size: 18px;

    font-weight: bold;

}


.hero {

    background-image: url('hero-image.jpg');

    background-size: cover;

    background-position: center;

    height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    position: relative;

}


.hero .overlay {

    background: rgba(0, 0, 0, 0.6);

    padding: 20px;

    color: white;

    border-radius: 10px;

}


.hero h1 {

    font-size: 48px;

    margin-bottom: 20px;

}


.hero p {

    font-size: 22px;

    margin-bottom: 30px;

}


.cta-btn {

    background-color: #ff9800;

    padding: 12px 30px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    border-radius: 5px;

    transition: background-color 0.3s;

}


.cta-btn:hover {

    background-color: #e68900;

}


.games {

    padding: 60px 20px;

    text-align: center;

    background-color: #f9f9f9;

}


.games h2 {

    font-size: 36px;

    margin-bottom: 40px;

}


.game-card {

    display: inline-block;

    width: 300px;

    margin: 15px;

    background-color: white;

    border-radius: 10px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    overflow: hidden;

    transition: transform 0.3s, box-shadow 0.3s;

}


.game-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);

}


.game-card img {

    width: 100%;

    height: 200px;

    object-fit: cover;

}


.game-info {

    padding: 20px;

}


.game-info h3 {

    font-size: 24px;

    margin-bottom: 10px;

}


.game-info p {

    font-size: 16px;

    color: #666;

    margin-bottom: 20px;

}


.game-link {

    background-color: #ff9800;

    padding: 8px 20px;

    color: white;

    text-decoration: none;

    border-radius: 5px;

}


.game-link:hover {

    background-color: #e68900;

}


.about, .contact {

    padding: 60px 20px;

    text-align: center;

}


.about p, .contact p {

    font-size: 18px;

    margin-bottom: 30px;

}


.contact-form input, .contact-form textarea {

    width: 80%;

    padding: 12px;

    margin: 10px 0;

    border-radius: 5px;

    border: 1px solid #ccc;

}


.submit-btn {

    padding: 12px 30px;

    background-color: #ff9800;

    border: none;

    color: white;

    font-weight: bold;

    border-radius: 5px;

    cursor: pointer;

    transition: background-color 0.3s;

}


.submit-btn:hover {

    background-color: #e68900;

}


footer {

    background-color: #333;

    color: white;

    text-align: center;

    padding: 20px;

    font-size: 14px;

}

___________________________________________________________________________________
js:
// إضافة تأثيرات تحريك النصوص أو العناصر عند التمرير
window.addEventListener('scroll', function() {
    const hero = document.querySelector('.hero');
    const gameCards = document.querySelectorAll('.game-card');

    if (window.scrollY > hero.offsetHeight - 100) {
        hero.classList.add('fade-in');
    }

    gameCards.forEach(card => {
        if (isElementInView(card)) {
            card.classList.add('fade-in');
        }
    });
});

function isElementInView(element) {
    const rect = element.getBoundingClientRect();
    return rect.top >= 0 && rect.left >= 0 && rect.bottom <= window.innerHeight && rect.right <= window.innerWidth;
}
___________________________________________________________________________________
صور الموقع:







الاسمبريد إلكترونيرسالة