chore: fix html structure

This commit is contained in:
Ayo Ayco 2025-06-04 10:20:29 +02:00
parent 6c4874c9ff
commit 7e85e61fa7

View file

@ -12,53 +12,51 @@ const publishedOn = now.publishedOn === '' ? now.publishDate : now.publishedOn
<Layout title="Now" description="What is Ayo Ayco currently up to?"> <Layout title="Now" description="What is Ayo Ayco currently up to?">
<main> <main>
<h1>What's up <span class="text-gradient">Now</span></h1> <h1>What's up <span class="text-gradient">Now</span></h1>
<p> <small>
<small> Updated on <time datetime={now.publishDate}>{publishedOn}</time>{
Updated on <time datetime={now.publishDate}>{publishedOn}</time>{ now.publishState ? `, ${now.publishState}` : ''
now.publishState ? `, ${now.publishState}` : ''
}
</small>
<Fragment set:html={nowHtml} />
<hr />
<em><a href="https://nownownow.com/about">About now pages</a></em>
&middot;
<em><a href="now/and-then/">Previously...</a></em>
<Footer />
</p>
<style>
.text-gradient {
font-weight: 900;
background-image: var(--ayo-gradient);
animation: pulse 4s ease-in-out infinite;
background-size: 500% 500%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 100% 200%;
background-position-y: 100%;
border-radius: 0.4rem;
} }
</small>
<Fragment set:html={nowHtml} />
<hr />
<em><a href="https://nownownow.com/about">About now pages</a></em>
&middot;
<em><a href="now/and-then/">Previously...</a></em>
<Footer />
</main>
</Layout>
.highlighted-content { <style>
margin: 1rem 0; .text-gradient {
background: #4f39fa; font-weight: 900;
padding: 1rem; background-image: var(--ayo-gradient);
border-radius: 0.4rem; animation: pulse 4s ease-in-out infinite;
color: var(--color-bg); background-size: 500% 500%;
} -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 100% 200%;
background-position-y: 100%;
border-radius: 0.4rem;
}
.highlighted-content code { .highlighted-content {
font-size: var(--font-size-base); margin: 1rem 0;
border: 0.1em solid var(--color-border); background: #4f39fa;
border-radius: 4px; padding: 1rem;
padding: 0.15em 0.25em; border-radius: 0.4rem;
} color: var(--color-bg);
}
.link-card-grid { .highlighted-content code {
display: grid; font-size: var(--font-size-base);
gap: 1rem; border: 0.1em solid var(--color-border);
padding: 0; border-radius: 4px;
} padding: 0.15em 0.25em;
</style> }
</main></Layout
> .link-card-grid {
display: grid;
gap: 1rem;
padding: 0;
}
</style>