diff --git a/apps/content/lib/colors.ts b/apps/content/lib/colors.ts index 233d84f..02a53d5 100644 --- a/apps/content/lib/colors.ts +++ b/apps/content/lib/colors.ts @@ -2,18 +2,16 @@ export const backgroundColors = [ "primary", "secondary", "dark", - 'lilac', + "lilac", "pinkCandy", "redCandy", "stone", "mint", - 'oceanFoam', + "oceanFoam", "salmon", - 'sun', + "sun", "blueExtreme", "lilacExtreme", ]; -export const colors = [ - 'light', 'dark' -]; \ No newline at end of file +export const colors = ["light", "dark"]; diff --git a/apps/content/sanity.cli.ts b/apps/content/sanity.cli.ts index c4a7968..ce1f427 100644 --- a/apps/content/sanity.cli.ts +++ b/apps/content/sanity.cli.ts @@ -1,8 +1,8 @@ -import {defineCliConfig} from 'sanity/cli' +import { defineCliConfig } from "sanity/cli"; export default defineCliConfig({ api: { - projectId: 'dk9hv6ix', - dataset: 'production' - } -}) + projectId: "dk9hv6ix", + dataset: "production", + }, +}); diff --git a/apps/content/sanity.config.ts b/apps/content/sanity.config.ts index 6f71d03..b2e15a3 100644 --- a/apps/content/sanity.config.ts +++ b/apps/content/sanity.config.ts @@ -1,17 +1,17 @@ -import { visionTool } from '@sanity/vision'; -import { defineConfig } from 'sanity'; +import { visionTool } from "@sanity/vision"; +import { defineConfig } from "sanity"; import { unsplashImageAsset } from "sanity-plugin-asset-source-unsplash"; import { markdownSchema } from "sanity-plugin-markdown"; -import { media } from 'sanity-plugin-media'; -import { deskTool } from 'sanity/desk'; -import { schemaTypes } from './schemas'; +import { media } from "sanity-plugin-media"; +import { deskTool } from "sanity/desk"; +import { schemaTypes } from "./schemas"; export default defineConfig({ - name: 'default', - title: 'katharinaclasen-com', + name: "default", + title: "katharinaclasen-com", - projectId: 'dk9hv6ix', - dataset: 'production', + projectId: "dk9hv6ix", + dataset: "production", plugins: [ deskTool(), @@ -24,4 +24,4 @@ export default defineConfig({ schema: { types: schemaTypes, }, -}) +}); diff --git a/apps/content/schemas/accordionItem.ts b/apps/content/schemas/accordionItem.ts index 4597b74..12037b1 100644 --- a/apps/content/schemas/accordionItem.ts +++ b/apps/content/schemas/accordionItem.ts @@ -1,11 +1,11 @@ -import { defineField, defineType } from 'sanity'; -import { backgroundColors, colors } from '../lib/colors'; -import { illustrations } from '../lib/illustration'; +import { defineField, defineType } from "sanity"; +import { backgroundColors, colors } from "../lib/colors"; +import { illustrations } from "../lib/illustration"; export const accordionItem = defineType({ - name: 'accordionItem', - title: 'Accordion Item', - type: 'document', + name: "accordionItem", + title: "Accordion Item", + type: "document", groups: [ { name: "content", @@ -88,5 +88,5 @@ export const accordionItem = defineType({ }, group: "visual", }), - ] -}); \ No newline at end of file + ], +}); diff --git a/apps/content/schemas/quote.ts b/apps/content/schemas/quote.ts index 5ff58fc..713e6ba 100644 --- a/apps/content/schemas/quote.ts +++ b/apps/content/schemas/quote.ts @@ -6,26 +6,28 @@ export const quote = defineType({ type: "document", fields: [ defineField({ - name: 'author', - title: 'Author', - type: 'string', - validation: Rule => Rule.custom((author, context) => { - // @ts-expect-error - const text = context.document.text; - if (!author && text) return 'Required'; - return true; - }) + name: "author", + title: "Author", + type: "string", + validation: (Rule) => + Rule.custom((author, context) => { + // @ts-expect-error + const text = context.document.text; + if (!author && text) return "Required"; + return true; + }), }), defineField({ - name: 'text', - title: 'Text', - type: 'text', - validation: Rule => Rule.custom((text, context) => { - // @ts-expect-error - const author = context.document.author; - if (!text && author) return 'Required'; - return true; - }) + name: "text", + title: "Text", + type: "text", + validation: (Rule) => + Rule.custom((text, context) => { + // @ts-expect-error + const author = context.document.author; + if (!text && author) return "Required"; + return true; + }), }), - ] + ], }); diff --git a/apps/content/schemas/topic.ts b/apps/content/schemas/topic.ts index 88114c9..ed03fd6 100644 --- a/apps/content/schemas/topic.ts +++ b/apps/content/schemas/topic.ts @@ -1,21 +1,21 @@ -import { defineField, defineType } from 'sanity'; +import { defineField, defineType } from "sanity"; export const topic = defineType({ - name: 'topic', - title: 'Thema', - type: 'document', + name: "topic", + title: "Thema", + type: "document", fields: [ defineField({ - name: 'title', - title: 'Titel', - type: 'string', - validation: Rule => Rule.required() + name: "title", + title: "Titel", + type: "string", + validation: (Rule) => Rule.required(), }), defineField({ - name: 'service', - title: 'Service', - type: 'reference', - to: [{ type: 'service' }], + name: "service", + title: "Service", + type: "reference", + to: [{ type: "service" }], }), - ] -}); \ No newline at end of file + ], +}); diff --git a/apps/website/postcss.config.js b/apps/website/postcss.config.js index 33ad091..12a703d 100644 --- a/apps/website/postcss.config.js +++ b/apps/website/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/apps/website/src/app/(home)/BlogTeaser/BlogTeaser.tsx b/apps/website/src/app/(home)/BlogTeaser/BlogTeaser.tsx index a7c9502..deea96a 100644 --- a/apps/website/src/app/(home)/BlogTeaser/BlogTeaser.tsx +++ b/apps/website/src/app/(home)/BlogTeaser/BlogTeaser.tsx @@ -43,19 +43,19 @@ export const BlogTeaser = async () => { .array( z.object({ title: z.string(), - }) + }), ) .nullable(), topics: z .array( z.object({ title: z.string(), - }) + }), ) .nullable(), content: z.string(), - }) - ) + }), + ), ); return (
@@ -98,7 +98,7 @@ export const BlogTeaser = async () => { ({ outline: "solid", text: service.title, - } as const) + }) as const, ) : []), ...(blogPost.topics @@ -107,7 +107,7 @@ export const BlogTeaser = async () => { ({ outline: "dash", text: topic.title, - } as const) + }) as const, ) : []), ]} diff --git a/apps/website/src/app/(home)/Header/Header.tsx b/apps/website/src/app/(home)/Header/Header.tsx index 67af304..8076d52 100644 --- a/apps/website/src/app/(home)/Header/Header.tsx +++ b/apps/website/src/app/(home)/Header/Header.tsx @@ -14,7 +14,7 @@ import serviceUxResearchImg from "./service-ux-research.png"; export const Header = async () => { const { content } = await getTextSnippet( - "32e5e0f0-a6fc-444f-96c5-86119e3f2204" + "32e5e0f0-a6fc-444f-96c5-86119e3f2204", ); return (
@@ -35,7 +35,7 @@ export const Header = async () => { src={memojiImg} alt="Memoji of Katharina Clasen" priority - className="h-auto w-[100px] animate-in fade-in slide-in-from-left-1/3 duration-500 ease-in-out" + className="h-auto w-[100px] duration-500 ease-in-out animate-in fade-in slide-in-from-left-1/3" /> {content} @@ -119,7 +119,7 @@ export const Header = async () => { /> @@ -102,7 +102,7 @@ export const Carousel = ({ className="flex h-[800px] sm:h-[600px]" >