diff --git a/astro.config.mjs b/astro.config.mjs index a8a55c2..f69c51b 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,33 +1,32 @@ -import { defineConfig } from "astro/config"; - -import tailwind from "@astrojs/tailwind"; +import { defineConfig } from 'astro/config'; +import tailwind from '@astrojs/tailwind'; // https://docs.astro.build/en/guides/markdown-content/#modifying-frontmatter-programmatically import { remarkReadingTime } from './remark-reading-time.mjs'; -// https://astro.build/config -import react from "@astrojs/react"; +import react from '@astrojs/react'; // https://docs.astro.build/en/guides/integrations-guide/vercel/ -import vercel from '@astrojs/vercel/static'; +// import vercel from '@astrojs/vercel/static'; + +// https://astro.build/config // https://astro.build/config +import vercel from '@astrojs/vercel/serverless'; // https://astro.build/config export default defineConfig({ - site: "https://bliss.berlin", + site: 'https://bliss.berlin', integrations: [tailwind(), react()], renderers: ['@astrojs/renderer-react'], markdown: { shikiConfig: { theme: 'github-dark', - wrap: true + wrap: true, }, remarkPlugins: [remarkReadingTime], - extendDefaultPlugins: true + extendDefaultPlugins: true, }, - output: 'static', - adapter: vercel({ - analytics: true - }) -}); \ No newline at end of file + output: 'server', + adapter: vercel(), +}); diff --git a/package-lock.json b/package-lock.json index bdc73cc..36dcdfc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6934,6 +6934,18 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/run-applescript/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-applescript/node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", diff --git a/src/components/Arrow.astro b/src/components/Arrow.astro index cda25a2..18fca73 100644 --- a/src/components/Arrow.astro +++ b/src/components/Arrow.astro @@ -1,5 +1,5 @@ --- - +import { Image } from 'astro:assets'; ---
diff --git a/src/components/AuthorList.tsx b/src/components/AuthorList.tsx index 6236fa0..9e985de 100644 --- a/src/components/AuthorList.tsx +++ b/src/components/AuthorList.tsx @@ -1,4 +1,4 @@ -import type { Author } from "@utils/types"; +import type { Author } from '@utils/types'; type Props = { authors: Author[]; @@ -7,14 +7,16 @@ export default function AuthorList({ authors }: Props) { return (
{authors.map((author: Author) => ( - {`Image ))}

- {authors.join(", ")} + {authors.join(', ')}

); diff --git a/src/components/Card.astro b/src/components/Card.astro index 036ef9b..0174754 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,6 +1,7 @@ --- // Import the necessary components or types import type { Paper } from "./data/papers"; +import { Image } from 'astro:assets'; interface Props { paper: Paper; @@ -18,7 +19,7 @@ const { paper, hasBorder } = Astro.props as Props; class="flex flex-col sm:flex-row sm:space-x-10 sm:items-center sm:max-h-min no-underline" >
('/public/assets/bliss-logo.png') const { headerTitle } = Astro.props; --- @@ -12,9 +14,9 @@ const { headerTitle } = Astro.props;
-} \ No newline at end of file +
+
+

+ {speaker.date.toLocaleDateString('en-US', { + year: 'numeric', + month: 'long', + day: 'numeric', + })} +

+

+ {speaker.title} +

+

+ {speaker.name},{' '} + {speaker.affiliation} +

+
+ + + ))} + +
+
+ ); +}; diff --git a/src/components/hackathon/Partners.astro b/src/components/hackathon/Partners.astro index f6c0caa..8445a70 100644 --- a/src/components/hackathon/Partners.astro +++ b/src/components/hackathon/Partners.astro @@ -1,3 +1,9 @@ +--- +import { Image } from 'astro:assets'; +import type { ImageMetadata } from 'astro'; +const image = import.meta.glob<{ default: ImageMetadata }>('/public/assets/bliss-logo.png') +--- + diff --git a/src/components/hackathon/Schedule.astro b/src/components/hackathon/Schedule.astro index 5eac8e4..9535b12 100644 --- a/src/components/hackathon/Schedule.astro +++ b/src/components/hackathon/Schedule.astro @@ -1,3 +1,7 @@ +--- +import { Image } from 'astro:assets'; +--- +
- + diff --git a/src/pages/index.astro b/src/pages/index.astro index 6d6c722..8a0f880 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,4 +1,5 @@ --- +export const prerender = true; import Layout from "../layouts/Layout.astro"; import ThreeScence from "../components/ThreeScence.astro"; import Landing from "../components/Landing.astro"; @@ -12,7 +13,7 @@ import Arrow from "@components/Arrow.astro"; description="The AI student initiative in Berlin. We connect people with great interest and passion for the field of machine learning. Weekly Reading Group & Speaker Events." >
- + diff --git a/src/pages/reading-group.astro b/src/pages/reading-group.astro index 8573460..ea233b0 100644 --- a/src/pages/reading-group.astro +++ b/src/pages/reading-group.astro @@ -1,4 +1,5 @@ --- +export const prerender = true; import Layout from "../layouts/Layout.astro"; import ReadingGroup from "@components/ReadingGroup.astro"; --- diff --git a/yarn.lock b/yarn.lock index df5e0ee..fbb94de 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1864,16 +1864,21 @@ gensync@^1.0.0-beta.2: resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== -get-stream@^6.0.0, get-stream@^8.0.1: - version "8.0.1" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz" - integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA== +get-stream@^6.0.0: + version "6.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== get-stream@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== +get-stream@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz" + integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA== + github-from-package@0.0.0: version "0.0.0" resolved "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz"