From 576c071a46f1e5ee10d8ca24419efd2e9528e389 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Sat, 18 Feb 2023 22:37:09 +0000 Subject: [PATCH] Updated simple layout component --- components/layouts/SimpleLayout.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/components/layouts/SimpleLayout.tsx b/components/layouts/SimpleLayout.tsx index 3b7d3e7..9f32750 100644 --- a/components/layouts/SimpleLayout.tsx +++ b/components/layouts/SimpleLayout.tsx @@ -1,6 +1,6 @@ import {ReactNode} from 'react' -import clsx from 'clsx' import {Container} from '@/components/Container' +import {twMerge} from 'tailwind-merge' type SimpleLayout = { title: string @@ -19,9 +19,15 @@ export function SimpleLayout({

+ className={twMerge(` + text-4xl + font-bold + tracking-tight + text-zinc-800 + dark:text-zinc-100 + sm:text-5xl + ${gradient ? `${gradient} bg-clip-text dark:text-transparent` : ''} + `)}> {title}