feat: reworked page and components

This commit is contained in:
Bart van der Braak 2023-06-14 16:33:08 +02:00
parent 23bdd5aa94
commit 62656fa963
8 changed files with 175 additions and 113 deletions

15
lib/utils.ts Normal file
View file

@ -0,0 +1,15 @@
import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function formatDate(input: string | number): string {
const date = new Date(input);
return date.toLocaleDateString("en-US", {
month: "long",
day: "numeric",
year: "numeric",
});
}