Skip to content

Commit d011de7

Browse files
steam version
1 parent 85ef519 commit d011de7

6 files changed

Lines changed: 17 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ import styles from './TopVisual.module.css'
77
import Image from 'next/image'
88
import {useEffect, useState} from 'react'
99
import useRedirect from '@/hooks/useRedirect'
10+
import {RiSteamFill} from 'react-icons/ri'
1011

1112
const TopVisual = () => {
1213
const t = useTranslations('home')
1314
const locale = useLocale()
1415
const {docsRedirect} = useRedirect()
16+
const webgalTerreSteamUrl = 'https://store.steampowered.com/app/2978410/WebGAL_Terre_Steam_Edition/'
1517

1618
const topVisualImagesData = [
1719
{
@@ -60,6 +62,9 @@ const TopVisual = () => {
6062
<Button large>
6163
<Link href={`/${locale}/download/`}>{t('nowDownload')}</Link>
6264
</Button>
65+
<Button large>
66+
<Link href={webgalTerreSteamUrl} target={'_blank'}><RiSteamFill />{t('steam')}</Link>
67+
</Button>
6368
<Button large>
6469
<Link href={docsRedirect('/')} target={'_blank'}>{t('viewDocument')}</Link>
6570
</Button>

app/[locale]/download/Download.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
margin-top: 8px;
5252
}
5353

54+
.steam-widget {
55+
width: 100%;
56+
max-width: 646px;
57+
height: 190px;
58+
border: 0;
59+
}
60+
5461
.release-note {
5562
@apply px-4 py-2 font-light;
5663
}

app/[locale]/download/components/DownloadWebgalTerre.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const DownloadWebgalTerre = () => {
1212

1313
const webgalTerreUrl = 'https://github.com/OpenWebGAL/WebGAL_Terre/releases'
1414
const webgalTerreApiUrl = 'https://api.github.com/repos/OpenWebGAL/WebGAL_Terre/releases/latest'
15+
const webgalTerreSteamWidgetUrl = 'https://store.steampowered.com/widget/2978410/'
1516

1617
const t = useTranslations('download')
1718
const locale = useLocale()
@@ -69,6 +70,7 @@ const DownloadWebgalTerre = () => {
6970
}
7071
</div>
7172
</div>
73+
<iframe title='WebGAL Terre Steam' src={webgalTerreSteamWidgetUrl} className={styles['steam-widget']} loading='lazy' />
7274
<div className={styles['card-button-gourp']}>
7375
<Button terre>
7476
<Link href={webgalTerreAssets?.releaseUrl ?? webgalTerreUrl} target={'_blank'}><RiGithubFill />{t('gitHubReleases')}</Link>

locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +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+
"steam": "Steam Edition",
3334
"viewDocument": "View help documentation",
3435
"sponsor": "Sponsor"
3536
},

locales/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"title-l2": "ビジュアルノベルを作成!",
3131
"subTitle": "WebGALを使えば、コードを一切書かずに、高機能で美しいインターフェースのビジュアルノベルゲームを作成できます。",
3232
"nowDownload": "今すぐダウンロード",
33+
"steam": "Steam 版",
3334
"viewDocument": "ヘルプドキュメントを見る",
3435
"sponsor": "スポンサー"
3536
},

locales/zh-cn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"title-l2": "何须会编程?",
3131
"subTitle": "无需编写任何代码,WebGAL 将帮助你制作出功能完备、界面美观的视觉小说游戏。",
3232
"nowDownload": "立即下载",
33+
"steam": "Steam 版",
3334
"viewDocument": "查看帮助文档",
3435
"sponsor": "赞助 WebGAL"
3536
},

0 commit comments

Comments
 (0)