Skip to content

Commit c6933d0

Browse files
committed
feat: center images on index.astro
1 parent 6a8c31e commit c6933d0

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

src/pages/index.astro

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import DownloadLink from "../components/ui/DownloadLink.astro";
2929
<img
3030
src="/img/screenshots/ModpackInstallLight.png"
3131
alt="Prism Launcher screenshot showing the modpack installation user-interface"
32+
class="mx-auto"
3233
/>
3334
</picture>
3435
<picture>
@@ -39,6 +40,7 @@ import DownloadLink from "../components/ui/DownloadLink.astro";
3940
<img
4041
src="/img/screenshots/ModpackUpdateLight.png"
4142
alt="Prism Launcher screenshot showing the modpack updating user-interface"
43+
class="mx-auto"
4244
/>
4345
</picture>
4446
</div>
@@ -58,6 +60,7 @@ import DownloadLink from "../components/ui/DownloadLink.astro";
5860
<img
5961
src="/img/screenshots/ModInstallLight.png"
6062
alt="Prism Launcher screenshot showing the mod installation user-interface"
63+
class="mx-auto"
6164
/>
6265
</picture>
6366
<picture>
@@ -68,6 +71,7 @@ import DownloadLink from "../components/ui/DownloadLink.astro";
6871
<img
6972
src="/img/screenshots/ModUpdateLight.png"
7073
alt="Prism Launcher screenshot showing the mod updating user-interface"
74+
class="mx-auto"
7175
/>
7276
</picture>
7377
</div>
@@ -78,37 +82,35 @@ import DownloadLink from "../components/ui/DownloadLink.astro";
7882
each with its own settings, mods, and configurations. This means you can
7983
easily switch between different setups without any issues.
8084
</p>
81-
<div class="my-6">
82-
<picture>
83-
<source
84-
media="(prefers-color-scheme: dark)"
85-
srcset="/img/screenshots/PropertiesDark.png"
86-
/>
87-
<img
88-
src="/img/screenshots/PropertiesLight.png"
89-
alt="Prism Launcher screenshot showing the instance management user-interface"
90-
/>
91-
</picture>
92-
</div>
85+
<picture>
86+
<source
87+
media="(prefers-color-scheme: dark)"
88+
srcset="/img/screenshots/PropertiesDark.png"
89+
/>
90+
<img
91+
src="/img/screenshots/PropertiesLight.png"
92+
alt="Prism Launcher screenshot showing the instance management user-interface"
93+
class="mx-auto"
94+
/>
95+
</picture>
9396

9497
<h3>Lightweight and Customizable</h3>
9598
<p>
9699
You don't need an embedded web browser as a game launcher. Prism is built
97100
with the Qt toolkit, requiring very few system resources to run. It also
98101
lets you customize the menu and supports custom themes.
99102
</p>
100-
<div class="my-6">
101-
<picture>
102-
<source
103-
media="(prefers-color-scheme: dark)"
104-
srcset="/img/screenshots/CustomizeDark.png"
105-
/>
106-
<img
107-
src="/img/screenshots/CustomizeLight.png"
108-
alt="Prism Launcher screenshot showing a themed user-interface"
109-
/>
110-
</picture>
111-
</div>
103+
<picture>
104+
<source
105+
media="(prefers-color-scheme: dark)"
106+
srcset="/img/screenshots/CustomizeDark.png"
107+
/>
108+
<img
109+
src="/img/screenshots/CustomizeLight.png"
110+
alt="Prism Launcher screenshot showing a themed user-interface"
111+
class="mx-auto"
112+
/>
113+
</picture>
112114

113115
<h2>I want that!</h2>
114116
<p>

0 commit comments

Comments
 (0)