Initial commit

This commit is contained in:
Rami Bitar
2026-04-19 11:17:41 -04:00
commit b5a79b6475
77 changed files with 10416 additions and 0 deletions

20
lib/config.json Normal file
View File

@@ -0,0 +1,20 @@
{
"brand": {
"colors": {
"primary": "#0F172A",
"secondary": "#343D4C"
},
"fonts": {
"header": "Playfair Display",
"body": "Inter"
},
"logo": {
"url": "",
"alt": ""
}
},
"data": {
"product": "mens-performance-t-short",
"collection": "home"
}
}

18
lib/utils.ts Normal file
View File

@@ -0,0 +1,18 @@
import { twMerge } from 'tailwind-merge';
type ClassValue = string | undefined | null | false | Record<string, boolean>;
type ClassArray = ClassValue[];
export function cn(...classes: (ClassValue | ClassArray)[]): string {
const merged = classes
.flat()
.filter((cls): cls is string => typeof cls === 'string')
.join(' ');
return twMerge(merged);
}
export const truncate = (text: string, maxLength: number): string => {
if (!text) return '';
if (text.length <= maxLength) return text;
return text.slice(0, maxLength).trim() + '...';
};