提交记录修改www/src/components/CageHome.astro+2 −2看文件
修改www/src/styles/cage.css+40 −48看文件
| @@ -49,8 +49,8 @@ const canonical = new URL(pathFor(locale), Astro.site); | ||
| 49 | 49 | <section id="how" class="start-section"><div class="wrap"><div class="quick-start"><h2>{c.quickTitle}</h2><p>{c.quickText}</p><pre><code>{c.prompt}</code></pre><p class="small-note">{c.quickNote}</p></div><div class="section-heading"><h2 class="steps-title">{c.stepsTitle}</h2></div><div class="steps">{c.steps.map(([title,text],i)=><article><span class="step-number" dir="ltr">0{i+1}</span><h3>{title}</h3><p>{text}</p></article>)}</div><details class="first-look"><summary>{c.firstLookLabel}<span aria-hidden="true">+</span></summary><img src={`${base}first-run.jpg`} width="1230" height="692" alt={c.firstLookLabel} loading="lazy" /></details></div></section> |
| 50 | 50 | <section id="boundaries" class="boundaries wrap"><h2>{c.boundaryTitle}</h2><div class="boundary-list">{c.boundaries.map(([title,text])=><article><span aria-hidden="true">↔</span><div>{title && <h3>{title}</h3>}<p>{text}</p></div></article>)}</div></section> |
| 51 | 51 | <section id="download" class="download-section wrap"><div class="download-box"><img src={`${base}cage-icon.png`} width="84" height="84" alt="" /><span class="eyebrow">CLAUDE CAGE · ALPHA</span><h2>{c.downloadTitle}</h2><p>{c.downloadText}</p><a class="button" href={published.downloadURL}>{c.downloadLabel} ↗</a><div class="download-meta" dir="ltr"><span>v{published.version}</span><span>Apple Silicon</span><span>macOS 14+</span></div><p class="access-note">{c.downloadNote}</p><p class="access-note update-note">{c.updateNote}</p><a class="text-link" href={published.releaseURL}>{c.releaseNotesLabel} ↗</a></div></section> |
| 52 | 删除: <section class="community wrap"><div><h2>{c.communityTitle}</h2><p>{c.communityText}</p><div class="community-links"><a class="text-link" href={`${repo}/issues`}>{c.issuesLabel} ↗</a><a class="text-link" href={repo}>GitHub ↗</a></div></div><figure><a href={qr.src}><img src={qr.src} width={qr.width} height={qr.height} alt={c.group} loading="lazy" /></a><figcaption dir="ltr">{c.group}</figcaption></figure></section> | |
| 53 | 删除: <section class="faq wrap"><h2>{c.docsTitle}</h2><ul class="doc-links">{c.docs.map(doc => <li><a class="text-link" href={doc.href}>{doc.label} ↗</a><p>{doc.title}</p></li>)}</ul></section> | |
| 52 | 新增: <section class="community-docs wrap" aria-labelledby="docs-title"><h2 id="docs-title">{c.docsTitle}</h2><div class="docs-body"><div class="docs-content"><p class="community-intro">{c.communityText}</p><div class="community-links"><a class="text-link" href={`${repo}/issues`}>{c.issuesLabel} ↗</a><a class="text-link" href={repo}>GitHub ↗</a></div><ul class="doc-links">{c.docs.map(doc => <li><a class="text-link" href={doc.href}>{doc.label} ↗</a><p>{doc.title}</p></li>)}</ul></div><figure class="community-qr"><a href={qr.src}><img src={qr.src} width={qr.width} height={qr.height} alt={c.group} loading="lazy" /></a><figcaption dir="ltr">{c.group}</figcaption></figure></div></section> | |
| 53 | 新增: | |
| 54 | 54 | <section class="license wrap"><h2>{c.licenseTitle}</h2><p>{c.licenseText}</p></section> |
| 55 | 55 | </main> |
| 56 | 56 | <footer class="wrap"><a class="brand" href={pathFor(locale)}><img src={`${base}cage-icon.png`} width="28" height="28" alt="" />Claude Cage</a><div><a href={repo}>GitHub ↗</a><a href={`${repo}/blob/main/${locale === 'zh' ? 'README.md' : `README.${locale}.md`}`}>README ↗</a></div><small>{c.independent}</small></footer> |
| @@ -396,33 +396,12 @@ figcaption { | ||
| 396 | 396 | margin: 20px 0; |
| 397 | 397 | max-width: 650px; |
| 398 | 398 | } |
| 399 | 删除:.faq { | |
| 400 | 删除: padding-top: 95px; | |
| 401 | 删除: padding-bottom: 90px; | |
| 402 | 删除: display: grid; | |
| 403 | 删除: grid-template-columns: 1fr 1.25fr; | |
| 404 | 删除: gap: 65px; | |
| 405 | 删除:} | |
| 406 | 删除:.faq h2 { | |
| 407 | 删除: font-size: 29px; | |
| 408 | 删除:} | |
| 409 | 删除:.faq details { | |
| 410 | 删除: border-bottom: 1px solid var(--line); | |
| 411 | 删除:} | |
| 412 | 删除:.faq details:first-child { | |
| 413 | 删除: border-top: 1px solid var(--line); | |
| 414 | 删除:} | |
| 415 | 删除:.faq summary { | |
| 416 | 删除: cursor: pointer; | |
| 417 | 删除: font-size: 16px; | |
| 418 | 删除: padding: 22px 24px 22px 0; | |
| 419 | 删除: line-height: 1.5; | |
| 420 | 删除:} | |
| 421 | 删除:.faq p { | |
| 422 | 删除: padding: 0 0 24px; | |
| 423 | 删除: font-size: 14px; | |
| 424 | 删除: color: var(--muted); | |
| 425 | 删除:} | |
| 399 | 新增: | |
| 400 | 新增: | |
| 401 | 新增: | |
| 402 | 新增: | |
| 403 | 新增: | |
| 404 | 新增: | |
| 426 | 405 | details[open] summary { |
| 427 | 406 | color: var(--accent); |
| 428 | 407 | } |
| @@ -543,10 +522,7 @@ code { | ||
| 543 | 522 | .steps { |
| 544 | 523 | gap: 25px; |
| 545 | 524 | } |
| 546 | 删除: .faq { | |
| 547 | 删除: gap: 30px; | |
| 548 | 删除: grid-template-columns: 1fr 1.5fr; | |
| 549 | 删除: } | |
| 525 | 新增: | |
| 550 | 526 | .alpha { |
| 551 | 527 | display: none; |
| 552 | 528 | } |
| @@ -679,15 +655,8 @@ code { | ||
| 679 | 655 | .access-note br { |
| 680 | 656 | display: none; |
| 681 | 657 | } |
| 682 | 删除: .faq { | |
| 683 | 删除: grid-template-columns: 1fr; | |
| 684 | 删除: padding-top: 60px; | |
| 685 | 删除: padding-bottom: 55px; | |
| 686 | 删除: gap: 30px; | |
| 687 | 删除: } | |
| 688 | 删除: .faq h2 { | |
| 689 | 删除: font-size: 27px; | |
| 690 | 删除: } | |
| 658 | 新增: | |
| 659 | 新增: | |
| 691 | 660 | footer { |
| 692 | 661 | gap: 14px; |
| 693 | 662 | } |
| @@ -746,16 +715,16 @@ figure { margin: 0; } | ||
| 746 | 715 | .quick-start pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #faf8f4; border: 1px solid #dacebf; border-radius: 8px; padding: 24px; line-height: 1.8; margin: 25px 0; } |
| 747 | 716 | .steps-title { font-size: 29px; } |
| 748 | 717 | .update-note { margin-top: 0; } |
| 749 | 删除:.community { display: grid; grid-template-columns: 1fr 320px; gap: 85px; align-items: center; padding-top: 90px; } | |
| 750 | 删除:.community h2 { margin: 16px 0 24px; } | |
| 751 | 删除:.community p { color: var(--muted); max-width: 42em; } | |
| 718 | 新增: | |
| 719 | 新增: | |
| 720 | 新增: | |
| 752 | 721 | .community-links { display: flex; gap: 30px; margin-top: 25px; } |
| 753 | 删除:.community figure { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; } | |
| 754 | 删除:.community figcaption { text-align: center; } | |
| 722 | 新增: | |
| 723 | 新增: | |
| 755 | 724 | @media (max-width: 900px) { |
| 756 | 725 | .story-hero { gap: 30px; } |
| 757 | 726 | .story-copy h1 { font-size: 42px; } |
| 758 | 删除: .community { gap: 35px; grid-template-columns: 1fr 260px; } | |
| 727 | 新增: | |
| 759 | 728 | .nav nav { gap: 16px; } |
| 760 | 729 | .nav .brand { font-size: 21px; } |
| 761 | 730 | } |
| @@ -773,8 +742,8 @@ figure { margin: 0; } | ||
| 773 | 742 | .evidence-grid { grid-template-columns: 1fr; gap: 25px; } |
| 774 | 743 | .quick-start { padding-bottom: 45px; } |
| 775 | 744 | .quick-start pre { padding: 18px; font-size: 13px; } |
| 776 | 删除: .community { grid-template-columns: 1fr; gap: 30px; padding-top: 60px; } | |
| 777 | 删除: .community figure { max-width: 300px; } | |
| 745 | 新增: | |
| 746 | 新增: | |
| 778 | 747 | .community-links { flex-wrap: wrap; } |
| 779 | 748 | } |
| 780 | 749 | .language-switch { align-items: center; } |
| @@ -793,3 +762,26 @@ figure { margin: 0; } | ||
| 793 | 762 | [dir="rtl"] footer > div { margin-left: 0; margin-right: auto; } |
| 794 | 763 | [dir="rtl"] .quick-start pre { text-align: start; } |
| 795 | 764 | [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: normal; } |
| 765 | 新增:.community-docs { padding-top: 80px; padding-bottom: 80px; } | |
| 766 | 新增:.community-docs > h2 { margin-bottom: 32px; } | |
| 767 | 新增:.docs-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 48px; align-items: start; } | |
| 768 | 新增:.community-intro { max-width: 52em; color: var(--muted); } | |
| 769 | 新增:.community-docs .community-links { margin-top: 20px; } | |
| 770 | 新增:.community-docs .doc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; margin-top: 36px; } | |
| 771 | 新增:.community-docs .doc-links li { padding: 18px 0 0; } | |
| 772 | 新增:.community-docs .doc-links p { line-height: 1.7; } | |
| 773 | 新增:.community-qr { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; } | |
| 774 | 新增:.community-qr figcaption { padding: 12px; font-size: 11px; } | |
| 775 | 新增:@media (max-width: 1000px) { | |
| 776 | 新增: .docs-body { grid-template-columns: minmax(0, 1fr) 200px; gap: 30px; } | |
| 777 | 新增: .community-docs .doc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |
| 778 | 新增:} | |
| 779 | 新增:@media (max-width: 640px) { | |
| 780 | 新增: .community-docs { padding-top: 60px; padding-bottom: 55px; } | |
| 781 | 新增: .docs-body { grid-template-columns: 1fr; } | |
| 782 | 新增: .community-docs .doc-links { column-gap: 22px; } | |
| 783 | 新增: .community-qr { width: 200px; justify-self: center; } | |
| 784 | 新增:} | |
| 785 | 新增:@media (max-width: 360px) { | |
| 786 | 新增: .community-docs .doc-links { grid-template-columns: 1fr; } | |
| 787 | 新增:} | |

