const fs = require('fs'); const path = require('path'); // 1. Fix reset.css let resetCss = fs.readFileSync('frontend/css/reset.css', 'utf-8'); resetCss = resetCss.replace( "font-family: 'Michroma', sans-serif;", "font-family: 'Michroma', sans-serif;\n font-weight: 400;" ); resetCss = resetCss.replace( "h1, h2, h3, h4, h5, h6 { font-family: 'Goldman', sans-serif; }", "h1, h2, h3, h4, h5, h6 { font-family: 'Goldman', sans-serif; font-weight: 700; }" ); fs.writeFileSync('frontend/css/reset.css', resetCss); // 2. Fix landing.html fonts and emojis let landing = fs.readFileSync('frontend/landing.html', 'utf-8'); if (!landing.includes('font-awesome')) { landing = landing.replace( '', ' \n' ); } // Add fonts if (!landing.includes('Michroma')) { landing = landing.replace( '', ' \n \n \n' ); } // Replace emojis with fontawesome icons manually based on the context const emojiMap = { '📺': '', '🎬': '', '🖥': '', '📅': '', '🎶': '', '🏢': '', '🔧': '', '🖱': '', '📊': '', '🔔': '', '🔌': '', '📱': '', '🔒': '', '🎨': '', '👥': '', '🔄': '', '🛒': '', '🍽': '', '🏫': '', '🏥': '', '⛪': '', '🏋': '', '🤖': '', '🔥': '', '🥏': '', '💻': '', '🌐': '' }; for (const [emoji, icon] of Object.entries(emojiMap)) { landing = landing.split(emoji).join(icon); } // Add CSS to landing page for fonts landing = landing.replace( '', ` body { font-family: 'Michroma', sans-serif; font-weight: 400; } h1, h2, h3, h4, h5, h6, .brand { font-family: 'Goldman', sans-serif; font-weight: 700; } .feature-icon { font-size: 32px; color: var(--accent); margin-bottom: 16px; } .platform-item .icon { font-size: 32px; color: var(--accent); margin-bottom: 8px; } ` ); fs.writeFileSync('frontend/landing.html', landing); console.log('Fixed fonts and emojis');