+
diff --git a/src/components/MassTable/massrow.module.scss b/src/components/MassTable/massrow.module.scss
deleted file mode 100644
index 79b65e2..0000000
--- a/src/components/MassTable/massrow.module.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-.row {
- display: flex;
- gap: 30px;
- justify-content: center;
- flex-wrap: wrap;
-}
\ No newline at end of file
diff --git a/src/components/MassTable/styles.module.scss b/src/components/MassTable/styles.module.scss
index e353045..e1eb3ed 100644
--- a/src/components/MassTable/styles.module.scss
+++ b/src/components/MassTable/styles.module.scss
@@ -17,8 +17,7 @@
.location {
font-size: 22px;
- font-weight: bold;
- margin-bottom: 10px;
+ font-weight: 700;
}
.cancelled {
@@ -44,11 +43,8 @@
.table {
width: 200px;
- display: flex;
- flex-direction: column;
- align-items: center;
-}
-
-.church {
- margin-bottom: 20px;
+ display: grid;
+ grid-row: span 3;
+ grid-template-rows: subgrid;
+ justify-items: center;
}
diff --git a/src/compositions/Blocks/MassTimesBlock.tsx b/src/compositions/Blocks/MassTimesBlock.tsx
index 0e78312..bd2c23c 100644
--- a/src/compositions/Blocks/MassTimesBlock.tsx
+++ b/src/compositions/Blocks/MassTimesBlock.tsx
@@ -5,7 +5,7 @@ import { fetchLastCalendars } from '@/fetch/calendar'
import { perParish } from '@/utils/dto/perParish'
import { Section } from '@/components/Section/Section'
import { Title } from '@/components/Title/Title'
-import { MassRow } from '@/components/MassTable/MassRow'
+import { MassGrid } from '@/components/MassTable/MassGrid'
import { MassTable } from '@/components/MassTable/MassTable'
import { PopupButton } from '@/components/PopupButton/PopupButton'
import { Button } from '@/components/Button/Button'
@@ -67,7 +67,7 @@ export async function MassTimesBlock({
/>
-
+
{worshipPerLocation.map((value) => (
))}
-
+
diff --git a/src/pageComponents/Home/Home.tsx b/src/pageComponents/Home/Home.tsx
index 79f22c1..33607e4 100644
--- a/src/pageComponents/Home/Home.tsx
+++ b/src/pageComponents/Home/Home.tsx
@@ -5,7 +5,7 @@ import { Section } from '@/components/Section/Section'
import { MainText } from '@/components/MainText/MainText'
import { HR } from '@/components/HorizontalRule/HorizontalRule'
import { Title } from '@/components/Title/Title'
-import { MassRow } from '@/components/MassTable/MassRow'
+import { MassGrid } from '@/components/MassTable/MassGrid'
import { MassTable } from '@/components/MassTable/MassTable'
import { ImageCardSlider } from '@/compositions/ImageCardSlider/ImageCardSlider'
import { blogToSlides } from '@/utils/dto/blog'
@@ -109,9 +109,9 @@ export const Home = ({
/>
-
+
{worshipPerLocation.map(value => )}
-
+
diff --git a/src/utils/church.ts b/src/utils/church.ts
index 039761c..5f3cbad 100644
--- a/src/utils/church.ts
+++ b/src/utils/church.ts
@@ -2,27 +2,60 @@
* Convert string to a church
* @param s
*/
-export const church = (s: string) : "anna" | "christophorus" | "richard" | "eduard" | "clara" => {
+export const church = (s: string) : "anna" | "christophorus" | "richard" | "eduard" | "clara" | "joseph" | "franziskus" | "antonius" | "marien" | "maria" | "antoniusFalkenberg" | "johannesNepomuk" => {
+ const lower = s.toLowerCase()
- if (s.toLowerCase().includes("anna")) {
+
+ // Berlin - Heilige drei Koenige
+ if (lower.includes("anna")) {
return "anna"
}
- if (s.toLowerCase().includes("christophorus")) {
+ if (lower.includes("christophorus")) {
return "christophorus"
}
- if (s.toLowerCase().includes("richard")) {
+ if (lower.includes("richard")) {
return "richard"
}
- if (s.toLowerCase().includes("eduard")) {
+ if (lower.includes("eduard")) {
return "eduard"
}
- if (s.toLowerCase().includes("clara")) {
+ if (lower.includes("clara")) {
return "clara"
}
+ // Chemnitz
+
+ if (lower.includes("joseph")) {
+ return "joseph"
+ }
+
+ if (lower.includes("franziskus")) {
+ return "franziskus"
+ }
+
+ if (lower.includes("falkenberg")) {
+ return "antoniusFalkenberg"
+ }
+
+ if (lower.includes("antonius")) {
+ return "antonius"
+ }
+
+ if (lower.includes("marien")) {
+ return "marien"
+ }
+
+ if (lower.includes("maria")) {
+ return "maria"
+ }
+
+ if (lower.includes("johannes") || lower.includes("nepomuk")) {
+ return "johannesNepomuk"
+ }
+
return "clara";
}
\ No newline at end of file