diff --git a/astro.config.mjs b/astro.config.mjs index 0bd8c991e..bdd7f84d3 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,8 +1,6 @@ -import path, { dirname } from "path"; -import { fileURLToPath } from "url"; +import path from "path"; import { defineConfig } from "astro/config"; import mdx from "@astrojs/mdx"; -import { h } from "hastscript"; import sitemap from "@astrojs/sitemap"; import react from "@astrojs/react"; import tailwind from "@astrojs/tailwind"; @@ -13,9 +11,6 @@ import metaTags from "astro-meta-tags"; import pagefind from "astro-pagefind"; import deleteUnusedImages from "astro-delete-unused-images"; -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); // @type-check enabled! - // https://astro.build/config export default defineConfig({ vite: { @@ -24,6 +19,7 @@ export default defineConfig({ }, resolve: { alias: { + "@data": path.resolve("./src/data"), "@components": path.resolve("./src/components"), "@sections": path.resolve("./src/components/sections"), "@layouts": path.resolve("./src/layouts"), @@ -80,4 +76,7 @@ export default defineConfig({ build: { minify: true, }, + experimental: { + svg: true, + }, }); diff --git a/src/components/hero-section/prague.png b/src/assets/prague.png similarity index 100% rename from src/components/hero-section/prague.png rename to src/assets/prague.png diff --git a/src/assets/prague.svg b/src/assets/prague.svg new file mode 100644 index 000000000..fd573e38b --- /dev/null +++ b/src/assets/prague.svg @@ -0,0 +1,13 @@ + + + + diff --git a/src/components/hero-section/prague.astro b/src/components/hero-section/prague.astro deleted file mode 100644 index 75db50439..000000000 --- a/src/components/hero-section/prague.astro +++ /dev/null @@ -1,40 +0,0 @@ ---- -import Prose from "../prose/prose.astro"; -import Button from "@ui/Button.astro"; -import { Title } from "../typography/title"; -import { Image } from "astro:assets"; - -export interface Props { - title: string; -} - -const { title } = Astro.props; - -import venueImage from "./prague.png"; ---- - -
- -
- {title} - - - - - -
- -
-
- -
-
-
diff --git a/src/components/sections/prague.astro b/src/components/sections/prague.astro index 367ffc2c7..96da488d4 100644 --- a/src/components/sections/prague.astro +++ b/src/components/sections/prague.astro @@ -1,9 +1,63 @@ --- -import PragueComponent from "@components/hero-section/prague.astro"; -import * as venue from "../../data/home/prague.mdx"; +import Button from "@ui/Button.astro"; +import { Title } from "@components/typography/title"; +import { Image } from "astro:assets"; +import pragueImage from "@assets/prague.png"; +import Logo from "@assets/prague.svg"; --- -
- - - -
+ +
+
+ +
+ Prague +
+ While we are getting the conference ready for you, + why don't you take a look at the beautiful city of Prague? +
+
+ +
+
+ +
+
+
+
+ +
+ +
+ + diff --git a/src/data/home/prague.mdx b/src/data/home/prague.mdx deleted file mode 100644 index c9dd05a04..000000000 --- a/src/data/home/prague.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Prague ---- - -While we are getting the conference ready for you, -why don't you take a look at the beautiful city of Prague? diff --git a/src/pages/index.astro b/src/pages/index.astro index 15889f58c..42a6314e1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -16,7 +16,6 @@ import Prague from "@sections/prague.astro"; - diff --git a/tsconfig.json b/tsconfig.json index 27851a6c8..6046422f2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "jsxImportSource": "react", "paths": { + "@data/*": ["src/data/*"], "@components/*": ["src/components/*"], "@sections/*": ["src/components/sections/*"], "@ui/*": ["src/components/ui/*"],