html卡片

leo 09月15日 188

 
html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5, user-scalable=yes">
    <title>BING Style</title>
    <style>
        :root {
            --fofa-blue: #05EBEC;
            --fofa-blue-secondary: rgba(5, 235, 236, 0.7);
            --font-round: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
        }

        @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap');

        .container {
            width: 100vw;
            height: 100vh;
            background: #121212;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .logo-wrapper {
            padding: 40px;
            background: rgba(30, 30, 30, 0.9);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(5, 235, 236, 0.15);
        }

        .bing-logo {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .icon-box {
            width: 80px;
            height: 80px;
            background: 
                radial-gradient(circle at 30% 30%, 
                    var(--fofa-blue) 10%, 
                    transparent 10.5%),
                conic-gradient(
                    var(--fofa-blue) 0deg 180deg,
                    var(--fofa-blue-secondary) 180deg 360deg
                );
            border-radius: 22px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .main-text {
            font-family: var(--font-round);
            font-size: 3.2rem;
            font-weight: 600;
            color: var(--fofa-blue);
            letter-spacing: -1.5px;
            text-shadow: 0 0 15px rgba(5, 235, 236, 0.4);
            position: relative;
            top: 3px; /* 微调垂直对齐 */
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo-wrapper">
            <div class="bing-logo">
                <div class="icon-box"></div>
                <div class="main-text">Bing</div>
            </div>
        </div>
    </div>
</body>
</html>

主要字体修改说明

  1. 字体替换

    • 主字体:Quicksand (Google Fonts的现代圆体)

    • 备用字体:Segoe UI (Windows系统字体)

    • 最终备用:系统默认UI字体

  2. 字体特性调整

    css
     
     
    font-weight: 600; /* 中等字重 */
    letter-spacing: -1.5px; /* 紧凑字间距 */
    top: 3px; /* 垂直微调对齐 */
  3. 新增字体特性

    • 字重使用500/700变体

    • 通过Google Fonts CDN加载

    • 更现代的字腔比例

效果对比

  • 原版本:紧凑科技感 (SF Pro Rounded)

  • 新版本:柔和现代感 (Quicksand)

其他字体备选方案(替换CSS即可):

css
 
 
/* 方案1:科技感圆体 */
--font-round: 'Orbitron', 'Arial Rounded MT Bold', sans-serif;
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* 方案2:可爱圆体 */
--font-round: 'Nunito', 'Comic Neue', cursive;
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');

/* 方案3:极简圆体 */
--font-round: 'Manrope', 'Arial Rounded MT Bold', sans-serif;
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600&display=swap');
 
 
 
 
看过的人 (4)
  • 23948098
  • 六万万
  • admin
  • 六万
最新回复 (11)
返回