Skip to content

Commit 15251e2

Browse files
feat: add slogan
1 parent 3435db0 commit 15251e2

File tree

5 files changed

+64
-47
lines changed

5 files changed

+64
-47
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,62 @@
11
.topVisual {
2-
@apply pt-16 pb-8;
2+
@apply pt-16 pb-8;
33
}
44

55
@media screen and (max-width: 768px) {
6-
.topVisual {
7-
@apply pt-16 pb-4;
8-
}
6+
.topVisual {
7+
@apply pt-16 pb-4;
8+
}
99
}
1010

1111
.background {
12-
position: fixed;
13-
top: -100vh;
14-
left: -100%;
15-
z-index: -1;
16-
height: 300vh;
17-
width: 300%;
18-
background: linear-gradient(135deg, rgba(0, 93, 175, 0.1), rgba(181, 73, 91, 0.1));
19-
animation: rotatebg 10s infinite linear;
12+
position: fixed;
13+
top: -100vh;
14+
left: -100%;
15+
z-index: -1;
16+
height: 300vh;
17+
width: 300%;
18+
background: linear-gradient(135deg, rgba(0, 93, 175, 0.1), rgba(181, 73, 91, 0.1));
19+
animation: rotatebg 10s infinite linear;
2020
}
2121

2222
@keyframes rotatebg {
23-
0% {
24-
transform: rotate(0deg);
25-
}
23+
0% {
24+
transform: rotate(0deg);
25+
}
2626

27-
100% {
28-
transform: rotate(360deg);
29-
}
27+
100% {
28+
transform: rotate(360deg);
29+
}
3030
}
3131

3232
.container {
33-
@apply max-w-screen-xl mx-auto h-full p-4;
34-
display: flex;
35-
flex-direction: column;
36-
justify-content: flex-end;
37-
overflow: hidden;
33+
@apply max-w-screen-xl mx-auto h-full p-4;
34+
display: flex;
35+
/*flex-direction: column;*/
36+
justify-content: center;
37+
align-items: flex-start;
38+
flex-wrap: wrap;
39+
overflow: hidden;
40+
margin-top: 2rem;
41+
}
42+
43+
.titlearea {
44+
display: flex;
45+
flex-direction: column;
46+
align-items: flex-start;
47+
gap: 0.8rem;
48+
text-align: left;
49+
padding: 4px 0 0 0;
50+
max-width: 350px;
3851
}
3952

4053
.card {
41-
@apply max-w-screen-md mx-auto drop-shadow rounded-md;
42-
transform: translateY(4px);
43-
/* transform: translateY(calc(768px/120)); */
44-
/* max-height: calc(768px/3); */
45-
transition: 0.35s ease-out;
46-
float: left;
54+
@apply max-w-screen-md mx-auto drop-shadow rounded-md;
55+
transform: translateY(4px);
56+
/* transform: translateY(calc(768px/120)); */
57+
/* max-height: calc(768px/3); */
58+
transition: 0.35s ease-out;
59+
float: left;
4760
}
4861

4962
/* @media screen and (max-width: 768px) {
@@ -54,9 +67,9 @@
5467
} */
5568

5669
.card:hover {
57-
transform: none;
70+
transform: none;
5871
}
5972

6073
.card-image {
61-
@apply h-full w-full object-cover rounded-md;
62-
}
74+
@apply h-full w-full object-cover rounded-md;
75+
}

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ const TopVisual = () => {
4848
{/* <Image src={'/images/main.webp'} fill alt='background' className={'object-cover object-center'} /> */}
4949
</div>
5050
<div className={styles.container}>
51-
<div className={'flex flex-col item-center gap-2 pb-8 pt-20 text-center'}>
52-
<h1 className={'text-5xl font-bold'}>{t('title')}</h1>
53-
<p className={'text-xl font-medium'}>{t('subTitle')}</p>
54-
<div className={'flex flex-row justify-center items-center gap-4'}>
51+
<div className={styles.titlearea}>
52+
<h1 className={'text-5xl font-bold'} style={{display: 'block'}}>{t('title-l1')}</h1>
53+
<h1 className={'text-5xl font-bold'} style={{display: 'block'}}>{t('title-l2')}</h1>
54+
<p className={'text-lg'}>{t('subTitle')}</p>
55+
<div className={'flex flex-row items-center gap-4 flex-wrap'}>
5556
<Button>
5657
<Link href={`/${locale}/download/`}>{t('nowDownload')}</Link>
5758
</Button>
@@ -62,7 +63,7 @@ const TopVisual = () => {
6263
<Link href={docsRedirect('/')} target={'_blank'}>{t('viewDocument')}</Link>
6364
</Button>
6465
</div>
65-
<div className={'flex flex-row justify-center items-center gap-4 pt-6'}>
66+
<div className={'flex flex-row justify-center items-center gap-4 pt-2'}>
6667
<a
6768
href="https://www.producthunt.com/posts/webgal?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-webgal"
6869
target="_blank"><img
@@ -93,4 +94,4 @@ const TopVisual = () => {
9394
)
9495
}
9596

96-
export default TopVisual
97+
export default TopVisual

locales/en.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
"blog": "BLOG"
2727
},
2828
"home": {
29-
"title": "WebGAL",
30-
"subTitle": "The new web-based Visual Novel Engine",
29+
"title-l1": "Creating visual novels, ",
30+
"title-l2": "who needs coding?",
31+
"subTitle": "Without writing any code, WebGAL will help you create fully functional visual novels with beautiful UI.",
3132
"nowDownload": "Download",
3233
"viewDocument": "Documents",
3334
"sponsor": "Sponsor"
@@ -143,4 +144,4 @@
143144
"bilibili": "Bilibili",
144145
"links": "Links"
145146
}
146-
}
147+
}

locales/ja.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
"blog": "ブログ"
2727
},
2828
"home": {
29-
"title": "WebGAL",
30-
"subTitle": "未だかつてない Web ベースビジュアルノベルエンジン",
29+
"title-l1": "プログラミング不要で、",
30+
"title-l2": "ビジュアルノベルを作成!",
31+
"subTitle": "WebGALを使えば、コードを一切書かずに、高機能で美しいインターフェースのビジュアルノベルゲームを作成できます。",
3132
"nowDownload": "今すぐダウンロード",
3233
"viewDocument": "ドキュメントに移動",
3334
"sponsor": "スポンサー"
@@ -143,4 +144,4 @@
143144
"bilibili": "Bilibili",
144145
"links": "フレンドリーリンク"
145146
}
146-
}
147+
}

locales/zh-cn.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
"blog": "博客"
2727
},
2828
"home": {
29-
"title": "WebGAL",
30-
"subTitle": "全新的网页端视觉小说引擎",
29+
"title-l1": "创作视觉小说,",
30+
"title-l2": "何须会编程?",
31+
"subTitle": "无需编写任何代码,WebGAL 将帮助你制作出功能完备、界面美观的视觉小说游戏。",
3132
"nowDownload": "立即下载",
3233
"viewDocument": "查看文档",
3334
"sponsor": "赞助 WebGAL"
@@ -143,4 +144,4 @@
143144
"bilibili": "哔哩哔哩",
144145
"links": "友情链接"
145146
}
146-
}
147+
}

0 commit comments

Comments
 (0)