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

feat: update social image

This commit is contained in:
Nate Moore 2021-06-08 14:18:39 -05:00
parent aae8c6b9e7
commit 99cda26a60

View file

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