Skip to content

Commit d740f79

Browse files
authored
chore(docs): fix hero image resolution (#1783)
1 parent 15ea158 commit d740f79

File tree

4 files changed

+6
-103
lines changed

4 files changed

+6
-103
lines changed

docs/public/hero.png

400 KB
Loading

docs/src/assets/hero.svg

Lines changed: 0 additions & 98 deletions
This file was deleted.

docs/src/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hero:
1010
title: Dart Frog
1111
tagline: A fast, minimalistic backend framework for Dart.
1212
image:
13-
file: ~/assets/hero.svg
13+
html: <img src="/hero.png" class="w-full" alt="hero">
1414
actions:
1515
- text: Get Started
1616
link: /getting-started/

docs/src/styles/landing.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
}
1818

1919
@media screen and (min-width: 50rem) {
20-
[data-has-hero] .hero {
20+
[data-has-hero] .hero-html {
2121
padding-block: clamp(2.5rem, calc(1rem + 10vmin), 2.5rem);
2222
}
2323

24-
[data-has-hero] .hero > img {
24+
[data-has-hero] .hero-html > img {
2525
filter: drop-shadow(0 0 2rem #39bcb5);
2626
}
2727

28-
[data-theme='dark'][data-has-hero] .hero > img {
28+
[data-theme='dark'][data-has-hero] .hero-html > img {
2929
filter: drop-shadow(0 0 2rem #81efe2);
3030
}
3131
}
@@ -49,7 +49,8 @@
4949
justify-content: center;
5050
}
5151

52-
.hero > img {
52+
.hero-html {
53+
order: 2;
5354
width: 100%;
5455
max-width: 700px;
5556
}

0 commit comments

Comments
 (0)