Skip to content

Commit

Permalink
feature: Add first speaker of CLI week
Browse files Browse the repository at this point in the history
  • Loading branch information
aloussase committed Oct 16, 2024
1 parent ff22a5b commit 05796da
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
19 changes: 19 additions & 0 deletions src/lib/components/Speaker.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script lang="ts">
const { name, image_url, date, time, title, topic } = $props();
</script>

<div class="my-4 rounded-2xl bg-neutral-800 px-6 py-4 w-4/5 flex gap-6">
<img src={image_url} alt={name} class="rounded-full w-[100px]"/>
<div class="flex flex-col gap-2">
<div class="flex flex-col gap-1 mb-2">
<span>{name}</span>
<small class="text-lime-600">{title}</small>
</div>
<span>📅 {date}</span>
<span>🕙 {time}</span>
</div>
<div class="h-100 bg-lime-600 w-[1px]"></div>
<div class="flex h-100 items-center text-center">
<span class="text-xl">{topic}</span>
</div>
</div>
15 changes: 11 additions & 4 deletions src/routes/events/cliweek/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import Heading from "$lib/components/layout/Heading.svelte";
import Tag from "$lib/components/Tag.svelte";
import Speaker from "$lib/components/Speaker.svelte";
</script>

<svelte:head>
Expand Down Expand Up @@ -65,11 +66,17 @@
</p>
</div>

<div id="speakers">
<div id="speakers" class="w-full flex flex-col items-center">
<h4 class="text-xl text-lime-600">Speakers</h4>
<p>
There are no speakers yet! Why don't you become the first one?
</p>

<Speaker
name="Miguel Sánchez"
title="Software Developer @ Devsu"
image_url="https://media.licdn.com/dms/image/v2/D4E03AQGnBb-gX-aI1w/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1694747246966?e=1734566400&v=beta&t=9i7iqBjwH3Qznc_XTUP93_uY8qJ808bqBPQ_mGLzfCE"
date="13-11-2024"
time="17H00"
topic="Del Backend a la Terminal: El Poder de los Django Commands"
/>
</div>

<div>
Expand Down

0 comments on commit 05796da

Please sign in to comment.