示例工程 35-landing-page

35-landing-page/demo-01-hero/index.html

html · 1.7 KB

运行:Hero 演示

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Hero 演示</title>
    <style>
      body { margin: 0; padding: 32px; background: #f8fafc; color: #0f172a; font-family: system-ui, sans-serif; line-height: 1.7; }
      .box { max-width: 760px; margin-bottom: 16px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
      h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.1; }
      p { margin: 0 0 12px; color: #334155; }
      .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
      .cta { padding: 7px 14px; border: 1px solid #2563eb; border-radius: 6px; background: #2563eb; color: #fff; text-decoration: none; font-size: 14px; }
      .cta.secondary { background: #fff; color: #2563eb; }
      img { display: block; width: 100%; height: auto; border-radius: 8px; }
      figcaption { margin-top: 6px; color: #64748b; font-size: 13px; }
    </style>
  </head>
  <body>
    <h1>Hero 演示</h1>

    <div class="box">
      <section aria-labelledby="hero-title">
        <h2 id="hero-title">把静态站点部署到边缘</h2>
        <p>预览、回滚、自定义域名与 HTTPS,一条命令完成。</p>
        <div class="actions">
          <a class="cta" href="signup.html">免费开始</a>
          <a class="cta secondary" href="#pricing">查看价格</a>
        </div>
        <figure>
          <img src="hero.svg" alt="部署控制台界面:项目列表与部署状态" width="800" height="480" />
          <figcaption>图 1:部署控制台。</figcaption>
        </figure>
      </section>
    </div>
  </body>
</html>