Tecnologia/Template-01/index.html

50 lines
2.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><rect width=%22100%22 height=%22100%22 rx=%2220%22 fill=%22%230070F3%22/><text y=%22.9em%22 font-size=%2280%22 x=%2250%%22 text-anchor=%22middle%22 fill=%22white%22 font-family=%22monospace%22 font-weight=%22bold%22>N</text></svg>" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<!-- Theme Auto-Updater injected by autoblogia -->
<script>
window.addEventListener('message', (event) => {
if (event.data && event.data.type === 'UPDATE_APPEARANCE') {
const { primaryColor, backgroundColor, fontFamily } = event.data.settings;
const root = document.documentElement;
const style = root.style;
if (primaryColor) {
style.setProperty('--primary', primaryColor);
style.setProperty('--color-primary', primaryColor);
style.setProperty('--color-tech-primary', primaryColor);
style.setProperty('--color-seo-primary', primaryColor);
style.setProperty('--color-finance-primary', primaryColor);
style.setProperty('--color-recipe-primary', primaryColor);
style.setProperty('--color-health-primary', primaryColor);
style.setProperty('--color-corporate-primary', primaryColor);
}
if (backgroundColor) {
style.setProperty('--background', backgroundColor);
style.setProperty('--color-bg', backgroundColor);
style.setProperty('--color-tech-surface', backgroundColor);
style.setProperty('--color-seo-surface', backgroundColor);
style.backgroundColor = backgroundColor;
}
if (fontFamily) {
const fontString = '"' + fontFamily + '", sans-serif';
style.setProperty('--font-family', fontString);
style.setProperty('--font-sans', fontString);
style.fontFamily = fontString;
}
}
});
// Ping parent window that we are ready
window.parent.postMessage({ type: 'IFRAME_READY' }, '*');
</script>
</body>
</html>