0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

fix: hero image width

This commit is contained in:
Nate Moore 2021-06-08 14:28:38 -05:00
parent 697e9e5aca
commit b4f1c02971

View file

@ -11,7 +11,7 @@ export let heroImage: string;
<article class="content">
<div>
<header>
{heroImage && <img width="720" height="360" class="hero-image" loading="lazy" src={heroImage} />}
{heroImage && <img width="720" height="480" class="hero-image" loading="lazy" src={heroImage} />}
<p class="publish-date">{publishDate}</p>
<h1 class="title">{title}</h1>
<Author authorId={author} />
@ -24,9 +24,12 @@ export let heroImage: string;
<style>
.hero-image {
width: 100%;
width: 100vw;
object-fit: cover;
object-position: center;
margin-top: 2rem;
margin-bottom: 4rem;
max-width: 1280px;
}
.content {
margin-bottom: 8rem;