Skip to content

Commit

Permalink
HomePage & Header/Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
chenranj committed Dec 23, 2024
1 parent 2faa8f7 commit 6a1d0c1
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 121 deletions.
138 changes: 69 additions & 69 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,155 +1,155 @@
- header: Get Started
- header: 快速入门
url: /getting-started/
# ------------------------------------------------------------------------------
- header: Blog
- header: 博客
url: /blog/
# ------------------------------------------------------------------------------
- header: Documentation
- header: 文档
url: /documentation/
# ------------------------------------------------------------------------------
- header: Packages
- header: 软件包
url: /packages/
# ------------------------------------------------------------------------------
- header: Tools
- header: 工具
url: /tools/
# ------------------------------------------------------------------------------
- header: Community
- header: 社区
url: /community/
pages:
- title: Overview
- title: 概览
url: /community/
- title: Swift Evolution
- title: Swift 演进
url: /swift-evolution/
- title: Diversity
- title: 多元化
url: /diversity/
sections:
- title: Mission
- title: 使命
name: mission
- title: Workgroup
- title: 工作组
name: workgroup
- title: Community Groups
- title: 社区小组
name: community-groups
- title: Events
- title: 活动
name: events
- title: Community-focused blog on Swift.org
- title: Swift.org 社区博客
name: community-focused-blog-on-swiftorg
- title: Community Participation
- title: 社区参与
name: community-participation
- title: Mentorship
- title: 导师计划
url: /mentorship/
sections:
- title: Current Program
- title: 当前项目
name: current-program
- title: Frequently Asked Questions
- title: 常见问题
name: frequently-asked-questions
- title: Contributing
- title: 贡献指南
url: /contributing/
sections:
- title: Answering Questions
- title: 解答问题
name: answering-questions
- title: Reporting Bugs
- title: 报告 Bug
name: reporting-bugs
- title: Triaging Bugs
- title: Bug 分类
name: triaging-bugs
- title: Blog Post Contributions
- title: 博客贡献
name: website-and-blog-post-contributions
- title: Swift Evolution
- title: Swift 演进
name: evolution-process
- title: Good First Issues
- title: 适合新手的议题
name: good-first-issues
- title: Contributing Code
- title: 代码贡献
name: contributing-code
- title: Adding External Library Dependencies
- title: 添加外部依赖库
name: adding-external-library-dependencies
- title: LLVM and Swift
- title: LLVM Swift
name: llvm-and-swift
- section: Steering Groups
- title: Language
- section: 指导小组
- title: 语言组
url: /language-steering-group/
sections:
- title: Charter
- title: 章程
name: charter
- title: Membership
- title: 成员构成
name: membership
- title: Decision making
- title: 决策机制
name: decision-making
- title: Communication
- title: 交流方式
name: communication
- title: Evolution process
- title: 演进流程
name: evolution-process
- title: Community participation
- title: 社区参与
name: community-participation
- title: Platform
- title: 平台组
url: /platform-steering-group/
sections:
- title: Charter
- title: 章程
name: charter
- title: Membership
- title: 成员构成
name: membership
- title: Evolution
- title: 演进
name: evolution
- title: Communication
- title: 交流方式
name: communication
- title: Platform Evolution process
- title: 平台演进流程
name: platform-evolution-process
- title: Community participation
- title: 社区参与
name: community-participation
- section: Workgroups
- title: Contributor Experience
- section: 工作组
- title: 贡献者体验
url: /contributor-experience-workgroup/
- title: Server
- title: 服务器
url: /sswg/
sections:
- title: Community Participation
- title: 社区参与
name: community-participation
- title: Governance
- title: 治理
name: governance
- title: Website workgroup
- title: 网站工作组
name: website-workgroup
- title: Website
- title: 网站
url: /website/
sections:
- title: Community Participation
- title: 社区参与
name: community-participation
- title: Governance
- title: 治理
name: governance
- title: Website workgroup
- title: 网站工作组
name: website-workgroup
- title: C++ Interoperability
- title: C++ 互操作性
url: /cxx-interop-workgroup/
sections:
- title: Charter
- title: 章程
name: charter
- title: Membership
- title: 成员构成
name: membership
- title: Communication
- title: 交流方式
name: communication
- title: Documentation
- title: 文档
url: /documentation-workgroup/
sections:
- title: Charter
- title: 章程
name: charter
- title: Membership
- title: 成员构成
name: membership
- title: Communication
- title: 交流方式
name: communication
- title: Community Participation
- title: 社区参与
name: community-participation
- title: Foundation
url: /foundation-workgroup/
- section: Governance
- title: Code of Conduct
- section: 管理
- title: 行为准则
url: /code-of-conduct/
- title: License
- title: 许可协议
url: /legal/license.html
- title: Security
- title: 安全
url: /support/security.html
sections:
- title: Security Process
- title: 安全流程
name: security-process
- title: Security Updates
- title: 安全更新
name: security-updates
# ------------------------------------------------------------------------------
- header: Install
- header: 安装
url: /install/
isCta: true
20 changes: 10 additions & 10 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<footer role="contentinfo">
<div class="footer-content">
{{ include.licenseinfo }}
<p class="copyright">Copyright © {{ site.time | date: '%Y' }} Apple Inc. All rights reserved.</p>
<p class="trademark">Swift and the Swift logo are trademarks of Apple Inc.</p>
<p class="copyright">版权所有 © {{ site.time | date: '%Y' }} SwiftGG 翻译组 | 翻译自 <a href="https://swift.org">Swift.org</a></p>
<p class="trademark">Swift Swift 标识是 Apple Inc. 的注册商标。</p>
<p class="privacy">
<a href="//www.apple.com/privacy/privacy-policy/">Privacy Policy</a>
<a href="//www.apple.com/legal/privacy/en-ww/cookies/">Cookies</a>
<a href="//www.apple.com/privacy/privacy-policy/">隐私政策(英文)</a>
<a href="//www.apple.com/legal/privacy/en-ww/cookies/">使用条款(英文)</a>
</p>
</div>
<div class="footer-other">
Expand All @@ -15,23 +15,23 @@
tabindex="0"
id="color-scheme-toggle"
>
<legend class="visuallyhidden">Color scheme preference</legend>
<legend class="visuallyhidden">主题选择器</legend>
<label for="scheme-light">
<input id="scheme-light" type="radio" name="color-scheme-preference" value="light">
<span class="color-scheme-toggle-label">Light</span>
<span class="color-scheme-toggle-label">明亮</span>
</label>
<label for="scheme-dark">
<input id="scheme-dark" type="radio" name="color-scheme-preference" value="dark">
<span class="color-scheme-toggle-label">Dark</span>
<span class="color-scheme-toggle-label">黑暗</span>
</label>
<label for="scheme-auto" id="scheme-auto-wrapper">
<input id="scheme-auto" type="radio" name="color-scheme-preference" value="auto">
<span class="color-scheme-toggle-label">Auto</span>
<span class="color-scheme-toggle-label">自动</span>
</label>
</form>
<aside>
<!-- <aside>
<a href="https://twitter.com/swiftlang" rel="nofollow" title="Follow @SwiftLang on Twitter"><i class="twitter"></i></a>
<a href="/atom.xml" title="Subscribe to Site Updates"><i class="feed"></i></a>
</aside>
</aside> -->
</div>
</footer>
24 changes: 23 additions & 1 deletion _includes/logo.html
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 191.186 59.391"><path fill="#F05138" d="M59.387 16.45a82.463 82.463 0 0 0-.027-1.792c-.035-1.301-.112-2.614-.343-3.9-.234-1.307-.618-2.523-1.222-3.71a12.464 12.464 0 0 0-5.453-5.452C51.156.992 49.941.609 48.635.374c-1.288-.232-2.6-.308-3.902-.343a85.714 85.714 0 0 0-1.792-.027C42.23 0 41.52 0 40.813 0H18.578c-.71 0-1.419 0-2.128.004-.597.004-1.195.01-1.792.027-.325.009-.651.02-.978.036-.978.047-1.959.133-2.924.307-.98.176-1.908.436-2.811.81A12.503 12.503 0 0 0 3.89 3.89a12.46 12.46 0 0 0-2.294 3.158C.992 8.235.61 9.45.374 10.758c-.231 1.286-.308 2.599-.343 3.9a85.767 85.767 0 0 0-.027 1.792C-.001 17.16 0 17.869 0 18.578v22.235c0 .71 0 1.418.004 2.128.004.597.01 1.194.027 1.791.035 1.302.112 2.615.343 3.901.235 1.307.618 2.523 1.222 3.71a12.457 12.457 0 0 0 5.453 5.453c1.186.603 2.401.986 3.707 1.22 1.287.232 2.6.31 3.902.344.597.016 1.195.023 1.793.027.709.005 1.417.004 2.127.004h22.235c.709 0 1.418 0 2.128-.004.597-.004 1.194-.011 1.792-.027 1.302-.035 2.614-.112 3.902-.343 1.306-.235 2.521-.618 3.707-1.222a12.461 12.461 0 0 0 5.453-5.452c.604-1.187.987-2.403 1.222-3.71.231-1.286.308-2.6.343-3.9.016-.598.023-1.194.027-1.792.004-.71.004-1.419.004-2.129V18.578c0-.71 0-1.419-.004-2.128z"/><path fill="#FFF" d="m47.06 36.66-.004-.004c.066-.224.134-.446.191-.675 2.465-9.821-3.55-21.432-13.731-27.546 4.461 6.048 6.434 13.374 4.681 19.78-.156.571-.344 1.12-.552 1.653-.225-.148-.51-.316-.89-.527 0 0-10.127-6.252-21.103-17.312-.288-.29 5.852 8.777 12.822 16.14-3.284-1.843-12.434-8.5-18.227-13.802.712 1.187 1.558 2.33 2.489 3.43C17.573 23.932 23.882 31.5 31.44 37.314c-5.31 3.25-12.814 3.502-20.285.003a30.646 30.646 0 0 1-5.193-3.098c3.162 5.058 8.033 9.423 13.96 11.97 7.07 3.039 14.1 2.833 19.336.05l-.004.007c.024-.016.055-.032.08-.047.214-.116.428-.234.636-.358 2.516-1.306 7.485-2.63 10.152 2.559.654 1.27 2.041-5.46-3.061-11.74z"/><path id="logotype" d="M81.93 38.542c.465 4.12 4.394 6.822 9.852 6.822 5.185 0 8.924-2.701 8.924-6.44 0-3.22-2.265-5.185-7.478-6.495l-5.048-1.282c-7.26-1.801-10.534-5.077-10.534-10.48 0-6.658 5.813-11.27 14.082-11.27 8.022 0 13.726 4.639 13.917 11.325h-5.32c-.41-4.093-3.74-6.604-8.734-6.604-4.94 0-8.378 2.538-8.378 6.249 0 2.892 2.13 4.612 7.369 5.95l4.202 1.09c8.133 1.993 11.462 5.159 11.462 10.863 0 7.259-5.759 11.816-14.928 11.816-8.514 0-14.327-4.53-14.763-11.543h5.376zM140.049 49.43h-5.35l-6.249-21.776h-.109L122.12 49.43h-5.348l-7.914-28.518h5.184l5.513 22.896h.11l6.221-22.896h5.021l6.277 22.896h.11l5.512-22.896h5.13L140.05 49.43zM151.39 13.244c0-1.718 1.419-3.11 3.138-3.11 1.746 0 3.165 1.392 3.165 3.11 0 1.72-1.419 3.139-3.165 3.139a3.157 3.157 0 0 1-3.139-3.139zm.545 7.669h5.213V49.43h-5.213V20.913zM191.186 25.116v-4.204h-5.513v-6.821h-5.185v6.821h-9.964v-2.51c.027-2.538 1.01-3.603 3.357-3.603.764 0 1.528.083 2.156.192v-4.094a18.193 18.193 0 0 0-2.756-.218c-5.568 0-7.915 2.32-7.915 7.642v2.591h-3.983v4.204h3.983V49.43h5.185V25.116H180.488v16.838c0 5.512 2.101 7.64 7.559 7.64 1.174 0 2.51-.082 3.111-.218v-4.257c-.355.055-1.392.137-1.965.137-2.428 0-3.52-1.147-3.52-3.712V25.116h5.513z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 263.97 60.1">
<g id="Layer_3" data-name="Layer 3">
<rect width="60.1" height="60.1" rx="16.88" ry="16.88" style="fill: #f05138;"/>
</g>
<g id="Layer_4" data-name="Layer 4">
<path d="M31.13,31.94c.04-.14.08-.27.12-.41,1.52-6.04-2.18-13.17-8.44-16.93,2.74,3.72,3.95,8.22,2.88,12.16-.1.35-.21.69-.34,1.02-.14-.09-.31-.19-.55-.32,0,0-6.23-3.84-12.97-10.64-.18-.18,3.6,5.4,7.88,9.92-2.02-1.13-7.64-5.23-11.2-8.48.44.73.96,1.43,1.53,2.11,2.97,3.77,6.85,8.42,11.5,12-3.26,2-7.88,2.15-12.47,0-1.14-.53-2.2-1.17-3.19-1.9,1.94,3.11,4.94,5.79,8.58,7.36,4.35,1.87,8.67,1.74,11.89.03h0s.02-.01.03-.02c.14-.08.29-.16.43-.24,1.55-.8,4.59-1.59,6.22,1.59.4.78,1.25-3.36-1.88-7.22,0,0,0,0,0,0Z" style="fill: #fff;"/>
<polygon points="41.32 21.09 39.55 18.18 36.24 18.97 38.45 16.39 36.68 13.48 39.82 14.79 42.04 12.21 41.76 15.6 44.9 16.91 41.59 17.7 41.32 21.09" style="fill: #fff;"/>
<polygon points="46.69 28.93 46.63 25.53 43.38 24.53 46.59 23.42 46.53 20.02 48.58 22.74 51.79 21.63 49.84 24.42 51.89 27.13 48.64 26.14 46.69 28.93" style="fill: #fff;"/>
<polygon points="45.36 39.26 46.38 36.01 43.61 34.04 47.01 34 48.02 30.76 49.11 33.98 52.51 33.95 49.78 35.97 50.86 39.2 48.09 37.23 45.36 39.26" style="fill: #fff;"/>
<polygon points="36.08 46.35 38.02 43.56 35.98 40.85 39.23 41.84 41.18 39.05 41.24 42.45 44.49 43.44 41.28 44.55 41.34 47.95 39.29 45.24 36.08 46.35" style="fill: #fff;"/>
</g>
<g id="logotype">
<g>
<path d="M80.41,49.3c-1.84,0-3.56-.22-5.15-.68-1.6-.45-3.02-1.08-4.27-1.9-1.25-.81-2.28-1.72-3.1-2.73-.82-1-1.34-2.06-1.59-3.17l6.97-2.07c.45,1.18,1.25,2.19,2.39,3.04,1.15.85,2.58,1.29,4.32,1.32,1.84.03,3.34-.36,4.5-1.19s1.74-1.9,1.74-3.22c0-1.14-.46-2.1-1.38-2.88s-2.18-1.38-3.77-1.79l-4.73-1.24c-1.77-.45-3.33-1.13-4.68-2.05-1.35-.92-2.41-2.05-3.17-3.4-.76-1.35-1.15-2.92-1.15-4.72,0-3.43,1.14-6.1,3.41-8.02s5.49-2.88,9.65-2.88c2.32,0,4.36.34,6.11,1.01,1.75.67,3.22,1.64,4.4,2.88,1.18,1.25,2.08,2.72,2.7,4.41l-6.92,2.13c-.42-1.18-1.18-2.18-2.29-3.01-1.11-.83-2.51-1.25-4.21-1.25s-3.1.4-4.08,1.19c-.99.8-1.48,1.92-1.48,3.37,0,1.14.39,2.04,1.17,2.7.78.66,1.85,1.16,3.2,1.51l4.79,1.19c3.12.76,5.55,2.13,7.28,4.1,1.73,1.97,2.6,4.17,2.6,6.59,0,2.15-.52,4.02-1.56,5.63-1.04,1.61-2.55,2.87-4.53,3.77-1.98.9-4.37,1.35-7.18,1.35Z"/>
<path d="M104.12,48.68l-8.84-25.96h6.97l8.27,25.96h-6.4ZM104.8,48.68l8.32-25.96h5.98l-8.22,25.96h-6.09ZM122.07,48.68l-8.12-25.96h5.93l8.27,25.96h-6.09ZM122.07,48.68l8.64-25.96h6.97l-8.84,25.96h-6.76Z"/>
<path d="M143.97,18.51c-1.04,0-1.96-.39-2.76-1.17-.79-.78-1.19-1.71-1.19-2.78s.4-2,1.19-2.78c.8-.78,1.72-1.17,2.76-1.17s2,.39,2.78,1.17c.78.78,1.17,1.71,1.17,2.78s-.39,2-1.17,2.78c-.78.78-1.71,1.17-2.78,1.17ZM140.54,48.68v-25.96h6.86v25.96h-6.86Z"/>
<path d="M150.99,28.22v-5.5h17.58v5.5h-17.58ZM155.31,48.68v-28.56c0-2.77.71-4.92,2.13-6.46s3.59-2.31,6.5-2.31c1.01,0,2.07.17,3.2.52,1.12.35,2.16.76,3.09,1.25l-2.55,4.93c-.55-.28-1.06-.49-1.51-.62-.45-.14-.87-.21-1.25-.21-.93,0-1.63.32-2.08.96-.45.64-.68,1.67-.68,3.09v27.42h-6.86Z"/>
<path d="M169.88,28.53v-5.81h17.58v5.81h-17.58ZM182.83,49.3c-2.88,0-5.05-.71-6.53-2.13-1.48-1.42-2.21-3.44-2.21-6.08V14.62h6.87v24.98c0,1.11.24,1.94.73,2.51.49.57,1.19.86,2.13.86.35,0,.73-.08,1.15-.24.42-.15.85-.39,1.3-.7l2.39,5.14c-.84.62-1.76,1.13-2.78,1.53-1.02.4-2.04.6-3.04.6Z"/>
<path d="M209.88,49.3c-3.71,0-6.99-.81-9.86-2.42-2.86-1.61-5.11-3.82-6.74-6.64s-2.44-6.07-2.44-9.74.81-6.91,2.44-9.74c1.63-2.82,3.88-5.04,6.74-6.65s6.15-2.42,9.86-2.42c2.22,0,4.27.33,6.14.99,1.87.66,3.53,1.57,4.97,2.73s2.65,2.48,3.62,3.97l-5.82,3.63c-.59-.93-1.36-1.76-2.32-2.49-.95-.73-2-1.3-3.15-1.71s-2.29-.62-3.44-.62c-2.29,0-4.32.53-6.09,1.58s-3.15,2.5-4.16,4.34c-1,1.83-1.51,3.96-1.51,6.39s.5,4.52,1.48,6.39c.99,1.87,2.38,3.33,4.19,4.39,1.81,1.06,3.88,1.58,6.24,1.58,1.84,0,3.48-.36,4.92-1.09,1.44-.73,2.57-1.75,3.41-3.07.83-1.32,1.25-2.84,1.25-4.57l6.76-1.04c0,3.43-.7,6.35-2.11,8.78-1.4,2.43-3.35,4.27-5.82,5.53-2.48,1.26-5.33,1.9-8.56,1.9ZM211.07,34.76v-5.56h15.29v4.42l-3.85,1.14h-11.45Z"/>
<path d="M247.48,49.3c-3.71,0-6.99-.81-9.86-2.42-2.86-1.61-5.11-3.82-6.74-6.64s-2.44-6.07-2.44-9.74.81-6.91,2.44-9.74c1.63-2.82,3.88-5.04,6.74-6.65s6.15-2.42,9.86-2.42c2.22,0,4.27.33,6.14.99,1.87.66,3.53,1.57,4.97,2.73s2.65,2.48,3.62,3.97l-5.82,3.63c-.59-.93-1.36-1.76-2.32-2.49-.95-.73-2-1.3-3.15-1.71s-2.29-.62-3.44-.62c-2.29,0-4.32.53-6.09,1.58s-3.15,2.5-4.16,4.34c-1,1.83-1.51,3.96-1.51,6.39s.5,4.52,1.48,6.39c.99,1.87,2.38,3.33,4.19,4.39,1.81,1.06,3.88,1.58,6.24,1.58,1.84,0,3.48-.36,4.92-1.09,1.44-.73,2.57-1.75,3.41-3.07.83-1.32,1.25-2.84,1.25-4.57l6.76-1.04c0,3.43-.7,6.35-2.11,8.78-1.4,2.43-3.35,4.27-5.82,5.53-2.48,1.26-5.33,1.9-8.56,1.9ZM248.68,34.76v-5.56h15.29v4.42l-3.85,1.14h-11.45Z"/>
</g>
</g>
</svg>
6 changes: 3 additions & 3 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1 id="logo">
</li>
{% endfor %}
</ul>
<button id="menu-toggle" class="menu-item menu-toggle open" aria-expanded="false" aria-label="Toggle Navigation Menu"></button>
<button id="menu-toggle" class="menu-item menu-toggle open" aria-expanded="false" aria-label="切换导航菜单"></button>
</nav>
</div>

Expand All @@ -60,7 +60,7 @@ <h1 id="logo">
{% endif %}

{% if nav.pages %}
<button class="section-toggle" aria-expanded="false" aria-label="Toggle {{ nav.header }} Section">
<button class="section-toggle" aria-expanded="false" aria-label="切换 {{ nav.header }} 栏目">
&#9663;
</button>
{% endif %}
Expand All @@ -86,4 +86,4 @@ <h1 id="logo">
{% endfor %}
</ul>
</nav>
</header>
</header>
Binary file added assets/images/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6a1d0c1

Please sign in to comment.