Skip to content

Commit 5a1b2d6

Browse files
committed
YouTube component style.
1 parent 5dc8252 commit 5a1b2d6

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

src/components/highlight-list/highlight-card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="rounded-lg shadow-md p-5">
1+
<div class="bg-white rounded-lg shadow-md p-5 mt-6">
22
<ul class="space-y-2">
33
<slot />
44
</ul>

src/components/sections/speakers.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const sectionSubtitle = "Meet some of our amazing speakers";
2222
2323
---
2424

25-
<Section class="py-16 px-4 bg-gray-50">
25+
<Section>
2626
<div class="container mx-auto">
2727
<div class="text-center mb-12">
2828
<h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">{sectionTitle}</h2>

src/components/ui/YouTube.astro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
import { YouTube } from "@astro-community/astro-embed-youtube";
3+
4+
const {
5+
class: userClass = '',
6+
...attrs
7+
} = Astro.props;
8+
9+
const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
10+
const className = `${defaultClass} ${userClass}`.trim();
11+
---
12+
13+
<YouTube class={className} {...attrs} />

src/pages/[...slug].astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
import { type CollectionEntry, getCollection } from "astro:content";
33
import Layout from "@layouts/MarkdownLayout.astro";
44
5-
import Prose from "../components/prose/prose.astro";
65
import ButtonLink from "../components/button-link/button-link.astro";
76
import { Separator } from "../components/separator/separator";
87
import { Map } from "../components/map";
98
import { MapSprints } from "../components//map-for-sprints";
10-
import { YouTube } from "@astro-community/astro-embed-youtube";
9+
import YouTube from "@ui/YouTube.astro";
1110
import BenefitsList from "../components/benefits-list/benefits-list.astro";
1211
import BenefitItem from "../components/benefits-list/benefit-item.astro";
1312
import HighlightCard from "../components/highlight-list/highlight-card.astro";

0 commit comments

Comments
 (0)