Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import { Fullbleed } from "./layout/fullbleed";

import links from "../data/links.json";
import { EPSLogo } from "./logo/eps-logo";

Expand Down
1 change: 0 additions & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion src/components/Search.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import SearchComponent from "astro-pagefind/components/Search";
import Button from "@ui/Button.astro";
import Modal from "@components/Modal.astro";

---
Expand Down
7 changes: 3 additions & 4 deletions src/components/SocialMediaCard.astro
Original file line number Diff line number Diff line change
@@ -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);
---
<svg width="900" height="900" class="h-full w-full -z-10">
<image href="http://localhost:4321/social/bg.png" width="900" height="900" />
<image href="/social/bg.png" width="900" height="900" />
</svg>
{
entry.data.avatar ? (
Expand Down
3 changes: 0 additions & 3 deletions src/components/button-link/button-link.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ const {
className = "",
secondary = false,
disabled = false,
isExternal,
} = Astro.props;
const resolvedIsExternal =
isExternal !== undefined ? isExternal : url?.startsWith("http");
---

<a
Expand Down
3 changes: 0 additions & 3 deletions src/components/header/header-actions.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import Button from "@ui/Button.astro";
import HeaderButton from "./header-button.astro";
import Icon from "@ui/Icon.astro";

export interface Props {
Expand All @@ -11,8 +10,6 @@ const { mobile = false }: Props = Astro.props;

const IS_LIVE = false;


//<Button id="searchButton" icon="search" iconSize="fa-xl" clear title="Search (Crtl+K)"></Button>
---

<div class="flex items-center justify-end gap-2 h-[85px] w-1/3">
Expand Down
2 changes: 0 additions & 2 deletions src/components/header/header-logo.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import { Logo } from "../logo";

interface Props {
inverted?: boolean;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/hero2/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down
5 changes: 1 addition & 4 deletions src/components/schedule/day.astro
Original file line number Diff line number Diff line change
@@ -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";


Expand Down
2 changes: 0 additions & 2 deletions src/components/schedule/session.astro
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/components/sponsors/sponsors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
12 changes: 10 additions & 2 deletions src/components/ui/YouTube.astro
Original file line number Diff line number Diff line change
@@ -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();
---

<YouTube class={className} {...attrs} />
<Player id={attrId} class={className} {...attrs} />
1 change: 0 additions & 1 deletion src/layouts/ScheduleLayout.astro
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/media/card/[slug].astro
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -84,7 +84,7 @@ fitAllText();
window.addEventListener('resize', fitAllText);
</script>

<script define:vars={{slug: entry.data.slug}}>
<script is:inline define:vars={{slug: entry.data.slug}}>
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.social').forEach((socialDiv, index) => {

Expand Down
2 changes: 1 addition & 1 deletion src/pages/media/social_media_cards.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
import { getCollection, type CollectionEntry } from "astro:content";
import SocialMediaCard from "@components/SocialMediaCard.astro";


Expand Down
2 changes: 1 addition & 1 deletion src/pages/schedule.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { getEntry, getCollection } from "astro:content";
import { getCollection } from "astro:content";
import Layout from "@layouts/ScheduleLayout.astro";
import ScheduleDay from "@components/schedule/day.astro";

Expand Down
2 changes: 1 addition & 1 deletion src/pages/schedule/talks.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { type CollectionEntry, getCollection } from "astro:content";
import { getCollection } from "astro:content";
import Layout from "@layouts/ScheduleLayout.astro";
import ScheduleDay from "@components/schedule/day.astro";
import { slugify } from '@utils/content';
Expand Down
1 change: 0 additions & 1 deletion src/pages/schedule/tutorials.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { getCollection } from "astro:content";
import Layout from "@layouts/ScheduleLayout.astro";
import ScheduleDay from "@components/schedule/day.astro";
import { slugify } from '@utils/content';
import Headline from "@ui/Headline.astro"

export const getStaticPaths = async () => {
const sessions = await getCollection("sessions");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/speakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const description = "Our conference speakers organized alphabetically";
</Prose>

{
groupKeys.map((key, index) => (
groupKeys.map((key, _index) => (
<>
<div id={`group-${key}`} class="pt-6">
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6 mb-10">
Expand Down
2 changes: 1 addition & 1 deletion src/utils/content.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function slugify(text) {
export function slugify(text: string): string {
return text
.toString()
.toLowerCase()
Expand Down