Skip to content

Commit 6827dbe

Browse files
committed
docs: light and dark mode images on home
1 parent 64464e7 commit 6827dbe

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

docs/src/pages/index.mdx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,34 @@ import OgImage from '../components/OgImage';
2323
</div>
2424
<div className="flex lg:justify-center flex-col order-1 lg:order-2 pb-8 lg:pb-0">
2525
<div className="grid grid-cols-2 gap-12 items-center lg:block lg:relative w-full max-w-xs lg:max-w-xl lg:aspect-[8/6] mx-auto">
26-
<img className="lg:absolute lg:top-0 lg:left-0 w-full lg:w-1/2" width="378" height="333" src="/images/netlify-logo-dark.svg" />
27-
<img className="lg:absolute lg:bottom-0 lg:right-0 w-full lg:w-1/2" width="359" height="156" src="/images/cloudinary-logo-dark.svg" />
26+
<picture className="lg:absolute lg:top-0 lg:left-0 w-full lg:w-1/2">
27+
<source
28+
width="378"
29+
height="333"
30+
srcSet="/images/netlify-logo-light.svg"
31+
media="(prefers-color-scheme: dark)"
32+
/>
33+
<img
34+
width="378"
35+
height="333"
36+
src="/images/netlify-logo-dark.svg"
37+
alt="Netlify Logo"
38+
/>
39+
</picture>
40+
<picture className="lg:absolute lg:bottom-0 lg:right-0 w-full lg:w-1/2">
41+
<source
42+
width="359"
43+
height="156"
44+
srcSet="/images/cloudinary-logo-light.svg"
45+
media="(prefers-color-scheme: dark)"
46+
/>
47+
<img
48+
width="359"
49+
height="156"
50+
src="/images/cloudinary-logo-dark.svg"
51+
alt="Cloudinary Logo"
52+
/>
53+
</picture>
2854
</div>
2955
</div>
3056
</div>

0 commit comments

Comments
 (0)