diff --git a/src/components/Footer.astro b/src/components/Footer.astro index db0e79211..f6819732a 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,6 +1,4 @@ --- -import { Fullbleed } from "./layout/fullbleed"; - import links from "../data/links.json"; import { EPSLogo } from "./logo/eps-logo"; diff --git a/src/components/Header.astro b/src/components/Header.astro index d01e07e24..e8cf5d5f8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,5 +1,4 @@ --- -import { promises as fs } from "fs"; import { NavItems } from "@components/nav-items"; import HeaderActions from "@components/header/header-actions.astro"; import HeaderLogo from "@components/header/header-logo.astro"; diff --git a/src/components/Search.astro b/src/components/Search.astro index f93fa29c5..f740c6a2c 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -1,6 +1,5 @@ --- import SearchComponent from "astro-pagefind/components/Search"; -import Button from "@ui/Button.astro"; import Modal from "@components/Modal.astro"; --- diff --git a/src/components/SocialMediaCard.astro b/src/components/SocialMediaCard.astro index e4a7ff5f7..1d149932a 100644 --- a/src/components/SocialMediaCard.astro +++ b/src/components/SocialMediaCard.astro @@ -1,13 +1,12 @@ --- -import { getCollection, getEntries, type CollectionEntry } from "astro:content"; -import { Image } from "astro:assets"; +import { getEntries, type CollectionEntry } from "astro:content"; const { entry } = Astro.props; -const sessions = await getEntries(entry.data.submissions); +const sessions: CollectionEntry<"sessions">[]= await getEntries(entry.data.submissions); --- - + { entry.data.avatar ? ( diff --git a/src/components/button-link/button-link.astro b/src/components/button-link/button-link.astro index 7009bb5f8..94891a4ca 100644 --- a/src/components/button-link/button-link.astro +++ b/src/components/button-link/button-link.astro @@ -15,10 +15,7 @@ const { className = "", secondary = false, disabled = false, - isExternal, } = Astro.props; -const resolvedIsExternal = - isExternal !== undefined ? isExternal : url?.startsWith("http"); --- ---
diff --git a/src/components/header/header-logo.astro b/src/components/header/header-logo.astro index e084d8143..dd3b8f106 100644 --- a/src/components/header/header-logo.astro +++ b/src/components/header/header-logo.astro @@ -1,6 +1,4 @@ --- -import { Logo } from "../logo"; - interface Props { inverted?: boolean; } diff --git a/src/components/hero2/hero.astro b/src/components/hero2/hero.astro index 07e9e9072..2c4e5c76b 100644 --- a/src/components/hero2/hero.astro +++ b/src/components/hero2/hero.astro @@ -4,7 +4,6 @@ import heroImage from "./conference_photo.jpg"; import IconWithLabel from "./icon-label.astro"; import Button from "@ui/Button.astro"; -import Section from "@ui/Section.astro"; const action1 = "/tickets"; const action2 = "/sponsorship/sponsor/"; diff --git a/src/components/schedule/day.astro b/src/components/schedule/day.astro index b9bf47092..35731623d 100644 --- a/src/components/schedule/day.astro +++ b/src/components/schedule/day.astro @@ -1,13 +1,10 @@ --- -import { type CollectionEntry, getEntry, getCollection } from "astro:content"; +import { type CollectionEntry, getCollection } from "astro:content"; import Break from "@components/schedule/break.astro"; import Session from "@components/schedule/session.astro"; import { addMinutes, differenceInMinutes, parseISO } from "date-fns"; -//import { Title } from "@components/typography/title"; import Headline from "@components/ui/Headline.astro"; -import Button from "@ui/Button.astro"; -import { Select } from "@components/form/select"; import { formatInTimeZone } from "date-fns-tz"; diff --git a/src/components/schedule/session.astro b/src/components/schedule/session.astro index 5d0287bd2..7747f3e1a 100644 --- a/src/components/schedule/session.astro +++ b/src/components/schedule/session.astro @@ -1,8 +1,6 @@ --- -import { formatInTimeZone } from "date-fns-tz"; import Speakers from "./speakers.astro"; import { slugify } from "@utils/content"; -import Icon from "@ui/Icon.astro"; export interface props { style: any; diff --git a/src/components/sponsors/sponsors.astro b/src/components/sponsors/sponsors.astro index 47e412c12..22e1e9f7e 100644 --- a/src/components/sponsors/sponsors.astro +++ b/src/components/sponsors/sponsors.astro @@ -2,7 +2,6 @@ import { getCollection } from "astro:content"; import { Separator } from "../separator/separator"; import { Fragment } from "react"; -import { Fullbleed } from "../layout/fullbleed"; import Headline from "@ui/Headline.astro" import Section from "@ui/Section.astro" diff --git a/src/components/ui/YouTube.astro b/src/components/ui/YouTube.astro index 158216d53..ed5b26625 100644 --- a/src/components/ui/YouTube.astro +++ b/src/components/ui/YouTube.astro @@ -1,13 +1,21 @@ --- -import { YouTube } from "@astro-community/astro-embed-youtube"; +import { YouTube as Player } from "@astro-community/astro-embed-youtube"; + +type Props = { + id?: string; + class?: string; + [key: string]: any; +} const { class: userClass = '', ...attrs } = Astro.props; +const attrId = attrs.id || ''; + const defaultClass = 'border-4 border-white rounded-lg shadow-lg'; const className = `${defaultClass} ${userClass}`.trim(); --- - + diff --git a/src/layouts/ScheduleLayout.astro b/src/layouts/ScheduleLayout.astro index dcce9d70d..59de87c24 100644 --- a/src/layouts/ScheduleLayout.astro +++ b/src/layouts/ScheduleLayout.astro @@ -1,6 +1,5 @@ --- import Layout from "@layouts/Layout.astro"; -import Headline from "@ui/Headline.astro"; import Section from "@ui/Section.astro"; export interface Props { diff --git a/src/pages/media/card/[slug].astro b/src/pages/media/card/[slug].astro index 27ede9727..431d61208 100644 --- a/src/pages/media/card/[slug].astro +++ b/src/pages/media/card/[slug].astro @@ -1,5 +1,5 @@ --- -import { getCollection, getEntries, type CollectionEntry } from "astro:content"; +import { getCollection} from "astro:content"; import SocialMediaCard from "@components/SocialMediaCard.astro"; export async function getStaticPaths() { @@ -84,7 +84,7 @@ fitAllText(); window.addEventListener('resize', fitAllText); -