Skip to content

Commit 3225c72

Browse files
committed
Clean up: Port Map component to Astro.
1 parent 2be786f commit 3225c72

File tree

4 files changed

+5
-33
lines changed

4 files changed

+5
-33
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export const Map = () => (
1+
<Fragment is:raw>
22
<iframe
33
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d10245.064741908278!2d14.4290206!3d50.0625764!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x4d26855708eb61f7!2sPrague%20Congress%20Centre!5e0!3m2!1sen!2suk!4v1676555813425!5m2!1sen!2suk"
44
title="Map"
5-
className="w-full aspect-video max-w-[800px] border-4 border-white rounded-lg shadow-lg"
6-
allowFullScreen={true}
5+
class="w-full aspect-video max-w-[800px] border-4 border-white rounded-lg shadow-lg"
6+
allowFullScreen="true"
77
loading="lazy"
88
referrerPolicy="no-referrer-when-downgrade"
99
></iframe>
10-
);
10+
</Fragment>

src/components/link/link.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/components/map/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { type CollectionEntry, getCollection } from "astro:content";
33
import Layout from "@layouts/MarkdownLayout.astro";
44
55
import Separator from "@ui/Separator.astro";
6-
import { Map } from "@components/map";
6+
import Map from "@components/Map.astro";
77
import YouTube from "@ui/YouTube.astro";
88
import HighlightCard from "@components/highlight-list/highlight-card.astro";
99
import HighlightItem from "@components/highlight-list/highlight-item.astro";

0 commit comments

Comments
 (0)