refactor: move website files to the root level
This commit is contained in:
parent
c2887ecbc5
commit
2cbbfd60ff
590 changed files with 0 additions and 4484 deletions
47
src/components/talk/Events.astro
Normal file
47
src/components/talk/Events.astro
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
interface Event {
|
||||
date: string;
|
||||
location: string;
|
||||
name: string;
|
||||
online?: boolean;
|
||||
time: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
interface Props {
|
||||
events: Event[];
|
||||
}
|
||||
|
||||
const { events } = Astro.props;
|
||||
---
|
||||
|
||||
{
|
||||
events && (
|
||||
<div>
|
||||
<h2>Events</h2>
|
||||
|
||||
<div>
|
||||
<ul class="ml-4 list-disc">
|
||||
{events.map((event) => (
|
||||
<li>
|
||||
{event.url ? (
|
||||
<a class="link" href={event.url}>
|
||||
{event.name}
|
||||
</a>
|
||||
) : (
|
||||
event.name
|
||||
)}
|
||||
{event.location && `in ${event.location} -`}
|
||||
{new Date(event.date).toLocaleDateString("en-GB", {
|
||||
day: "numeric",
|
||||
month: "long",
|
||||
year: "numeric",
|
||||
})}
|
||||
{event.online && "(online)"}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue