Skip to content
TheChatArchiveThe Chat Archive
grok-3-preview-02-24· xAIHugging Face LMArena Human Preference 140K

write me a html page that have dead by daylight theme

  1. User

    write me a html page that have dead by daylight theme

  2. Assistant

    Below is an HTML page with a Dead by Daylight theme. This page includes a dark, eerie design inspired by the game's atmosphere, with a fog effect, a custom font, and references to the game's killers, survivors, and overall aesthetic. I'll also include some basic CSS for styling and a bit of JavaScript for interactivity.

    Dead by Daylight Themed HTML Page

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Dead by Daylight - The Fog Awaits</title>
        <link href="https://fonts.googleapis.com/css2?family=Creepster&display=swap" rel="stylesheet">
        <style>
            body {
                margin: 0;
                padding: 0;
                background: url('https://images.unsplash.com/photo-1542281286-9e0a16bb7366?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center fixed;
                background-size: cover;
                font-family: 'Creepster', cursive;
                color: #fff;
                overflow-x: hidden;
            }
    
            /* Fog overlay */
            .fog {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.7);
                z-index: 1;
                animation: fogAnimation 10s infinite;
            }
    
            @keyframes fogAnimation {
                0% { background: rgba(0, 0, 0, 0.7); }
                50% { background: rgba(0, 0, 0, 0.5); }
                100% { background: rgba(0, 0, 0, 0.7); }
            }
    
            /* Header */
            header {
                position: relative;
                z-index: 2;
                text-align: center;
                padding: 20px;
                background: rgba(0, 0, 0, 0.9);
                border-bottom: 5px solid #8b0000;
            }
    
            header h1 {
                font-size: 3em;
                margin: 0;
                text-shadow: 2px 2px 10px #ff0000;
            }
    
            /* Navigation */
            nav {
                position: relative;
                z-index: 2;
                text-align: center;
                background: rgba(0, 0, 0, 0.8);
                padding: 10px 0;
            }
    
            nav a {
                color: #fff;
                text-decoration: none;
                margin: 0 20px;
                font-size: 1.5em;
                transition: color 0.3s;
            }
    
            nav a:hover {
                color: #ff0000;
            }
    
            /* Main content */
            .content {
                position: relative;
                z-index: 2;
                padding: 50px;
                text-align: center;
            }
    
            .content h2 {
                font-size: 2.5em;
                text-shadow: 2px 2px 10px #ff0000;
            }
    
            .content p {
                font-size: 1.2em;
                line-height: 1.6;
                max-width: 800px;
                margin: 0 auto;
            }
    
            /* Bloodweb button */
            .bloodweb-btn {
                display: inline-block;
                margin-top: 20px;
                padding: 15px 30px;
                background: #8b0000;
                color: #fff;
                text-decoration: none;
                font-size: 1.5em;
                border-radius: 5px;
                transition: background 0.3s;
            }
    
            .bloodweb-btn:hover {
                background: #ff0000;
            }
    
            /* Footer */
            footer {
                position: relative;
                z-index: 2;
                text-align: center;
                padding: 20px;
                background: rgba(0, 0, 0, 0.9);
                border-top: 5px solid #8b0000;
                margin-top: 50px;
            }
    
            footer p {
                margin: 0;
                font-size: 1em;
            }
    
            /* Generator animation */
            .generator {
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 100px;
                height: 100px;
                background: url('https://static.wikia.nocookie.net/deadbydaylight_gamepedia_en/images/6/6a/IconHelp_generator.png') no-repeat center center;
                background-size: contain;
                animation: generatorPulse 2s infinite;
                z-index: 2;
            }
    
            @keyframes generatorPulse {
                0% { transform: scale(1); }
                50% { transform: scale(1.1); }
                100% { transform: scale(1); }
            }
        </style>
    </head>
    <body>
        <div class="fog"></div>
        <header>
            <h1>Dead by Daylight</h1>
        </header>
        <nav>
            <a href="#killers">Killers</a>
            <a href="#survivors">Survivors</a>
            <a href="#maps">Maps</a>
            <a href="#bloodweb">Bloodweb</a>
        </nav>
        <div class="content">
            <h2>Welcome to the Fog</h2>
            <p>
                Enter the nightmarish world of Dead by Daylight, where the Entity reigns supreme. Will you survive the trials as a cunning survivor, or will you embrace the darkness as a ruthless killer? The fog is thick, the generators are humming, and the heartbeat is getting louder...
            </p>
            <a href="#bloodweb" class="bloodweb-btn">Enter the Bloodweb</a>
        </div>
        <div class="generator"></div>
        <footer>
            <p>&copy; 2023 Dead by Daylight Fan Page. All rights reserved.</p>
        </footer>
    
        <script>
            // Simple JavaScript for interactivity
            document.querySelector('.bloodweb-btn').addEventListener('click', function(e) {
                e.preventDefault();
                alert('The Entity has claimed your soul! Spend your Bloodpoints wisely...');
            });
        </script>
    </body>
    </html>
    

    Explanation of the Code

    1. HTML Structure:

      • The page includes a header, navigation bar, main content, and footer, all styled to match the Dead by Daylight theme.
      • A generator icon is added in the bottom-right corner to mimic the in-game generators.
    2. CSS Styling:

      • The background image is a dark, foggy forest to set the mood.
      • A semi-transparent overlay with a fog animation creates an eerie atmosphere.
      • The Creepster font from Google Fonts is used to give a horror-themed text style.
      • The navigation links and buttons have hover effects with red accents, reminiscent of blood.
      • The generator icon pulses using a CSS animation.
    3. JavaScript:

      • A simple click event on the "Enter the Bloodweb" button triggers an alert, adding a bit of interactivity.
    4. Assets:

      • The background image is sourced from Unsplash (you can replace it with an official Dead by Daylight image if you have the rights).
      • The generator icon is sourced from the Dead by Daylight wiki (ensure you have permission to use such assets in a real project).

    How to Use

    1. Save the code as index.html.
    2. Open it in a web browser to see the Dead by Daylight-themed page.
    3. Customize the content, images, and links as needed to expand the page (e.g., add sections for killers, survivors, maps, etc.).

    Notes

    • This is a fan-made theme and should not be used for commercial purposes without proper licensing for Dead by Daylight assets.
    • For a more immersive experience, you could add sound effects (like the heartbeat or generator sounds) or use official game assets (with permission).

    Enjoy your journey into the fog!