Skip to content

Commit f4fce0c

Browse files
Fix hero: navy logo in light mode, primary blue in dark mode, properly sized
1 parent bc78d84 commit f4fce0c

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

src/pages/index.astro

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import Stats from '~/components/widgets/Stats.astro';
1010
import CallToAction from '~/components/widgets/CallToAction.astro';
1111
import Note from '~/components/widgets/Note.astro';
1212
13-
import hybridHeroImg from '~/assets/images/logo-bridge-primary.svg';
13+
import { Image } from 'astro:assets';
14+
import heroLogoNavy from '~/assets/images/logo-navy-1600.png';
15+
import heroLogoPrimary from '~/assets/images/logo-primary-1600.png';
1416
1517
const metadata = {
1618
title: 'Hybrid Cloud Made Simple | Hybrid Cloud Solutions, LLC',
@@ -31,8 +33,25 @@ const metadata = {
3133
},
3234
{ text: 'Our Services', href: '/services' },
3335
]}
34-
image={{ src: hybridHeroImg, alt: 'Hybrid Cloud Solutions — Hybrid Cloud Architecture' }}
3536
>
37+
<Fragment slot="image">
38+
<Image
39+
src={heroLogoNavy}
40+
alt="Hybrid Cloud Solutions"
41+
width={500}
42+
height={500}
43+
class="mx-auto block dark:hidden"
44+
loading="eager"
45+
/>
46+
<Image
47+
src={heroLogoPrimary}
48+
alt="Hybrid Cloud Solutions"
49+
width={500}
50+
height={500}
51+
class="mx-auto hidden dark:block"
52+
loading="eager"
53+
/>
54+
</Fragment>
3655
<Fragment slot="title">
3756
Hybrid Cloud <span class="text-accent dark:text-white">Made Simple</span>
3857
</Fragment>

0 commit comments

Comments
 (0)