File tree Expand file tree Collapse file tree 3 files changed +36
-3
lines changed Expand file tree Collapse file tree 3 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
import {Icon } from " astro-icon/components" ;
3
3
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" ;
4
8
---
5
9
6
10
<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
+ />
8
19
<Fragment slot =" lead" >
9
20
<p >We're a group of geeks from the condal city who want to share
10
21
experiences and knowledge related to the IT world and this
Original file line number Diff line number Diff line change 1
1
---
2
2
import { Icon } from " astro-icon/components" ;
3
3
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" ;
4
8
---
5
9
6
10
<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
+ />
8
19
<Fragment slot =" lead" >
9
20
We're open to contributions from <span class =" text-primary" >anyone</span >
10
21
Either if you have a <span class =" text-primary" >meetup</span > idea, or if
Original file line number Diff line number Diff line change 1
1
---
2
2
import { Icon } from " astro-icon/components" ;
3
+ import {Image } from " astro:assets" ;
4
+ import logoImage from " ~/assets/logo_small.png" ;
3
5
import ThemeSwitcher from " ~/components/theme-switcher.astro" ;
4
6
import type { NavItem } from " ~/types" ;
5
7
@@ -8,6 +10,8 @@ const navItems: Array<NavItem> = [
8
10
{ title: " Community" , url: " #community" },
9
11
{ title: " Contribute" , url: " #contribute" },
10
12
];
13
+ const sizes = " (min-width: 640px) 42vw, 67vw" ;
14
+ const widths = [450 , 800 ];
11
15
---
12
16
13
17
<header
@@ -57,7 +61,14 @@ const navItems: Array<NavItem> = [
57
61
</button >
58
62
</header >
59
63
<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
+ />
61
72
</div >
62
73
<nav >
63
74
<ul class =" flex flex-col" >
You can’t perform that action at this time.
0 commit comments