Skip to content

Commit 4021aae

Browse files
authored
Merge pull request #50 from nini22P/dev
add game, optimize image
2 parents 4a0baef + 6422295 commit 4021aae

19 files changed

+39
-21
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ const TopVisual = () => {
1616
const topVisualImagesData = [
1717
{
1818
title: 'game',
19-
src: '/images/game.png',
19+
src: '/images/game.webp',
2020
},
2121
{
2222
title: 'terre',
23-
src: '/images/terre.png',
23+
src: '/images/terre.webp',
2424
},
2525
{
2626
title: 'title',
27-
src: '/images/title.png',
27+
src: '/images/title.webp',
2828
},
2929
]
3030

components/GameCard/GameCard.module.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
.card {
2-
@apply bg-white drop-shadow rounded-md transition-transform;
2+
@apply bg-white drop-shadow rounded-md transition-transform duration-200;
33
}
44

55
.card:hover {
6-
@apply drop-shadow-md;
6+
@apply drop-shadow-md translate-y-[-2px];
77
}
88

99
.link {
1010
@apply flex flex-col items-center;
1111
}
1212

1313
.imageContainer {
14-
@apply rounded-t-md aspect-video bg-gray-100;
14+
@apply rounded-t-md aspect-video bg-gray-100 overflow-hidden;
1515
width: -moz-available;
1616
width: -webkit-fill-available;
1717
}

data/games.ts

+12-4
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,38 @@ export const games: Game[] = [
4141
developer: 'WasabiStone',
4242
releaseDate: '2023-11-05',
4343
url: 'https://store.steampowered.com/app/2645190/Agnostic_Requiem/',
44-
cover: 'agnostic-requiem.png',
44+
cover: 'agnostic-requiem.webp',
4545
},
4646
{
4747
id: 'safe-house',
4848
title: 'Safe House',
4949
developer: 'HuangZeXin',
5050
releaseDate: '2023-12-30',
5151
url: 'https://store.steampowered.com/app/2707580/Safe_House/',
52-
cover: 'safe-house.png',
52+
cover: 'safe-house.webp',
5353
},
5454
{
5555
id: 'fayanshideshiyan',
5656
title: '法言使的誓言',
5757
developer: '醉未了',
5858
releaseDate: '2024-02-12',
5959
url: 'https://www.bilibili.com/video/BV1ru4m1K7uj/',
60-
cover: 'fayanshideshiyan.png',
60+
cover: 'fayanshideshiyan.webp',
6161
},
6262
{
6363
id: 'qinglian',
6464
title: '青恋',
6565
developer: '阿牛, NICE',
6666
releaseDate: '2024-06-28',
6767
url: 'https://store.steampowered.com/app/3043160/_/',
68-
cover: 'ql.png',
68+
cover: 'ql.webp',
6969
},
70+
{
71+
id: 'xinxi',
72+
title: '信息',
73+
developer: '三玖谁顶的住啊',
74+
releaseDate: '2024-07-10',
75+
url: 'https://www.bilibili.com/video/BV1aH4y1w7g4/',
76+
cover: 'xinxi.webp',
77+
}
7078
]

package-lock.json

+21-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/images/game.png

-3.83 MB
Binary file not shown.

public/images/game.webp

385 KB
Binary file not shown.
-432 KB
Binary file not shown.
66.9 KB
Binary file not shown.
-516 KB
Binary file not shown.
73.7 KB
Binary file not shown.

public/images/games/ql.png

-85.3 KB
Binary file not shown.

public/images/games/ql.webp

22.1 KB
Binary file not shown.

public/images/games/safe-house.png

-437 KB
Binary file not shown.

public/images/games/safe-house.webp

61.4 KB
Binary file not shown.

public/images/games/xinxi.webp

61.3 KB
Binary file not shown.

public/images/terre.png

-973 KB
Binary file not shown.

public/images/terre.webp

45 KB
Binary file not shown.

public/images/title.png

-4.2 MB
Binary file not shown.

public/images/title.webp

-107 KB
Binary file not shown.

0 commit comments

Comments
 (0)