Skip to content
TheChatArchiveThe Chat Archive
Googlegemma-3-27b-it· GoogleHugging Face LMArena Human Preference 140K

设计一个超炫酷的登录页面,二次元暗黑。图片暂时可以使用网络图片或者占位符

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-4.1-2025-04-14’s answer.
  1. User

    设计一个超炫酷的登录页面,二次元暗黑。图片暂时可以使用网络图片或者占位符

  2. Google Assistant

    好的,没问题!下面是一个二次元暗黑风格登录页面的设计方案,包含设计思路、元素、布局和一些代码示例(HTML、CSS)。由于你提到图片可以使用网络图片或占位符,我会在设计中都考虑到。

    设计思路:

    • 整体氛围: 营造一种神秘、颓废、充满力量感的暗黑二次元氛围。
    • 色彩: 以深色系为主,如深蓝、深紫、黑色、暗红色等。可以加入一些霓虹灯般的亮色作为点缀,如荧光绿、电光蓝。
    • 视觉元素:
      • 背景: 破碎的城市、废墟、星空、机械结构、抽象的能量场等。
      • 角色: 酷炫的二次元角色(可以是原创或现有角色),可以是半身像、剪影或全身像。
      • UI元素: 采用科技感、未来感的设计,如发光边框、像素风格、故障艺术等。
    • 动画效果: 加入一些微妙的动画效果,如背景的缓慢移动、角色的呼吸效果、UI元素的闪烁等,增加页面的活力。

    页面布局:

    1. 背景层: 占据整个页面,可以是图片或视频。
    2. 角色层: 位于背景之上,可以是静态图片或动画角色。
    3. 登录表单层: 位于角色层之上,包含用户名、密码输入框和登录按钮。
    4. 装饰层: 位于登录表单层之上,可以添加一些发光线条、粒子效果、Logo等。

    具体设计元素:

    代码示例:

    HTML (index.html):

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>二次元暗黑登录页</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="container">
            <div class="background">
                <img src="https://wallup.net/wp-content/uploads/2016/01/284198-dark-anime-city-night.jpg" alt="Background">
            </div>
            <div class="character">
                <img src="https://cdn.pixabay.com/photo/2016/11/19/16/53/anime-1846088_960_720.png" alt="Character">
            </div>
            <div class="login-form">
                <h2>登录</h2>
                <input type="text" placeholder="用户名">
                <input type="password" placeholder="密码">
                <button>登录</button>
            </div>
        </div>
    </body>
    </html>
    

    CSS (style.css):

    body {
        margin: 0;
        font-family: sans-serif;
        background-color: #111;
        color: #fff;
        overflow: hidden; /* 隐藏滚动条 */
    }
    
    .container {
        position: relative;
        width: 100vw;
        height: 100vh;
    }
    
    .background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.7); /* 降低亮度 */
    }
    
    .character {
        position: absolute;
        top: 20%;
        right: 10%;
        width: 200px;
        height: auto;
        z-index: 2;
        animation: breathe 3s infinite; /* 呼吸动画 */
    }
    
    .character img {
        width: 100%;
        height: auto;
    }
    
    @keyframes breathe {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    .login-form {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        padding: 20px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        text-align: center;
        z-index: 3;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    }
    
    .login-form h2 {
        margin-bottom: 20px;
        font-size: 24px;
    }
    
    .login-form input[type="text"],
    .login-form input[type="password"] {
        width: 80%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #333;
        background-color: #222;
        color: #fff;
        border-radius: 5px;
        outline: none;
    }
    
    .login-form button {
        width: 80%;
        padding: 10px;
        background-color: #00ff00;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        outline: none;
        transition: background-color 0.3s ease;
    }
    
    .login-form button:hover {
        background-color: #00cc00;
    }
    

    说明:

    • HTML: 结构清晰,包含背景、角色和登录表单三个主要部分。
    • CSS:
      • 使用了绝对定位和transform属性来定位和居中登录表单。
      • 使用了box-shadow属性为登录表单添加阴影效果。
      • 使用了animation属性为角色添加呼吸动画。
      • 使用了filter属性降低背景图片的亮度。
    • 图片: 使用了网络图片作为占位符,你可以替换成你自己的图片。

    进一步优化:

    • 动画效果: 可以添加更多的动画效果,如背景的缓慢移动、UI元素的闪烁等。
    • 粒子效果: 可以使用JavaScript库(如Particles.js)创建粒子效果,增加页面的动态感。
    • 响应式设计: 使用媒体查询,使页面在不同设备上都能良好显示。
    • 交互效果: 可以添加一些交互效果,如鼠标悬停在按钮上时改变颜色。
    • JavaScript: 可以使用JavaScript来处理登录逻辑、验证表单数据等。

    希望这个设计方案对你有所帮助! 你可以根据自己的喜好和需求进行修改和完善。 如果你有任何问题,请随时提出。

  3. User

    写成一个html文件

  4. Google Assistant
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>二次元暗黑登录页</title>
        <style>
            body {
                margin: 0;
                font-family: sans-serif;
                background-color: #111;
                color: #fff;
                overflow: hidden; /* 隐藏滚动条 */
            }
    
            .container {
                position: relative;
                width: 100vw;
                height: 100vh;
            }
    
            .background {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 1;
            }
    
            .background img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                filter: brightness(0.7); /* 降低亮度 */
            }
    
            .character {
                position: absolute;
                top: 20%;
                right: 10%;
                width: 200px;
                height: auto;
                z-index: 2;
                animation: breathe 3s infinite; /* 呼吸动画 */
            }
    
            .character img {
                width: 100%;
                height: auto;
            }
    
            @keyframes breathe {
                0% { transform: scale(1); }
                50% { transform: scale(1.1); }
                100% { transform: scale(1); }
            }
    
            .login-form {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 300px;
                padding: 20px;
                background-color: rgba(0, 0, 0, 0.5);
                border-radius: 10px;
                text-align: center;
                z-index: 3;
                box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
            }
    
            .login-form h2 {
                margin-bottom: 20px;
                font-size: 24px;
            }
    
            .login-form input[type="text"],
            .login-form input[type="password"] {
                width: 80%;
                padding: 10px;
                margin-bottom: 10px;
                border: 1px solid #333;
                background-color: #222;
                color: #fff;
                border-radius: 5px;
                outline: none;
            }
    
            .login-form button {
                width: 80%;
                padding: 10px;
                background-color: #00ff00;
                color: #fff;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                outline: none;
                transition: background-color 0.3s ease;
            }
    
            .login-form button:hover {
                background-color: #00cc00;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="background">
                <img src="https://wallup.net/wp-content/uploads/2016/01/284198-dark-anime-city-night.jpg" alt="Background">
            </div>
            <div class="character">
                <img src="https://cdn.pixabay.com/photo/2016/11/19/16/53/anime-1846088_960_720.png" alt="Character">
            </div>
            <div class="login-form">
                <h2>登录</h2>
                <input type="text" placeholder="用户名">
                <input type="password" placeholder="密码">
                <button>登录</button>
            </div>
        </div>
    </body>
    </html>
    

    使用方法:

    1. 将以上代码复制到一个文本文件中。
    2. 将文件保存为 index.html (确保文件扩展名为 .html)。
    3. 用浏览器打开 index.html 文件。

    现在你应该能看到一个二次元暗黑风格的登录页面了。 你可以根据需要修改图片链接和CSS样式来定制页面。

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.