Skip to content

Commit a70a6e1

Browse files
committed
feat: replace svg image with png format.
1 parent bb5ee69 commit a70a6e1

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

src/components/aboutus.astro

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
---
22
import {Icon} from "astro-icon/components";
33
import ContentSection from "~/components/content-section.astro";
4+
import {Image} from "astro:assets";
5+
import logoImage from "~/assets/logo_small.png";
6+
const widths = [450, 800];
7+
const sizes = "(min-width: 640px) 42vw, 67vw";
48
---
59

610
<ContentSection title="About Us" id="aboutus">
7-
<Icon slot="eyebrow" name="logo_small" class="size-32"/>
11+
<Image slot="eyebrow"
12+
class="size-32"
13+
src={logoImage}
14+
widths={widths}
15+
sizes={sizes}
16+
loading="eager"
17+
alt="Barcelona Java User Group Logo"
18+
/>
819
<Fragment slot="lead">
920
<p>We're a group of geeks from the condal city who want to share
1021
experiences and knowledge related to the IT world and this

src/components/contribute.astro

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
---
22
import { Icon } from "astro-icon/components";
33
import ContentSection from "~/components/content-section.astro";
4+
import {Image} from "astro:assets";
5+
import logoImage from "~/assets/logo_small.png";
6+
const widths = [450, 800];
7+
const sizes = "(min-width: 640px) 42vw, 67vw";
48
---
59

610
<ContentSection title="Contribute" id="contribute">
7-
<Icon slot="eyebrow" name="logo_small" class="size-32" />
11+
<Image slot="eyebrow"
12+
class="size-32"
13+
src={logoImage}
14+
widths={widths}
15+
sizes={sizes}
16+
loading="eager"
17+
alt="Barcelona Java User Group Logo"
18+
/>
819
<Fragment slot="lead">
920
We're open to contributions from <span class="text-primary">anyone</span>
1021
Either if you have a <span class="text-primary">meetup</span> idea, or if

src/components/header.astro

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
import { Icon } from "astro-icon/components";
3+
import {Image} from "astro:assets";
4+
import logoImage from "~/assets/logo_small.png";
35
import ThemeSwitcher from "~/components/theme-switcher.astro";
46
import type { NavItem } from "~/types";
57
@@ -8,6 +10,8 @@ const navItems: Array<NavItem> = [
810
{ title: "Community", url: "#community" },
911
{ title: "Contribute", url: "#contribute" },
1012
];
13+
const sizes = "(min-width: 640px) 42vw, 67vw";
14+
const widths = [450, 800];
1115
---
1216

1317
<header
@@ -57,7 +61,14 @@ const navItems: Array<NavItem> = [
5761
</button>
5862
</header>
5963
<div class="flex justify-center">
60-
<Icon name="logo_small" class="size-16" />
64+
<Image
65+
class="size-16"
66+
src={logoImage}
67+
widths={widths}
68+
sizes={sizes}
69+
loading="eager"
70+
alt="Barcelona Java User Group Logo"
71+
/>
6172
</div>
6273
<nav>
6374
<ul class="flex flex-col">

0 commit comments

Comments
 (0)