Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

23.2 KB
Raw Blame
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cindy 登录视觉三项修复 · hifi 预览(fix/apple-signin-review)</title>
<style>
  * { margin:0; padding:0; box-sizing:border-box; }
  body { background:#111; color:#ddd; font-family:-apple-system,'PingFang SC','HarmonyOS Sans SC',sans-serif; min-height:100vh; }
  header { padding:20px 28px 6px; }
  header h1 { font-size:17px; font-weight:700; color:#eee; }
  header p { font-size:12px; color:#888; margin-top:6px; line-height:1.7; max-width:780px; }
  .tabs { display:flex; gap:8px; padding:14px 28px; flex-wrap:wrap; }
  .tab { padding:7px 22px; border-radius:9999px; border:1px solid #3a3a3a; background:#1c1c1c; color:#aaa; font-size:13px; cursor:pointer; }
  .tab.active { background:#eee; color:#111; border-color:#eee; font-weight:700; }
  .sec { display:flex; gap:40px; justify-content:center; padding:12px 20px 40px; flex-wrap:wrap; }
  .hidden { display:none !important; }
  .caption { text-align:center; font-size:12px; color:#888; margin-top:10px; max-width:420px; line-height:1.8; }
  .err { color:#D91F37; font-weight:400; display:flex; align-items:center; justify-content:center; position:absolute; left:0; width:100%; }
  .frame { position:relative; overflow:hidden; }
  .frame.light { background:#EDEDED; }   /* login.bgBase light */
  .frame.dark  { background:#1F1F1E; }   /* login.bgBase dark  */
  .circle { border-radius:50%; display:grid; place-items:center; }
  /* Apple 圆钮(本 PR):亮=纯黑圆白标 / 暗=纯白圆黑标,无描边(ADR Black/White 官方配色) */
  .light .apple { background:#000000; }
  .dark  .apple { background:#FFFFFF; }
  .light .apple svg path { fill:#FFFFFF; }
  .dark  .apple svg path { fill:#000000; }
  /* SSO 圆钮:维持既有样式(反相底 + 1px 描边),对照参考 */
  .light .sso { background:#2A2828; border:1px solid #434343; }
  .dark  .sso { background:#EEEEEE; border:1px solid #FFFFFF; }

  /* ── iPhone 375×812(750×1624 长屏档 LOGIN_STAGE_LONG,0.5 缩放) ── */
  .phone { width:375px; height:812px; border-radius:44px; box-shadow:0 0 0 10px #2a2a2a, 0 24px 60px rgba(0,0,0,.55); }
  .phone .statusbar { position:absolute; top:0; left:0; right:0; height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; font-size:14px; font-weight:600; z-index:3; }
  .light .statusbar { color:#111; } .dark .statusbar { color:#eee; }
  .phone .hero { position:absolute; left:0; top:58px; width:375px; height:451px; object-fit:cover; }   /* cindy 0,116,750,902 */
  .phone .slogan { position:absolute; left:193.5px; top:343px; width:160.5px; height:46px; }           /* 387,686,321,92 */
  .phone .wordmark { position:absolute; left:87.5px; top:407px; width:200.5px; height:68.5px; }        /* 175,814,401,137 */
  .phone .panel { position:absolute; left:17.5px; top:486.5px; width:340px; height:220px; border-radius:18px; }
  .light .panel { background:#FBFBFB; box-shadow:inset 0 0 0 1px #D4D4D4; }
  .dark  .panel { background:#312F2F; box-shadow:inset 0 0 0 1px #434343; }
  .panel .title { position:absolute; top:15.5px; width:100%; text-align:center; font-weight:700; }
  .light .panel .title { color:#252222; } .dark .panel .title { color:#D4D4D4; }
  .panel .subtitle { position:absolute; width:100%; text-align:center; color:#6F6F6F; }
  .panel .input { position:absolute; border-radius:9999px; display:flex; align-items:center; }
  .light .panel .input { background:#EEEEEE; border:1px solid #D4D4D4; }
  .dark  .panel .input { background:#2C2A2A; border:1px solid #434343; }
  .light .panel .input.empty { color:#D4D4D4; } .dark .panel .input.empty { color:#6F6F6F; }
  .light .panel .input.filled { color:#2A2828; } .dark .panel .input.filled { color:#D4D4D4; }
  .panel .cta { position:absolute; border-radius:9999px; display:flex; align-items:center; justify-content:center; font-weight:700; }
  .light .panel .cta { background:#2A2828; border:1px solid #434343; color:#D4D4D4; }
  .dark  .panel .cta { background:#EEEEEE; border:1px solid #FFFFFF; color:#2A2828; }
  .phone .title { font-size:16px; line-height:19px; } .phone .subtitle { top:37.5px; font-size:10px; }
  .phone .input { left:35px; top:79px; width:270px; height:40px; padding-left:15.5px; font-size:12px; }
  .phone .cta { left:35px; top:150px; width:270px; height:40px; font-size:12px; }
  .phone .err { top:190px; height:30px; font-size:10px; }                 /* 错误带 380..440 → 190..220,垂直居中 */
  .phone .social { position:absolute; left:130px; top:726.5px; display:flex; gap:35px; z-index:2; }
  .phone .circle { width:40px; height:40px; }
  .phone .apple svg { width:24px; height:24px; } .phone .sso img { width:24px; height:24px; }
  .phone .home { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); width:134px; height:5px; border-radius:3px; }
  .light .home { background:#111; } .dark .home { background:#eee; }

  /* ── iPad 竖屏 834×1194pt(0.5 缩放显示 417×597)──
     几何按 resolveLoginStage 实算:scale=834/750=1.112,dh=1073.9<1334 → 功能区优先档:
     视觉区 = 短屏档几何 ×v(v=(dh-600)/734=0.6456,锚 (375,0)),loginY=dh-600=473.9。
     以下数值 = 设计px × 1.112 × 0.5。 */
  .pad { width:417px; height:597px; border-radius:24px; box-shadow:0 0 0 8px #2a2a2a, 0 20px 50px rgba(0,0,0,.5); }
  .pad .hero { position:absolute; left:100.8px; top:38.4px; width:215px; height:258.4px; object-fit:contain; }
  .pad .slogan { position:absolute; left:239.9px; top:172.4px; width:91.2px; height:26.1px; }
  .pad .wordmark { position:absolute; left:145.3px; top:213.4px; width:126.7px; height:43.3px; }
  .pad .panel { position:absolute; left:19.5px; top:263.5px; width:378.1px; height:244.7px; border-radius:20px; }
  .pad .title { top:17.2px; font-size:17.8px; } .pad .subtitle { top:41.7px; font-size:11.1px; }
  .pad .input { left:38.9px; top:87.8px; width:300.2px; height:44.5px; padding-left:17.2px; font-size:13.3px; }
  .pad .cta { left:38.9px; top:166.8px; width:300.2px; height:44.5px; font-size:13.3px; }
  .pad .err { top:211.3px; height:33.4px; font-size:11.1px; }
  .pad .social { position:absolute; left:144.6px; top:530.4px; display:flex; gap:38.9px; z-index:2; } /* 组y263.5+组内266.9;圆钮行组内水平居中 */
  .pad .circle { width:44.5px; height:44.5px; }
  .pad .apple svg { width:26.7px; height:26.7px; } .pad .sso img { width:26.7px; height:26.7px; }

  /* ── 桌面 1819×2098(0.36 缩放显示 655×755;LOGIN_GROUP@570,1229) ── */
  .desk { width:655px; height:755px; border-radius:10px; box-shadow:0 0 0 1px #333, 0 20px 50px rgba(0,0,0,.5); }
  .desk .hero { position:absolute; left:159.5px; top:99px; width:336.2px; height:336.2px; object-fit:contain; }
  .desk .slogan { position:absolute; left:429.8px; top:311.8px; width:163.2px; height:46.5px; }
  .desk .wordmark { position:absolute; left:251.3px; top:376.6px; width:152.3px; height:52.2px; }
  .desk .panel { position:absolute; left:205.2px; top:442.4px; width:244.8px; height:158.4px; border-radius:13px; }
  .desk .title { top:11.2px; font-size:11.5px; } .desk .subtitle { top:27px; font-size:7.2px; }
  .desk .input { left:25.2px; top:56.9px; width:194.4px; height:28.8px; padding-left:11.2px; font-size:8.6px; }
  .desk .cta { left:25.2px; top:108px; width:194.4px; height:28.8px; font-size:8.6px; }
  .desk .err { top:136.8px; height:21.6px; font-size:7.2px; }
  .desk .social { position:absolute; left:286.2px; top:615.2px; display:flex; gap:25.2px; z-index:2; } /* 组y442.4+组内172.8;圆钮行组内水平居中 */
  .desk .circle { width:28.8px; height:28.8px; }
  .desk .apple svg { width:17.3px; height:17.3px; } .desk .sso img { width:17.3px; height:17.3px; }

  /* ── 修复对照 ── */
  .diffgrid { display:flex; flex-direction:column; gap:36px; align-items:center; padding:12px 20px 40px; }
  .diffrow { display:flex; gap:28px; align-items:flex-start; flex-wrap:wrap; justify-content:center; }
  .diffcard { width:320px; }
  .diffcard h3 { font-size:13px; color:#ccc; margin-bottom:10px; text-align:center; }
  .diffcard h3 .bad { color:#e05a6d; } .diffcard h3 .good { color:#5ccb8a; }
  .mini { position:relative; width:320px; height:230px; border-radius:14px; overflow:hidden; }
  .rowtitle { font-size:14px; font-weight:700; color:#eee; text-align:center; width:100%; }
  .guide { position:absolute; left:0; width:100%; border-top:1px dashed rgba(217,31,55,.55); z-index:5; }
  .guidelabel { position:absolute; right:6px; font-size:9px; color:rgba(217,31,55,.8); z-index:5; }
</style>
</head>
<body>
<header>
  <h1>Cindy · 登录视觉三项修复(先行单独 PR:fix/apple-signin-review)</h1>
  <p>本 PR 三项改动:① <b>Apple 登录入口全端圆钮化 + ADR 官方标准</b>——亮色 = 纯黑圆 + 白色官方标 / 暗色 = 纯白圆 + 黑色官方标,无描边,logo 为 Apple Design Resources「Logo Only」path 逐字节原样(单测护住),官方全宽按钮撤下;② <b>暗色 slogan 透明底</b>——原资产烙死 #1F1F1E 实底叠在立绘上,现替换为透明版(桌面 2 份 + 手机 2 份);③ <b>错误提示垂直居中</b>——由紧贴主按钮改为「主按钮底→登录面板底」整段垂直居中(双端)。协议同意行 / 游客入口属另一 PR,不在本页。</p>
</header>
<div class="tabs">
  <button class="tab active" onclick="show('phone',this)">手机(iPhone/安卓)</button>
  <button class="tab" onclick="show('pad',this)">iPad 竖屏</button>
  <button class="tab" onclick="show('desk',this)">桌面 mac/win</button>
  <button class="tab" onclick="show('diff',this)">修复对照(前后)</button>
</div>

<div class="sec" id="sec-phone">
  <div>
    <div class="frame phone light">
      <div class="statusbar"><span>9:41</span><span>▮▮▮ ⚟ ▭</span></div>
      <img class="hero" src="assets/hero.png" alt="">
      <img class="slogan" src="assets/slogan.png" alt="">
      <img class="wordmark" src="assets/wordmark.png" alt="">
      <div class="panel">
        <div class="title">欢迎使用 CINDY</div>
        <div class="subtitle">选择一种方式安全登录</div>
        <div class="input filled">138</div>
        <div class="cta">继续</div>
        <div class="err">请输入正确的手机号</div>
      </div>
      <div class="social">
        <div class="circle apple"></div>
        <div class="circle sso"><img src="assets/sso.svg" alt="SSO"></div>
      </div>
      <div class="home"></div>
    </div>
    <div class="caption">亮色 · iPhone(750×1624 长屏档,0.5 缩放)· Apple = 黑圆白标无描边;错误提示居中于「继续」按钮底与面板底之间(修复③)</div>
  </div>
  <div>
    <div class="frame phone dark">
      <div class="statusbar"><span>9:41</span><span>▮▮▮ ⚟ ▭</span></div>
      <img class="hero" src="assets/hero.png" alt="">
      <img class="slogan" src="assets/slogan-dark.png" alt="">
      <img class="wordmark" src="assets/wordmark-dark.png" alt="">
      <div class="panel">
        <div class="title">欢迎使用 CINDY</div>
        <div class="subtitle">选择一种方式安全登录</div>
        <div class="input empty">请输入手机号</div>
        <div class="cta">继续</div>
      </div>
      <div class="social">
        <div class="circle apple"></div>
        <div class="circle sso"><img src="assets/sso-dark.svg" alt="SSO"></div>
      </div>
      <div class="home"></div>
    </div>
    <div class="caption">暗色 · iPhone · Apple = 白圆黑标无描边;slogan 已为透明底,不再压出色块(修复②)。安卓同构图,仅无 Apple 圆钮(iOS-only 判定不变)</div>
  </div>
</div>

<div class="sec hidden" id="sec-pad">
  <div>
    <div class="frame pad light">
      <img class="hero" src="assets/hero.png" alt="">
      <img class="slogan" src="assets/slogan.png" alt="">
      <img class="wordmark" src="assets/wordmark.png" alt="">
      <div class="panel">
        <div class="title">欢迎使用 CINDY</div>
        <div class="subtitle">选择一种方式安全登录</div>
        <div class="input filled">138</div>
        <div class="cta">继续</div>
        <div class="err">请输入正确的手机号</div>
      </div>
      <div class="social">
        <div class="circle apple"></div>
        <div class="circle sso"><img src="assets/sso.svg" alt="SSO"></div>
      </div>
    </div>
    <div class="caption">亮色 · iPad 竖屏 834×1194(0.5 缩放显示)· 几何按 resolveLoginStage 实算(功能区优先档 v=0.646)。与手机共用同一组件与常量,三项修复自动生效</div>
  </div>
  <div>
    <div class="frame pad dark">
      <img class="hero" src="assets/hero.png" alt="">
      <img class="slogan" src="assets/slogan-dark.png" alt="">
      <img class="wordmark" src="assets/wordmark-dark.png" alt="">
      <div class="panel">
        <div class="title">欢迎使用 CINDY</div>
        <div class="subtitle">选择一种方式安全登录</div>
        <div class="input empty">请输入手机号</div>
        <div class="cta">继续</div>
      </div>
      <div class="social">
        <div class="circle apple"></div>
        <div class="circle sso"><img src="assets/sso-dark.svg" alt="SSO"></div>
      </div>
    </div>
    <div class="caption">暗色 · iPad 竖屏 · slogan 透明底 + 白圆黑标。横屏与安卓 pad 走同一 resolveLoginStage 连续插值,无独立代码路径;安卓无 Apple 圆钮</div>
  </div>
</div>

<div class="sec hidden" id="sec-desk">
  <div>
    <div class="frame desk light">
      <img class="hero" src="assets/hero.png" alt="">
      <img class="slogan" src="assets/slogan.png" alt="">
      <img class="wordmark" src="assets/wordmark.png" alt="">
      <div class="panel">
        <div class="title">欢迎使用 CINDY</div>
        <div class="subtitle">选择一种方式安全登录</div>
        <div class="input filled">138</div>
        <div class="cta">继续</div>
        <div class="err">请输入正确的手机号</div>
      </div>
      <div class="social">
        <div class="circle apple"></div>
        <div class="circle sso"><img src="assets/sso.svg" alt="SSO"></div>
      </div>
    </div>
    <div class="caption">亮色 · 桌面 1819×2098 画布(0.36 缩放显示)· 桌面 Apple 圆钮 = login-apple-circle-bg token(#000000/#FFFFFF 双态),LoginSocialButton variant='apple' 去描边</div>
  </div>
  <div>
    <div class="frame desk dark">
      <img class="hero" src="assets/hero.png" alt="">
      <img class="slogan" src="assets/slogan-dark.png" alt="">
      <img class="wordmark" src="assets/wordmark-dark.png" alt="">
      <div class="panel">
        <div class="title">欢迎使用 CINDY</div>
        <div class="subtitle">选择一种方式安全登录</div>
        <div class="input empty">请输入手机号</div>
        <div class="cta">继续</div>
      </div>
      <div class="social">
        <div class="circle apple"></div>
        <div class="circle sso"><img src="assets/sso-dark.svg" alt="SSO"></div>
      </div>
    </div>
    <div class="caption">暗色 · 桌面 · 白圆黑标无描边;桌面暗色 slogan 资产(1x/@2x)同步替换为透明底</div>
  </div>
</div>

<div class="diffgrid hidden" id="sec-diff">
  <div class="rowtitle">① Apple 入口(暗色,对照真机截图)</div>
  <div class="diffrow">
    <div class="diffcard">
      <h3><span class="bad">修复前</span>:官方全宽按钮悬浮遮挡标题,非圆形入口</h3>
      <div class="mini frame dark">
        <div class="panel" style="left:20px; top:16px; width:280px; height:198px; border-radius:16px;">
          <div class="title" style="top:14px; font-size:14px;">欢迎使用 CINDY</div>
          <div class="subtitle" style="top:34px; font-size:9px;">选择一种方式安全登录</div>
          <div class="input empty" style="left:28px; top:66px; width:224px; height:34px; padding-left:13px; font-size:10px;">请输入手机号</div>
          <div class="cta" style="left:28px; top:126px; width:224px; height:34px; font-size:10px;">继续</div>
        </div>
        <div style="position:absolute; left:34px; top:20px; width:252px; height:36px; background:#FFFFFF; border-radius:8px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:11px; font-weight:600; color:#000; z-index:4; box-shadow:0 4px 14px rgba(0,0,0,.4);"><svg viewBox="15.7 13.2 24.6 24.6" style="width:14px;height:14px;"><path d="" data-apple fill="#000"/></svg>通过 Apple 登录</div>
      </div>
    </div>
    <div class="diffcard">
      <h3><span class="good">修复后</span>:ADR 圆钮回归社交行,白圆黑标无描边</h3>
      <div class="mini frame dark">
        <div class="panel" style="left:20px; top:16px; width:280px; height:160px; border-radius:16px;">
          <div class="title" style="top:14px; font-size:14px;">欢迎使用 CINDY</div>
          <div class="subtitle" style="top:34px; font-size:9px;">选择一种方式安全登录</div>
          <div class="input empty" style="left:28px; top:66px; width:224px; height:34px; padding-left:13px; font-size:10px;">请输入手机号</div>
          <div class="cta" style="left:28px; top:112px; width:224px; height:34px; font-size:10px;">继续</div>
        </div>
        <div style="position:absolute; left:118px; top:186px; display:flex; gap:26px;">
          <div class="circle apple" style="width:36px; height:36px;"></div>
          <div class="circle sso" style="width:36px; height:36px;"><img src="assets/sso-dark.svg" style="width:21px;height:21px;" alt=""></div>
        </div>
      </div>
    </div>
  </div>

  <div class="rowtitle">② 暗色 slogan 透明底</div>
  <div class="diffrow">
    <div class="diffcard">
      <h3><span class="bad">修复前</span>:资产烙死 #1F1F1E 实底,叠在立绘上成色块</h3>
      <div class="mini frame dark">
        <img src="assets/hero.png" style="position:absolute; left:35px; top:-20px; width:250px;" alt="">
        <img src="assets/slogan-dark.png" style="position:absolute; left:96px; top:150px; width:128px; background:#1F1F1E; padding:8px 10px;" alt="">
      </div>
    </div>
    <div class="diffcard">
      <h3><span class="good">修复后</span>:透明底,文字直接落在立绘上</h3>
      <div class="mini frame dark">
        <img src="assets/hero.png" style="position:absolute; left:35px; top:-20px; width:250px;" alt="">
        <img src="assets/slogan-dark.png" style="position:absolute; left:96px; top:150px; width:128px; padding:8px 10px;" alt="">
      </div>
    </div>
  </div>

  <div class="rowtitle">③ 错误提示位置(亮色,面板底部特写)</div>
  <div class="diffrow">
    <div class="diffcard">
      <h3><span class="bad">修复前</span>:顶对齐,紧贴「继续」按钮</h3>
      <div class="mini frame light">
        <div class="panel" style="left:20px; top:-96px; width:280px; height:262px; border-radius:16px;">
          <div class="input filled" style="left:28px; top:60px; width:224px; height:44px; padding-left:14px; font-size:12px;">138</div>
          <div class="cta" style="left:28px; top:130px; width:224px; height:44px; font-size:12px;">继续</div>
          <div class="err" style="top:176px; height:12px; font-size:11px;">请输入正确的手机号</div>
        </div>
        <div class="guide" style="top:78px;"></div><div class="guidelabel" style="top:66px;">按钮底 y380</div>
        <div class="guide" style="top:166px;"></div><div class="guidelabel" style="top:154px;">面板底 y440</div>
      </div>
    </div>
    <div class="diffcard">
      <h3><span class="good">修复后</span>:按钮底(380)→面板底(440)整段垂直居中</h3>
      <div class="mini frame light">
        <div class="panel" style="left:20px; top:-96px; width:280px; height:262px; border-radius:16px;">
          <div class="input filled" style="left:28px; top:60px; width:224px; height:44px; padding-left:14px; font-size:12px;">138</div>
          <div class="cta" style="left:28px; top:130px; width:224px; height:44px; font-size:12px;">继续</div>
          <div class="err" style="top:174px; height:88px; font-size:11px;">请输入正确的手机号</div>
        </div>
        <div class="guide" style="top:78px;"></div><div class="guidelabel" style="top:66px;">按钮底 y380</div>
        <div class="guide" style="top:166px;"></div><div class="guidelabel" style="top:154px;">面板底 y440</div>
      </div>
    </div>
  </div>
</div>

<div class="note" style="margin:0 28px 40px; max-width:800px; font-size:12px; color:#9a9a9a; line-height:2; border:1px solid #2e2e2e; border-radius:10px; padding:14px 18px;">
  <b style="color:#ddd;">审核要点</b><br>
  1. Apple 圆钮(全端):亮 <code style="color:#c9d1d9;background:#20242b;padding:1px 6px;border-radius:4px;">#000000</code> 圆底 + 白官方标 / 暗 <code style="color:#c9d1d9;background:#20242b;padding:1px 6px;border-radius:4px;">#FFFFFF</code> 圆底 + 黑官方标,<b style="color:#ddd;">无描边</b>;logo path 来自 ADR 官方素材逐字节原样(手机端单测与桌面 apple.svg 互为对比锚),viewBox 光学裁切,logo≈圆钮 46% 高。SSO 圆钮维持反相底 + 1px 描边,对照「只去 Apple 描边」拍板。Android 无 Apple 入口(iOS-only 判定不变)。<br>
  2. 暗色 slogan:桌面 slogan-dark 1x/@2x + 手机 @2x/@3x 共 4 份资产全部替换为透明底;亮色资产原本即透明,不动。<br>
  3. 错误提示:双端 ERROR_TEXT 带高 50→60,占满「主按钮底 380 → 面板底 440」并垂直居中;手机端 LoginErrorText 重构为定高 View + 内层 Text(iOS 不支持 textAlignVertical)。<br>
  4. 面板 / 输入框 / 主按钮 / 立绘为现网既有样式,非本 PR 改动,仅作语境;协议同意行、游客入口在另一 PR。
</div>

<script>
const APPLE_D = "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z";
document.querySelectorAll('.circle.apple').forEach(el => {
  el.innerHTML = '<svg viewBox="15.7 13.2 24.6 24.6" xmlns="http://www.w3.org/2000/svg" style="width:60%;height:60%;"><path d="' + APPLE_D + '" fill-rule="nonzero"/></svg>';
});
document.querySelectorAll('[data-apple]').forEach(el => el.setAttribute('d', APPLE_D));
function show(key, el){
  document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
  el.classList.add('active');
  ['phone','pad','desk','diff'].forEach(k => {
    document.getElementById('sec-' + k).classList.toggle('hidden', k !== key);
  });
}
</script>
</body>
</html>