diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index 266b958..402e94d 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -15,9 +15,9 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ const documents = { "\n query PagePaths {\n pages {\n slug\n }\n }\n ": types.PagePathsDocument, "\n query Page($slug: String) {\n page(where: { slug: $slug }) {\n title\n slug\n menuPosition\n content\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n ": types.PageDocument, - "\n query AllEvents($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n ": types.AllEventsDocument, "\n query EventPaths {\n events {\n slug\n }\n }\n ": types.EventPathsDocument, "\n query Event($slug: String) {\n event(where: { slug: $slug }) {\n slug\n title\n details\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n ": types.EventDocument, + "\n query AllEvents($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n ": types.AllEventsDocument, "\n query Events($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n\n backgroundColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n ": types.EventsDocument, "\n query Home($cutoffDate: Date!) {\n events(where: {activeUntil_gte: $cutoffDate}, orderBy: activeUntil_ASC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n content: pages (where: { slug: \"startseite\" }) {\n content\n }\n }\n ": types.HomeDocument, }; @@ -33,15 +33,15 @@ export function gql(source: "\n query Page($slug: String) {\n page(w /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query AllEvents($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "): (typeof documents)["\n query AllEvents($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "]; +export function gql(source: "\n query EventPaths {\n events {\n slug\n }\n }\n "): (typeof documents)["\n query EventPaths {\n events {\n slug\n }\n }\n "]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query EventPaths {\n events {\n slug\n }\n }\n "): (typeof documents)["\n query EventPaths {\n events {\n slug\n }\n }\n "]; +export function gql(source: "\n query Event($slug: String) {\n event(where: { slug: $slug }) {\n slug\n title\n details\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "): (typeof documents)["\n query Event($slug: String) {\n event(where: { slug: $slug }) {\n slug\n title\n details\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query Event($slug: String) {\n event(where: { slug: $slug }) {\n slug\n title\n details\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "): (typeof documents)["\n query Event($slug: String) {\n event(where: { slug: $slug }) {\n slug\n title\n details\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "]; +export function gql(source: "\n query AllEvents($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "): (typeof documents)["\n query AllEvents($today: Date!) {\n events(where: {activeUntil_lt: $today}, orderBy: activeUntil_DESC) {\n slug\n title\n description\n\n flyer {\n url\n }\n backgroundColor {\n hex\n }\n textColor {\n hex\n }\n\n performances(orderBy: startingAt_ASC) {\n startingAt\n location\n }\n }\n pages (where: { menuPosition_not: null }) {\n slug\n menuPosition\n title\n }\n }\n "]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index ae01821..36eba96 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -4829,13 +4829,6 @@ export type PageQueryVariables = Exact<{ export type PageQuery = { __typename?: 'Query', page?: { __typename?: 'Page', title: string, slug: string, menuPosition?: number | null, content?: string | null } | null, pages: Array<{ __typename?: 'Page', slug: string, menuPosition?: number | null, title: string }> }; -export type AllEventsQueryVariables = Exact<{ - today: Scalars['Date']; -}>; - - -export type AllEventsQuery = { __typename?: 'Query', events: Array<{ __typename?: 'Event', slug: string, title: string, description?: string | null, flyer?: { __typename?: 'Asset', url: string } | null, backgroundColor?: { __typename?: 'Color', hex: any } | null, textColor?: { __typename?: 'Color', hex: any } | null, performances: Array<{ __typename?: 'Performance', startingAt: any, location?: string | null }> }>, pages: Array<{ __typename?: 'Page', slug: string, menuPosition?: number | null, title: string }> }; - export type EventPathsQueryVariables = Exact<{ [key: string]: never; }>; @@ -4848,6 +4841,13 @@ export type EventQueryVariables = Exact<{ export type EventQuery = { __typename?: 'Query', event?: { __typename?: 'Event', slug: string, title: string, details?: string | null, flyer?: { __typename?: 'Asset', url: string } | null, backgroundColor?: { __typename?: 'Color', hex: any } | null, textColor?: { __typename?: 'Color', hex: any } | null, performances: Array<{ __typename?: 'Performance', startingAt: any, location?: string | null }> } | null, pages: Array<{ __typename?: 'Page', slug: string, menuPosition?: number | null, title: string }> }; +export type AllEventsQueryVariables = Exact<{ + today: Scalars['Date']; +}>; + + +export type AllEventsQuery = { __typename?: 'Query', events: Array<{ __typename?: 'Event', slug: string, title: string, description?: string | null, flyer?: { __typename?: 'Asset', url: string } | null, backgroundColor?: { __typename?: 'Color', hex: any } | null, textColor?: { __typename?: 'Color', hex: any } | null, performances: Array<{ __typename?: 'Performance', startingAt: any, location?: string | null }> }>, pages: Array<{ __typename?: 'Page', slug: string, menuPosition?: number | null, title: string }> }; + export type EventsQueryVariables = Exact<{ today: Scalars['Date']; }>; @@ -4865,8 +4865,8 @@ export type HomeQuery = { __typename?: 'Query', events: Array<{ __typename?: 'Ev export const PagePathsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PagePaths"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]} as unknown as DocumentNode; export const PageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Page"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"page"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"content"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"menuPosition_not"},"value":{"kind":"NullValue"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; -export const AllEventsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllEvents"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"today"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Date"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"events"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"activeUntil_lt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"today"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"activeUntil_DESC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"flyer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"backgroundColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"textColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"performances"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"startingAt_ASC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startingAt"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"menuPosition_not"},"value":{"kind":"NullValue"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; export const EventPathsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EventPaths"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]} as unknown as DocumentNode; export const EventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Event"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"details"}},{"kind":"Field","name":{"kind":"Name","value":"flyer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"backgroundColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"textColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"performances"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"startingAt_ASC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startingAt"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"menuPosition_not"},"value":{"kind":"NullValue"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; +export const AllEventsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllEvents"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"today"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Date"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"events"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"activeUntil_lt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"today"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"activeUntil_DESC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"flyer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"backgroundColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"textColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"performances"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"startingAt_ASC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startingAt"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"menuPosition_not"},"value":{"kind":"NullValue"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; export const EventsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Events"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"today"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Date"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"events"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"activeUntil_lt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"today"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"activeUntil_DESC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"backgroundColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"performances"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"startingAt_ASC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startingAt"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"menuPosition_not"},"value":{"kind":"NullValue"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; export const HomeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Home"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cutoffDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Date"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"events"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"activeUntil_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cutoffDate"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"activeUntil_ASC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"flyer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"backgroundColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"textColor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hex"}}]}},{"kind":"Field","name":{"kind":"Name","value":"performances"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"startingAt_ASC"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startingAt"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"menuPosition_not"},"value":{"kind":"NullValue"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"menuPosition"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"content"},"name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"StringValue","value":"startseite","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"content"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/src/pages/[slug].tsx b/src/pages/[slug].tsx index fdf6b6d..060dc81 100644 --- a/src/pages/[slug].tsx +++ b/src/pages/[slug].tsx @@ -64,7 +64,7 @@ export default function Page({ page, pages }: Props) { return ( -
+
{page.content || ""}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 416a1b2..d573664 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -78,7 +78,7 @@ export default function Home({ events, pages, content }: Props) {
{content?.[0]?.content || ""}

- mehr über uns + mehr

@@ -122,8 +122,8 @@ export default function Home({ events, pages, content }: Props) {

- schau dir die vergangenen veranstaltungen im{" "} - archiv an. + Schau dir die vergangenen Veranstaltungen im{" "} + Archiv an.

diff --git a/src/styles/globals.css b/src/styles/globals.css index b42563f..ea2daab 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -225,11 +225,13 @@ a { padding: 16px 12px 64px 12px; } .hero .text-styles p { + max-width: 420px; + opacity: 1; color: var(--white); - font-size: 1.2rem; - letter-spacing: 0em; + font-size: 1.8rem; + letter-spacing: -0.01em; } .hero .text-styles p.regular { font-size: .95rem; @@ -317,3 +319,9 @@ a { } } +/* Text pages */ + +.text-page { + padding-top: 32px; +} +