Skip to content

Commit 3fe0ba2

Browse files
fix: home page button
1 parent 2c5554d commit 3fe0ba2

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

app/[locale]/components/Feat/Feat.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const Feat = () => {
1818
<div className={styles.info}>
1919
<p>{t('openSource.line0')}</p>
2020
<p>{t('openSource.line1')}</p>
21+
<a href={'https://github.com/OpenWebGAL/WebGAL'} target={'_blank'}>{t('openSource.repo')}</a>
2122
</div>
2223
</div>
2324
<div className={styles.card}>
@@ -40,4 +41,4 @@ const Feat = () => {
4041
)
4142
}
4243

43-
export default Feat
44+
export default Feat

app/[locale]/components/TopVisual/TopVisual.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ const TopVisual = () => {
5757
<h1 className={'text-5xl font-bold'} style={{display: 'block'}}>{t('title-l2')}</h1>
5858
<p className={'text-lg'}>{t('subTitle')}</p>
5959
<div className={'flex flex-row items-center gap-4 flex-wrap'}>
60-
<Button>
60+
<Button large>
6161
<Link href={`/${locale}/download/`}>{t('nowDownload')}</Link>
6262
</Button>
63-
<Button>
64-
<Link href={`https://docs.openwebgal.com${docsLocale}/sponsor/`}>{t('sponsor')}</Link>
65-
</Button>
66-
<Button>
63+
<Button large>
6764
<Link href={docsRedirect('/')} target={'_blank'}>{t('viewDocument')}</Link>
6865
</Button>
66+
<Button large>
67+
<Link href={`https://docs.openwebgal.com${docsLocale}/sponsor/`}>{t('sponsor')}</Link>
68+
</Button>
6969
</div>
7070
<div className={'flex flex-row justify-center items-center gap-4 pt-2'}>
7171
<a

components/Button/Button.module.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@
2222

2323
.btn-terre {
2424
@apply bg-terre
25-
}
25+
}
26+
27+
.btn-large {
28+
font-size: 125%;
29+
padding: 7px 15px;
30+
}

components/Button/Button.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styles from './Button.module.css'
22

33
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
44
terre?: boolean;
5+
large?: boolean;
56
children: React.ReactNode;
67
}
78

@@ -10,16 +11,16 @@ interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
1011
* @param terre 传入 terre 按钮将会变为 terre 配色
1112
* @returns
1213
*/
13-
const Button = ({ terre, children, ...attributes }: Props) => {
14+
const Button = ({ terre, large=false, children, ...attributes }: Props) => {
1415
return (
1516
<button
1617
type="button"
17-
className={`${styles.btn} ${terre ? styles['btn-terre'] : styles['btn-webgal']}`}
18+
className={`${styles.btn} ${terre ? styles['btn-terre'] : styles['btn-webgal']} ${large ? styles['btn-large'] :''}`}
1819
{...attributes}
1920
>
2021
{children}
2122
</button>
2223
)
2324
}
2425

25-
export default Button
26+
export default Button

locales/en.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"title-l2": "who needs coding?",
3131
"subTitle": "Without writing any code, WebGAL will help you create fully functional visual novels with beautiful UI.",
3232
"nowDownload": "Download",
33-
"viewDocument": "Documents",
33+
"viewDocument": "View help documentation",
3434
"sponsor": "Sponsor"
3535
},
3636
"games": {
@@ -69,7 +69,8 @@
6969
"openSource": {
7070
"title": "Open Source",
7171
"line0": "WebGAL and WebGAL Terre are licensed under the MPL-2.0",
72-
"line1": "Free to use for commercial and non-commercial projects"
72+
"line1": "Free to use for commercial and non-commercial projects",
73+
"repo": "View WebGAL source code repository"
7374
},
7475
"multiplatform": {
7576
"title": "Multi Platform",

locales/ja.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"title-l2": "ビジュアルノベルを作成!",
3131
"subTitle": "WebGALを使えば、コードを一切書かずに、高機能で美しいインターフェースのビジュアルノベルゲームを作成できます。",
3232
"nowDownload": "今すぐダウンロード",
33-
"viewDocument": "ドキュメントに移動",
33+
"viewDocument": "ヘルプドキュメントを見る",
3434
"sponsor": "スポンサー"
3535
},
3636
"games": {
@@ -69,7 +69,8 @@
6969
"openSource": {
7070
"title": "オープンソース & 商業利用フリー",
7171
"line0": "WebGAL および WebGAL Terre は MPL-2.0 の下でライセンスされている",
72-
"line1": "商用・非商用問わず無料"
72+
"line1": "商用・非商用問わず無料",
73+
"repo": "WebGAL ソースコードリポジトリを見る"
7374
},
7475
"multiplatform": {
7576
"title": "マルチプラットフォームのサポート",

locales/zh-cn.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"title-l2": "何须会编程?",
3131
"subTitle": "无需编写任何代码,WebGAL 将帮助你制作出功能完备、界面美观的视觉小说游戏。",
3232
"nowDownload": "立即下载",
33-
"viewDocument": "查看文档",
33+
"viewDocument": "查看帮助文档",
3434
"sponsor": "赞助 WebGAL"
3535
},
3636
"games": {
@@ -69,7 +69,8 @@
6969
"openSource": {
7070
"title": "开源免费",
7171
"line0": "WebGAL 和 WebGAL Terre 采用 MPL-2.0 开源许可",
72-
"line1": "可免费用于商业项目和非商业项目"
72+
"line1": "可免费用于商业项目和非商业项目",
73+
"repo": "查看 WebGAL 源代码仓库"
7374
},
7475
"multiplatform": {
7576
"title": "多平台支持",

0 commit comments

Comments
 (0)