Breaking News

Monday

Neo 3D design blog posts

Neon Blog Posts

Neon Blog

Post 1: Introduction to Web Development

Getting Started with HTML, CSS, and JavaScript

Web development is a field that involves creating and maintaining websites. It includes front-end and back-end development...

Post 2: Understanding JavaScript

Why JavaScript is Essential for Developers

JavaScript is a programming language that allows you to create dynamic and interactive web pages...

Post 3: CSS Animations

Adding Motion to Your Webpages

CSS animations make websites more engaging by allowing elements to move, change color, or fade in and out...

Post 4: Responsive Web Design

Making Websites Mobile-Friendly

Responsive design ensures websites look good on all devices by using flexible layouts and media queries...

Post 5: SEO Basics

How to Rank Higher on Google

Search Engine Optimization (SEO) improves a website's visibility in search engines, increasing traffic and engagement...

Post 6: Cybersecurity Tips

Protecting Your Website from Hackers

Cybersecurity is essential to prevent data breaches, malware, and unauthorized access to sensitive information...

© 2025 Neon Blog. All Rights Reserved.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neon Blog Posts</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #0d0d0d;
            color: white;
            text-align: center;
            margin: 0;
            padding: 0;
            transition: 0.3s;
        }

        header, footer {
            background: rgba(0, 0, 0, 0.9);
            padding: 15px;
            box-shadow: 0 0 10px #00ffcc;
        }

        .container {
            max-width: 800px;
            margin: auto;
            padding: 20px;
        }

        .post-card {
            background: rgba(0, 0, 0, 0.8);
            padding: 20px;
            margin: 20px 0;
            border-radius: 10px;
            box-shadow: 0 0 10px #00ffcc;
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease-out;
        }

        .post-card h2 {
            color: #00ffcc;
            text-shadow: 0 0 10px #00ffcc;
        }

        .post-card h3 {
            color: #ff7300;
        }

        .post-card p {
            font-size: 16px;
            color: #ccc;
            display: none;
        }

        .btn {
            background: linear-gradient(90deg, #ff0000, #ff7300);
            color: white;
            padding: 10px 20px;
            border: none;
            cursor: pointer;
            border-radius: 5px;
            font-size: 14px;
            font-weight: bold;
            text-decoration: none;
            display: inline-block;
            margin-top: 10px;
            transition: 0.3s;
        }

        .btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(255, 0, 0, 1);
        }

        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(90deg, #00ffcc, #ff00ff);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: 0.3s;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        .light-theme {
            background-color: #ffffff;
            color: black;
        }

        .light-theme .post-card {
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 0 10px #ff00ff;
        }

        .light-theme .post-card h2 {
            color: #ff00ff;
        }

        .light-theme .post-card p {
            color: black;
        }

        /* Animations */
        .show { opacity: 1; transform: translateY(0) !important; }
        .entry-right { transform: translateX(100px); }
        .entry-left { transform: translateX(-100px); }
        .entry-center { transform: scale(0.5); }
    </style>
</head>
<body>

    <header>
        <h1>Neon Blog</h1>
    </header>

    <button class="theme-toggle" onclick="toggleTheme()">Toggle Theme</button>

    <div class="container">
        <div class="post-card show">
            <h2>Post 1: Introduction to Web Development</h2>
            <h3>Getting Started with HTML, CSS, and JavaScript</h3>
            <button class="btn" onclick="toggleContent(this)">Learn More</button>
            <p>Web development is a field that involves creating and maintaining websites. It includes front-end and back-end development...</p>
        </div>
        
        <div class="post-card entry-down">
            <h2>Post 2: Understanding JavaScript</h2>
            <h3>Why JavaScript is Essential for Developers</h3>
            <button class="btn" onclick="toggleContent(this)">Learn More</button>
            <p>JavaScript is a programming language that allows you to create dynamic and interactive web pages...</p>
        </div>
        
        <div class="post-card entry-right">
            <h2>Post 3: CSS Animations</h2>
            <h3>Adding Motion to Your Webpages</h3>
            <button class="btn" onclick="toggleContent(this)">Learn More</button>
            <p>CSS animations make websites more engaging by allowing elements to move, change color, or fade in and out...</p>
        </div>
        
        <div class="post-card entry-left">
            <h2>Post 4: Responsive Web Design</h2>
            <h3>Making Websites Mobile-Friendly</h3>
            <button class="btn" onclick="toggleContent(this)">Learn More</button>
            <p>Responsive design ensures websites look good on all devices by using flexible layouts and media queries...</p>
        </div>
        
        <div class="post-card entry-center">
            <h2>Post 5: SEO Basics</h2>
            <h3>How to Rank Higher on Google</h3>
            <button class="btn" onclick="toggleContent(this)">Learn More</button>
            <p>Search Engine Optimization (SEO) improves a website's visibility in search engines, increasing traffic and engagement...</p>
        </div>
        
        <div class="post-card entry-down">
            <h2>Post 6: Cybersecurity Tips</h2>
            <h3>Protecting Your Website from Hackers</h3>
            <button class="btn" onclick="toggleContent(this)">Learn More</button>
            <p>Cybersecurity is essential to prevent data breaches, malware, and unauthorized access to sensitive information...</p>
        </div>
    </div>

    <footer>
        <p>&copy; 2025 Neon Blog. All Rights Reserved.</p>
    </footer>

    <script>
        function toggleTheme() {
            document.body.classList.toggle("light-theme");
        }

        function revealPosts() {
            let posts = document.querySelectorAll('.post-card');
            let windowHeight = window.innerHeight;
            
            posts.forEach(post => {
                let position = post.getBoundingClientRect().top;
                
                if (position < windowHeight - 100) {
                    post.classList.add("show");
                }
            });
        }

        function toggleContent(button) {
            let paragraph = button.nextElementSibling;
            paragraph.style.display = (paragraph.style.display === "block") ? "none" : "block";
        }

        window.addEventListener("scroll", revealPosts);
        revealPosts();
    </script>

</body>
</html>

No comments:

Post a Comment