add static address + map block

This commit is contained in:
2024-07-07 16:47:33 +02:00
parent aeb5c88a54
commit e03e2624db
17 changed files with 298 additions and 8 deletions

View File

@ -7,6 +7,7 @@ import { PageSectionBlock, PageSectionNavigationBlock } from "./PageSection";
import { ContactSectionBlock, ContactSubsectionBlock } from "./ContactSection";
import { ContactListBlock } from "./ContactListBlock";
import { ContactEntityBlock } from "./ContactEntityBlock";
import { NeufAddressSectionBlock } from "./NeufAddressSectionBlock";
export const Blocks = ({ blocks }: any) => {
const sections = blocks.filter(
@ -48,6 +49,9 @@ export const Blocks = ({ blocks }: any) => {
case "ContactEntityBlock":
return <ContactEntityBlock block={block} />;
break;
case "NeufAddressSectionBlock":
return <NeufAddressSectionBlock />;
break;
default:
return <div>Unsupported block type {block.blockType}</div>;
console.log("unsupported block", block);

View File

@ -1,10 +1,10 @@
import styles from "./addressSection.module.scss";
import styles from "./neufAddressSectionBlock.module.scss";
export const AddressSection = () => {
export const NeufAddressSectionBlock = () => {
return (
<div className={styles.addressSection}>
<div className={styles.text}>
<h2>Adresse</h2>
<h3>Adresse</h3>
<div>
Chateau Neuf
<br />
@ -13,7 +13,7 @@ export const AddressSection = () => {
0369 Oslo
<br />
<br />
<a href="#" target="_blank">
<a href="https://maps.app.goo.gl/QFw4Cu7eVsnZ42or7" target="_blank">
Vis i Google Maps
</a>
</div>