mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-28 15:29:11 +00:00
feat: reworked page and components
This commit is contained in:
parent
23bdd5aa94
commit
62656fa963
8 changed files with 175 additions and 113 deletions
15
lib/utils.ts
Normal file
15
lib/utils.ts
Normal 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",
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue