rework to use new @besties/html2png

This commit is contained in:
hazycora 2023-09-10 13:48:50 -05:00
parent 7d6cf5b09f
commit cc40eb1fff
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
7 changed files with 97 additions and 172 deletions

View file

@ -44,4 +44,38 @@
<p class="fact-heading"><%= new Intl.DateTimeFormat('en-US', { dateStyle: 'long' }).format(new Date(it.repo.updated_at)) %></p>
</div>
</div>
</div>
</div>
<style>
.repo .title {
white-space: nowrap;
}
.repo .author {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 2.5rem;
font-weight: 600;
color: #aeb3d0;
}
.repo .author .username {
font-size: 1.75rem;
font-weight: 400;
color: #6d728f;
}
.repo .repo-name {
font-weight: 800;
font-size: 4.5rem;
line-height: 1.2em;
}
.fact {
display: flex;
margin-right: 0.5em;
font-size: 1.5rem;
flex-direction: column;
}
.fact-heading {
color: #8c91af;
font-size: 2rem;
font-weight: 600;
}
</style>