Skip to content

Commit 14ed169

Browse files
authored
reduce image size of iOS / Android screenshots on homepage (#465)
1 parent ea9731d commit 14ed169

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed
1.1 MB
Loading
2.29 MB
Loading

src/pages/index.astro

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { Icon } from "astro-icon/components";
44
import Layout from "../layouts/Layout.astro";
55
import { LandingPageMap } from "../components/LandingPageMap";
66
import { SITE_DESCRIPTION } from "../constants";
7+
import androidImage from "../assets/maplibre-native/maplibre-native-android.png";
8+
import iosImage from "../assets/maplibre-native/maplibre-native-ios.png";
79
---
810

911
<Layout>
@@ -177,16 +179,26 @@ import { SITE_DESCRIPTION } from "../constants";
177179

178180
<div
179181
class="col-md-12 col-lg-6"
180-
style="display: flex; justify-content: center; align-items: center;"
182+
style="display: flex; justify-content: center; align-items: center; gap: 1rem;"
181183
>
182-
<div
183-
style="background-image: url('img/maplibre-native-android.png'); height: 300px; width:100%;max-width: 150px; background-size: contain;background-position: center; background-repeat: no-repeat;"
184-
>
185-
</div>
186-
<div
187-
style="background-image: url('img/maplibre-native-ios.png'); height: 300px; width:100%;max-width: 150px; background-size:contain; background-position: center; background-repeat: no-repeat;"
188-
>
189-
</div>
184+
<Image
185+
src={androidImage}
186+
alt="MapLibre Native Android"
187+
width={150}
188+
height={300}
189+
densities={[1, 1.5, 2]}
190+
quality={95}
191+
style="object-fit: contain; max-width: 150px;"
192+
/>
193+
<Image
194+
src={iosImage}
195+
alt="MapLibre Native iOS"
196+
width={150}
197+
height={300}
198+
densities={[1, 1.5, 2]}
199+
quality={95}
200+
style="object-fit: contain; max-width: 150px;"
201+
/>
190202
</div>
191203
</div>
192204
</div>

0 commit comments

Comments
 (0)