feat: reformula landing page e experiência mobile

This commit is contained in:
Felipe Coutinho
2026-03-20 18:35:12 +00:00
parent 33a5d6f5f0
commit 5b8d25d894
41 changed files with 692 additions and 453 deletions

View File

@@ -26,7 +26,10 @@ export function Logo({
alt="OpenMonetis"
width={32}
height={32}
className={cn("object-contain", !colorIcon && "brightness-0 saturate-0")}
className={cn(
"object-contain",
!colorIcon && "brightness-0 saturate-0",
)}
priority
/>
<Image

View File

@@ -3,12 +3,9 @@ import path from "node:path";
const LOGOS_DIRECTORY = path.join(process.cwd(), "public", "logos");
const LOGO_EXTENSIONS = new Set([".png", ".jpg", ".jpeg", ".svg", ".webp"]);
let logoOptionsPromise: Promise<string[]> | null = null;
/**
* Loads available logo files from the public/logos directory
* @returns Array of logo filenames sorted alphabetically
*/
export async function loadLogoOptions() {
async function readLogoOptions() {
try {
const files = await readdir(LOGOS_DIRECTORY, { withFileTypes: true });
@@ -21,3 +18,8 @@ export async function loadLogoOptions() {
return [];
}
}
export async function loadLogoOptions() {
logoOptionsPromise ??= readLogoOptions();
return logoOptionsPromise;
}