feat: initial frontend build for RIT Freshers Hub

This commit is contained in:
Amudieshwar A G
2026-07-21 12:21:53 +05:30
commit e2c86755ef
40 changed files with 8544 additions and 0 deletions

22
src/lib/utils.ts Normal file
View File

@@ -0,0 +1,22 @@
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function formatDate(dateStr: string): string {
return new Date(dateStr).toLocaleDateString('en-IN', {
day: 'numeric',
month: 'long',
year: 'numeric',
});
}
export function formatTime(timeStr: string): string {
return timeStr;
}
export function truncate(str: string, n: number): string {
return str.length > n ? str.substring(0, n - 1) + '…' : str;
}