Skip to content

Commit 5cec8b2

Browse files
committed
🎈 perf: change articles images ratios
1 parent c456fbe commit 5cec8b2

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed
-896 Bytes
Loading
-4.93 KB
Loading

src/components/Articles.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const allPosts = await Astro.glob('../pages/posts/*.md');
2727
<img
2828
transition:name={post.frontmatter.title}
2929
src={post.frontmatter.image.src}
30-
class="aspect-video w-56 rounded-xl max-lg:w-full"
30+
class="aspect-[89/55] w-56 rounded-xl max-lg:w-full"
3131
alt={post.frontmatter.image.alt}
3232
/>
3333
<section>

src/styles/styles.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
font-display: swap;
4747
src: url("/fonts/Lato-BoldItalic.woff2") format("woff2");
4848
}
49-
49+
h1 {
50+
margin-block: 0.67em;
51+
font-size: 2em;
52+
}
5053
h1,
5154
h2,
5255
h3 {

0 commit comments

Comments
 (0)