fix: root layout
|
|
@ -1,5 +1,5 @@
|
|||
import { Section } from '@/components/Section/Section'
|
||||
import { Container } from '@/components/Container/Container'
|
||||
import { Section } from '../../../../components/Section/Section'
|
||||
import { Container } from '../../../../components/Container/Container'
|
||||
import { Title } from '@/components/Title/Title'
|
||||
import { TextDiv } from '@/components/Text/TextDiv'
|
||||
import { Blog } from '@/payload-types'
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
|
@ -1,9 +1,9 @@
|
|||
import type { Metadata } from 'next'
|
||||
import { defaultFont } from './fonts'
|
||||
import { defaultFont } from '@/assets/fonts'
|
||||
import './globals.css'
|
||||
import { Menu } from '@/components/Menu/Menu'
|
||||
import { Footer } from '@/compositions/Footer/Footer'
|
||||
import { comment } from '@/app/layout-comment'
|
||||
import { comment } from '@/app/(home)/layout-comment'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Katholische Pfarrei Heilige drei Könige Berlin',
|
||||
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 826 KiB |
BIN
src/app/mons.jpg
|
Before Width: | Height: | Size: 110 KiB |
|
|
@ -1,7 +1,7 @@
|
|||
import { Logo } from '@/components/Logo/Logo'
|
||||
import styles from "./styles.module.scss"
|
||||
import classNames from 'classnames'
|
||||
import { faustina } from '@/app/fonts'
|
||||
import { faustina } from '@/assets/fonts'
|
||||
|
||||
export const Banner = () => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { MassTableRow } from '@/components/MassTable/MassTableRow'
|
||||
import styles from './styles.module.scss'
|
||||
import { faustina } from '@/app/fonts'
|
||||
import { Worship } from '@/payload-types'
|
||||
import { ChurchCard } from '@/components/ChurchCard/ChurchCard'
|
||||
import { church } from '@/utils/church'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import styles from "./styles.module.scss"
|
||||
import { faustina } from '@/app/fonts'
|
||||
import { faustina } from '@/assets/fonts'
|
||||
import Link from 'next/link'
|
||||
|
||||
type MegaMenuProps = {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import styles from './styles.module.scss'
|
||||
import { Container } from '@/components/Container/Container'
|
||||
import classNames from 'classnames'
|
||||
import { faustina } from '@/app/fonts'
|
||||
import { faustina } from '@/assets/fonts'
|
||||
|
||||
type TestimonyProps = {
|
||||
name?: string
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import styles from "./styles.module.scss";
|
||||
import classNames from 'classnames'
|
||||
import { faustina } from '@/app/fonts'
|
||||
import { faustina } from '@/assets/fonts'
|
||||
|
||||
type TitleProps = {
|
||||
title: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import styles from './bannerText.module.css'
|
||||
import { faustina, defaultFont } from '@/app/fonts'
|
||||
import { faustina, defaultFont } from '@/assets/fonts'
|
||||
|
||||
export const BannerText = () => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import classNames from 'classnames'
|
||||
import { faustina } from '@/app/fonts'
|
||||
import { faustina } from '@/assets/fonts'
|
||||
import styles from './styles.module.css'
|
||||
import { Pill } from '@/components/Pill/Pill'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { Input } from '@/components/Input/Input'
|
|||
import { Button } from '@/components/Button/Button'
|
||||
import styles from "./styles.module.scss"
|
||||
import classNames from 'classnames'
|
||||
import { send } from '@/app/actions'
|
||||
import { send } from '@/utils/actions'
|
||||
import { useActionState } from 'react'
|
||||
|
||||
type ContactFormProps = {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import { PaginatedDocs } from 'payload'
|
|||
export const fetchLastAnnouncement = async (parishId: string): Promise<Announcement | undefined> => {
|
||||
const date = new Date();
|
||||
date.setDate(date.getDate() - 14)
|
||||
const tomorrow = new Date();
|
||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
tomorrow.setHours(23,59,59,59);
|
||||
|
||||
const query: any = {
|
||||
and: [
|
||||
|
|
@ -20,6 +23,11 @@ export const fetchLastAnnouncement = async (parishId: string): Promise<Announcem
|
|||
date: {
|
||||
greater_than_equal: date.toISOString(),
|
||||
}
|
||||
},
|
||||
{
|
||||
date: {
|
||||
less_than_equal: tomorrow.toISOString()
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@ import { Calendar } from '@/payload-types'
|
|||
*/
|
||||
export const fetchLastCalendar = async (parishId: string): Promise<Calendar | undefined> => {
|
||||
const date = new Date();
|
||||
date.setDate(date.getDate() - 14)
|
||||
date.setDate(date.getDate() - 14);
|
||||
const tomorrow = new Date();
|
||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
tomorrow.setHours(23,59,59,59);
|
||||
|
||||
const query: any = {
|
||||
and: [
|
||||
|
|
@ -20,6 +23,11 @@ export const fetchLastCalendar = async (parishId: string): Promise<Calendar | u
|
|||
date: {
|
||||
greater_than_equal: date.toISOString(),
|
||||
}
|
||||
},
|
||||
{
|
||||
date: {
|
||||
less_than_equal: tomorrow.toISOString()
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||