Enhance Next.js configuration and dependencies for improved functionality and localization support. Added support for internationalization with next-intl, updated global styles, and integrated new fonts. Removed default home page and updated README with project details and setup instructions.
This commit is contained in:
1 parent
2911dea00b
commit
44f4fa98e2
320 files changed
+31666
-220
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const levels = {
|
||||
1: "text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl",
|
||||
2: "text-2xl font-bold tracking-tight sm:text-3xl",
|
||||
3: "text-lg font-semibold sm:text-xl",
|
||||
4: "text-base font-semibold sm:text-lg",
|
||||
} as const;
|
||||
|
||||
type HeadingProps = React.ComponentProps<"h1"> & {
|
||||
as?: "h1" | "h2" | "h3" | "h4";
|
||||
level?: keyof typeof levels;
|
||||
};
|
||||
|
||||
export function Heading({ as, level = 2, className, ...props }: HeadingProps) {
|
||||
const Tag = as ?? (`h${level}` as "h1" | "h2" | "h3" | "h4");
|
||||
return <Tag className={cn(levels[level], className)} {...props} />;
|
||||
}
|
||||
Reference in new issue
Block a user