Skip to content

Commit

Permalink
chore: Update PvZ2 Gardendless official website with English localiza…
Browse files Browse the repository at this point in the history
…tion and content updates
  • Loading branch information
Gzh0821 committed Jul 23, 2024
1 parent 77a4bf7 commit 3b5aad8
Show file tree
Hide file tree
Showing 20 changed files with 897 additions and 84 deletions.
10 changes: 5 additions & 5 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default defineUserConfig({
['link', { rel: 'stylesheet', href: '/styles/custom.css' }]
],
locales: {
// "/en/": {
// lang: "en-US",
// title: "Docs Demo",
// description: "A docs demo for vuepress-theme-hope",
// },
"/en/": {
lang: "en-US",
title: "PvZ2 Gardendless Official Website|A completely remastered PVZ2 experience",
description: "Official website of PvZ2 Gardendless. PVZ2 Gardendless is a complete remake of Plants vs Zombies 2.",
},
"/": {
lang: "zh-CN",
title: "PvZ2 Gardendless 官方网站|完全重置的PVZ2体验",
Expand Down
60 changes: 33 additions & 27 deletions src/.vuepress/navbar/en.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
import { navbar } from "vuepress-theme-hope";

export const enNavbar = navbar([
"/",
"/portfolio",
"/demo/",
{
text: "Guide",
icon: "lightbulb",
prefix: "/guide/",
children: [
{
text: "Bar",
icon: "lightbulb",
prefix: "bar/",
children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
},
{
text: "Foo",
icon: "lightbulb",
prefix: "foo/",
children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
},
],
},
{
text: "V2 Docs",
icon: "book",
link: "https://theme-hope.vuejs.press/",
},
"/en/",
"/en/download/",
"/en/guide/",
"/en/instructions/",
"/en/contribution/",
{ text: "Online Play", link: "https://pvz2-test.gaozih.com", icon: "circle-play" },
// "/",
// "/portfolio",
// "/demo/",
// {
// text: "Guide",
// icon: "lightbulb",
// prefix: "/guide/",
// children: [
// {
// text: "Bar",
// icon: "lightbulb",
// prefix: "bar/",
// children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
// },
// {
// text: "Foo",
// icon: "lightbulb",
// prefix: "foo/",
// children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
// },
// ],
// },
// {
// text: "V2 Docs",
// icon: "book",
// link: "https://theme-hope.vuejs.press/",
// },
]);
46 changes: 25 additions & 21 deletions src/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
import { sidebar } from "vuepress-theme-hope";

export const enSidebar = sidebar({
"/": [
"",
"portfolio",
{
text: "Demo",
icon: "laptop-code",
prefix: "demo/",
link: "demo/",
children: "structure",
},
{
text: "Docs",
icon: "book",
prefix: "guide/",
children: "structure",
},
{
text: "Slides",
icon: "person-chalkboard",
link: "https://plugin-md-enhance.vuejs.press/guide/content/revealjs/demo.html",
},
"/en/download/": "structure",
"/en/instructions/": "structure",
"/en/guide/": "structure",
"/en/contribution/": "structure",
"/en/": [
// "",
// "portfolio",
// {
// text: "Demo",
// icon: "laptop-code",
// prefix: "demo/",
// link: "demo/",
// children: "structure",
// },
// {
// text: "Docs",
// icon: "book",
// prefix: "guide/",
// children: "structure",
// },
// {
// text: "Slides",
// icon: "person-chalkboard",
// link: "https://plugin-md-enhance.vuejs.press/guide/content/revealjs/demo.html",
// },
],
});
6 changes: 3 additions & 3 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export default hopeTheme({
"/en/": {
// navbar
navbar: enNavbar,

navbarTitle: "PvZ2 Gardendless",
// sidebar
sidebar: enSidebar,

footer: "Default footer",

footer: "Official website of PvZ2 Gardendless: pvzge.com",
copyright: "Copyright 2021-2024 <a href=\"https://gaozih.com\">Gaozih</a> © All Rights Reserved.",
displayFooter: true,

metaLocales: {
Expand Down
5 changes: 5 additions & 0 deletions src/contribution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ pageInfo: false
无论是帮助查验代码、发现问题、提出建议、撰写文档、社区管理、参与讨论,还是分享经验。

我们欢迎您加入我们的社区,一起为《PvZ2 Gardendless》的开发贡献力量,感谢您对社区建设的支持!
> [!important]
> 我们目前为止没有建立任何官方的PvZ2 Gardendless的Discord群组和Youtube频道。如果有人向您推荐这些平台的链接,请注意确认其真实性。
>
> 我们后续的社区活动和信息发布,包括建立的新官方频道和群组等,会在本网站上发布,请您时刻关注本网站和该页面。

> [!tip]
> 评论系统正在试用,您可以在[问题反馈](feedback.md)的评论区反馈相关bug和其它问题,评论系统需要登录Github账号。
Expand Down
38 changes: 22 additions & 16 deletions src/en/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
---
home: true
icon: home
title: 项目主页
heroImage: https://theme-hope-assets.vuejs.press/logo.svg
comment: false
title: Home Page
heroImage: /pvz_logo.png
heroImageStyle:
border-radius: 20%
border: "5px solid rgba(255, 255, 255, 0.3)"
box-shadow: "0 0 12px rgba(0, 0, 0, 0.2)"
backdrop-filter: "blur(10px)"
background: "rgba(255, 255, 255, 0.1)"
bgImage: /assets/image/background.jpeg
bgImageDark: https://theme-hope-assets.vuejs.press/bg/6-dark.svg
bgImageStyle:
background-attachment: fixed
opacity: 0.5
filter: brightness(60%)
opacity: 0.5
heroFullScreen: true
heroText: PvZ2 Gardendless
tagline: 你可以在这里放置或是整个项目的描述。
tagline: A completely remastered PvZ2 game for all platforms.
actions:
- text: 使用指南
icon: lightbulb
link: ./demo/
- text: Download
icon: circle-down
link: ./download/
type: primary

- text: 文档
- text: Guide
link: ./guide/

- text: Community and feedback
icon: comment
link: ./contribution/

# highlights:
# - header: 易于安装
# image: /assets/image/box.svg
Expand Down Expand Up @@ -317,11 +328,6 @@ actions:
# details: 让你的网站更像一个 APP
# link: https://theme-hope.vuejs.press/zh/guide/advanced/pwa.html

copyright: false
footer: 使用 <a href="https://theme-hope.vuejs.press/zh/" target="_blank">VuePress Theme Hope</a> 主题 | MIT 协议, 版权所有 © 2019-至今 Mr.Hope
# copyright: "Copyright 2021-2024 Gaozih © All Rights Reserved."
# footer: "游戏仅供学习交流,禁止商用,非授权禁止搬运"
---
<!-- 这是项目主页的案例。你可以在这里放置你的主体内容。
想要使用此布局,你需要在页面 front matter 中设置 `home: true`。
配置项的相关说明详见 [项目主页配置](https://theme-hope.vuejs.press/zh/guide/layout/home/)。 -->
14 changes: 14 additions & 0 deletions src/en/contribution/Acknowledgement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 鸣谢
icon: heart
pageInfo: false
comment: false
index: true
order: 2
---
- Presented by @南Garden in both Bilibili and Youtube.",
- Animation by @南Garden.",
- Textures from vanilla and by @南Garden, @AIM752,@索菲sophine from Bilibili and @卡爾小枇杷 from Bilibili(@loquatceres16 from Youtube).",
- Music from vanilla and by @某不科学的三叶草, @29贵妇Lady_29, @刘振宇Hubery in Bilibili.",
- This Website and Web App are developed and maintained by @绫墨依言.
- Speicial thanks to everyone in the chat group of QQ and all the players who have contributed to the game.
45 changes: 45 additions & 0 deletions src/en/contribution/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: 用户社区
index: true
order: 1
icon: comment
comment: false
pageInfo: false
---
我们深知,一个优秀的游戏开发项目离不开社区的支持。我们非常感谢所有为项目做出贡献的用户,
无论是帮助查验代码、发现问题、提出建议、撰写文档、社区管理、参与讨论,还是分享经验。

我们欢迎您加入我们的社区,一起为《PvZ2 Gardendless》的开发贡献力量,感谢您对社区建设的支持!
> [!important]
> 我们目前为止没有建立任何官方的PvZ2 Gardendless的Discord群组和Youtube频道。如果有人向您推荐这些平台的链接,请注意确认其真实性。
>
> 我们后续的社区活动和信息发布,包括建立的新官方频道和群组等,会在本网站上发布,请您时刻关注本网站和该页面。
> [!tip]
> 评论系统正在试用,您可以在[问题反馈](feedback.md)的评论区反馈相关bug和其它问题,评论系统需要登录Github账号。
>
> 如果喜欢本网站和游戏,欢迎你在[Github](https://github.com/Gzh0821/pvzg_site)上收藏/Star本网站仓库!
<div class="vp-card-container">
<VPCard
title="QQ活跃聊天群"
desc="群号:980405270,适合想提供帮助,分享攻略和参与讨论的玩家"
logo="/assets/image/qq.svg"
link="https://qm.qq.com/q/MIqVcRAg8u"
background="rgba(245, 158, 0, 0.15)"
/>
<VPCard
title="QQ公告群-4"
desc="群号:981880465,适合潜水和获取最新版本的信息"
logo="/assets/image/qq.svg"
link="https://qm.qq.com/q/8LkQioyGI2"
background="rgba(228, 0, 54, 0.15)"
/>
<VPCard
title="Github仓库"
desc="对于bug的反馈和功能的建议,可以在该仓库上提交issue,欢迎您Star本仓库!"
logo="/assets/image/github-dark.svg"
link="https://github.com/Gzh0821/pvzg_site"
background="rgba(102, 204, 255, 0.15)"
/>
</div>
19 changes: 19 additions & 0 deletions src/en/contribution/Sponsor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 赞助者
icon: fa-solid fa-hand-holding-heart
pageInfo: false
comment: false
index: true
order: 3
---

## 《PvZ2 Gardendless》官网的赞助者

特别感谢 <HopeIcon icon="fa-brands fa-bilibili"/> [@普通的一名博客 plunt](https://space.bilibili.com/451272694) 赞助本网站域名。

<BiliBili bvid="BV1HE4m1d7nt"/>

《PvZ2 Gardendless》游戏的开发者 <HopeIcon icon="fa-brands fa-bilibili"/> [@南Garden](https://space.bilibili.com/355909245)对本网站的开发和维护提供了大量的支持。

感谢所有对《PvZ2 Gardendless》游戏和官网的支持!

26 changes: 26 additions & 0 deletions src/en/contribution/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: 协助开发
icon: code
pageInfo: false
comment: false
index: true
order: 3
---

## 《PvZ2 Gardendless》官方网站开发
本网站是一个开源项目,使用`Apache 2.0`协议开源,我们广泛地接受来自开源社区的反馈。



如果你愿意贡献你的代码,请阅读本页的TODO LIST,并提交PR到[项目仓库](https://github.com/Gzh0821/pvzg_site)

#### TODO LIST

- [ ] 优化网站性能
- [ ] 优化网站UI
- [ ] 优化网站交互
- [ ] 增加植物和僵尸图鉴
- [ ] 增加API接口
- [ ] 增加高速下载链接
- [ ] 标准化开发文档和开发流程
- [ ] i18n国际化网站支持(英文翻译)
12 changes: 12 additions & 0 deletions src/en/contribution/feedback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 问题反馈
icon: comments
pageInfo: false
index: true
order: 5
---

> [!tip]
> 评论系统正在试用,您可以在本页面的评论区反馈相关bug和其它问题,评论系统需要登录Github账号。
>
> 如果喜欢本网站和游戏,欢迎你在[Github](https://github.com/Gzh0821/pvzg_site)上收藏/Star本网站仓库!
Loading

0 comments on commit 3b5aad8

Please sign in to comment.