Fix spacing after refactor, and video aspect ratio
This commit is contained in:
parent
8735684d0e
commit
ed1d142de9
|
@ -1,6 +1,6 @@
|
||||||
@layer components {
|
@layer components {
|
||||||
.link {
|
.link {
|
||||||
@apply underline text-blue-primary hover:text-blue-900 dark:text-blue-400 dark:hover:text-white;
|
@apply inline-block underline text-blue-primary hover:text-blue-900 dark:text-blue-400 dark:hover:text-white;
|
||||||
text-decoration-thickness: 1px;
|
text-decoration-thickness: 1px;
|
||||||
text-underline-offset: 0.1em;
|
text-underline-offset: 0.1em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ const { events } = Astro.props;
|
||||||
) : (
|
) : (
|
||||||
event.name
|
event.name
|
||||||
)}
|
)}
|
||||||
{event.location && `in ${event.location}`}-{" "}
|
{event.location && `in ${event.location} -`}
|
||||||
{new Date(event.date).toLocaleDateString("en-GB", {
|
{new Date(event.date).toLocaleDateString("en-GB", {
|
||||||
day: "numeric",
|
day: "numeric",
|
||||||
month: "long",
|
month: "long",
|
||||||
|
|
|
@ -15,7 +15,7 @@ const { id, type }: Props = Astro.props;
|
||||||
<div>
|
<div>
|
||||||
<iframe
|
<iframe
|
||||||
allowfullscreen
|
allowfullscreen
|
||||||
class="w-full aspect-video"
|
class="w-full aspect-[16/9]"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
src={`https://www.youtube.com/embed/${id}?rel=0&iv_load_policy=3`}
|
src={`https://www.youtube.com/embed/${id}?rel=0&iv_load_policy=3`}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -31,20 +31,20 @@ const sortedTalks = talks
|
||||||
<p>
|
<p>
|
||||||
Starting with my first talk in September 2012, I have given {talkCount} presentations
|
Starting with my first talk in September 2012, I have given {talkCount} presentations
|
||||||
and workshops at various conferences and meetups, in-person and remotely, on
|
and workshops at various conferences and meetups, in-person and remotely, on
|
||||||
topics including PHP, Drupal, automated testing, Git, CSS, and systems administration~
|
topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.
|
||||||
|
|
||||||
<div>
|
|
||||||
{
|
|
||||||
sortedTalks.map((talk) => (
|
|
||||||
<article>
|
|
||||||
<a href={`/talks/${talk.slug}`}>
|
|
||||||
<h2>{talk.talk.frontmatter.title}</h2>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{talk.talk.frontmatter.description}
|
|
||||||
</article>
|
|
||||||
))
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
sortedTalks.map((talk) => (
|
||||||
|
<article>
|
||||||
|
<a href={`/talks/${talk.slug}`}>
|
||||||
|
<h2>{talk.talk.frontmatter.title}</h2>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{talk.talk.frontmatter.description}
|
||||||
|
</article>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
|
Loading…
Reference in a new issue