Skip to content

Commit 8616941

Browse files
committed
Update icons and keynoters section style.
1 parent 1d654fa commit 8616941

File tree

6 files changed

+28
-16
lines changed

6 files changed

+28
-16
lines changed

src/components/BaseHead.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,7 @@ const { title, description, image = "/social-card.png" } = Astro.props;
5959
data-domain="ep2025.europython.eu"
6060
src="https://plausible.io/js/script.js"></script>
6161

62-
<script src="https://kit.fontawesome.com/14a4971ab3.js" crossorigin="anonymous"></script>
62+
<script
63+
is:inline
64+
src="https://kit.fontawesome.com/14a4971ab3.js"
65+
crossorigin="anonymous"></script>

src/components/keynoters/keynoter.astro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ const placeholders = [Person1, Person2, Person3, Person4, Person5];
3131
3232
const Placeholder =
3333
placeholders[Math.floor(Math.random() * placeholders.length)];
34+
35+
const link = placeholder ? "":"`/speaker/${slug}`"
3436
---
3537

3638
<li class:list={["list-none rounded-2xl overflow-clip flex group", className]}>
37-
<a class="block w-full h-full relative" href={`/speaker/${slug}`}>
39+
<a class="block w-full h-full relative ${clicable}" href={link}>
3840
<div class="relative aspect-[9/10] overflow-clip">
3941
{
4042
image ? (
@@ -45,19 +47,19 @@ const Placeholder =
4547
class="object-cover group-hover:scale-105 transition-transform h-full w-full"
4648
/>
4749
) : (
48-
<div class="bg-keynoter-info w-full h-full group-hover:opacity-90">
50+
<div class="bg-keynoter-info w-full h-full group-hover:opacity-100 opacity-80">
4951
<Placeholder />
5052
</div>
5153
)
5254
}
5355
</div>
5456

5557
<div
56-
class="px-5 py-2 pb-4 bg-keynoter-info rounded-t-none h-full group-hover:opacity-90"
58+
class="px-5 py-2 pb-4 bg-keynoter-info rounded-t-none h-full group-hover:opacity-100 opacity-80"
5759
>
5860
{
5961
placeholder ? (
60-
<p class="text-body-inverted font-bold">More keynoters coming soon</p>
62+
<p class="text-body-inverted font-bold ">More keynoters coming soon</p>
6163
) : (
6264
<>
6365
<p class="text-body-inverted font-bold">{name}</p>

src/components/keynoters/keynoters.astro

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getCollection } from "astro:content";
77
88
const keynoters = await getCollection("keynoters");
99
10-
const placeholders = Math.max(0, 6 - keynoters.length);
10+
const placeholders = Math.max(0, 3 - keynoters.length);
1111
---
1212

1313
<section class="prose-xl relative my-12 px-6">
@@ -17,11 +17,11 @@ const placeholders = Math.max(0, 6 - keynoters.length);
1717
stroke-width={1}
1818
fill="none"
1919
fill-rule="evenodd"
20-
opacity={0.4}
20+
opacity={0.1}
2121
>
2222
<g
2323
transform="translate(-297.000000, -4131.000000)"
24-
class="fill-hero-primary"
24+
class="fill-secondary-light"
2525
>
2626
<g transform="translate(81.000000, 3688.000000)">
2727
<g transform="translate(216.000000, 443.000000)">
@@ -125,3 +125,6 @@ const placeholders = Math.max(0, 6 - keynoters.length);
125125
</div>
126126
</div>
127127
</section>
128+
<style>
129+
.fill-hero-primary {}
130+
</style>

src/components/ui/Button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const primaryClasses = "bg-button text-text-inverted hover:bg-button-hover borde
2020
const secondaryClasses = "bg-primary text-white hover:bg-primary-hover border-transparent";
2121
const outlineClasses = "border-gray-500 text-gray-700 hover:bg-gray-100 hover:bg-button-hover";
2222
const disabledClasses = "opacity-50 pointer-events-none";
23-
const iconClasses = "pl-2 w-5 h-5";
23+
const iconClasses = "mx-2 ";
2424
2525
---
2626

src/components/ui/Icon.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {
33
name,
44
svg = false,
55
class: className = "",
6-
size = "w-5 h-5", // Default size (Tailwind)
6+
size = "", // Default size (Tailwind)
77
label = "",
88
role = "img"
99
} = Astro.props;

src/pages/test_components.astro

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ import Icon from "@ui/Icon.astro"
2424
</div>
2525
</section>
2626

27-
28-
<Headline as="h1" id="components" title="Example components" />
2927
<section class="prose-xl my-10">
30-
<Headline id="button" title="Button" />
28+
<Headline id="button" title="Icons" />
3129
<div class="grid gap-2 w-[200px]">
3230
<Icon name="check" />
33-
<Icon name="times" size="w-4 h-4" />
34-
<Icon name="cog" size="w-8 h-8" />
35-
<Button icon="arrow-right" iconRight={true} size="w-6 h-6">Next</Button>
31+
<Icon name="times" size="fa-2x" />
32+
<Icon name="times" size="fa-3x" />
33+
<Icon name="times" size="fa-4x" />
34+
<Icon name="times" size="fa-5x" />
35+
<Icon name="times" size="fa-6x" />
36+
<Icon name="cog" />
37+
<Button icon="arrow-right" iconRight={true} >Next</Button>
38+
<Button icon="arrow-left" iconRight={false} >Prev</Button>
39+
<Button icon="clock" iconRight={false} size="fa-2xl">Prev</Button>
3640

3741
</div>
3842
</section>

0 commit comments

Comments
 (0)