Skip to content

Commit 14b3b56

Browse files
committed
cto hero
1 parent ff52927 commit 14b3b56

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
1.79 MB
Loading

apps/website/src/components/cto/Hero.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import { grid_classes } from "../_grid";
33
import Pill from "../Pill.astro";
44
import Section from "../Section.astro";
5+
import { Picture } from "@astrojs/image/components";
6+
import heroImage from "../../assets/cto-hero.png";
57
---
68

79
<Section className="!pt-[75px] bg-white md:!pb-12 lg:!pb-24">
@@ -55,7 +57,12 @@ import Section from "../Section.astro";
5557
lg:col-start-7
5658
lg:row-start-1"
5759
>
58-
<img src="/cto-hero.png" alt="" class="" />
60+
<Picture
61+
src={heroImage}
62+
alt="CroCoder Hero Image"
63+
widths={[1412, 626, 470, 398]}
64+
loading="eager"
65+
/>
5966
</div>
6067
</div>
6168
</Section>

apps/website/src/components/hero.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import heroImage from "../assets/croco-13.png";
1717
src={heroImage}
1818
alt="CroCoder Hero Image"
1919
widths={[1196, 598, 553, 292]}
20+
loading="eager"
2021
/>
2122
</div>
2223
<div

0 commit comments

Comments
 (0)