feat: better home page

This commit is contained in:
rzmk 2025-12-15 11:57:30 -05:00
parent 261b4ba21a
commit 1de7c29050
15 changed files with 1251 additions and 99 deletions

1
docs/lib/cn.ts Normal file
View file

@ -0,0 +1 @@
export { twMerge as cn } from 'tailwind-merge';

15
docs/lib/merge-refs.ts Normal file
View file

@ -0,0 +1,15 @@
import type * as React from 'react';
export function mergeRefs<T>(
...refs: (React.Ref<T> | undefined)[]
): React.RefCallback<T> {
return (value) => {
refs.forEach((ref) => {
if (typeof ref === 'function') {
ref(value);
} else if (ref) {
ref.current = value;
}
});
};
}

6
docs/lib/utils.ts Normal file
View file

@ -0,0 +1,6 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}