Fix it
Browse files- components/footer.js +38 -76
- components/navbar.js +4 -3
- script.js +11 -5
- style.css +1 -2
components/footer.js
CHANGED
|
@@ -1,78 +1,40 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en" class="h-full">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>AxiomForge | Cognitive Synthesis Engine</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css">
|
| 8 |
-
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
-
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
-
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
-
<script src="components/navbar.js"></script>
|
| 12 |
-
<script src="components/hero.js"></script>
|
| 13 |
-
<script src="components/features.js"></script>
|
| 14 |
-
<script src="components/footer.js"></script>
|
| 15 |
-
</head>
|
| 16 |
-
<body class="bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-full flex flex-col">
|
| 17 |
-
<custom-navbar></custom-navbar>
|
| 18 |
-
|
| 19 |
-
<main class="flex-grow">
|
| 20 |
-
<custom-hero></custom-hero>
|
| 21 |
-
<custom-features></custom-features>
|
| 22 |
-
|
| 23 |
-
<section class="py-16 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
|
| 24 |
-
<div class="text-center mb-12">
|
| 25 |
-
<h2 class="text-3xl font-bold tracking-tight sm:text-4xl">The Tri-Core Processor</h2>
|
| 26 |
-
<p class="mt-4 text-xl text-gray-600 dark:text-gray-400 max-w-3xl mx-auto">
|
| 27 |
-
Our engine operates through three interconnected processing modules
|
| 28 |
-
</p>
|
| 29 |
-
</div>
|
| 30 |
-
|
| 31 |
-
<div class="grid md:grid-cols-3 gap-8">
|
| 32 |
-
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700">
|
| 33 |
-
<div class="flex items-center mb-4">
|
| 34 |
-
<div class="bg-blue-100 dark:bg-blue-900 p-3 rounded-full mr-4">
|
| 35 |
-
<i data-feather="cpu" class="text-blue-600 dark:text-blue-400"></i>
|
| 36 |
-
</div>
|
| 37 |
-
<h3 class="text-xl font-semibold">Core A: Input Processor</h3>
|
| 38 |
-
</div>
|
| 39 |
-
<p class="text-gray-600 dark:text-gray-400">
|
| 40 |
-
The keen sensing form that identifies hidden organizing principles through statistical and semantic clustering.
|
| 41 |
-
</p>
|
| 42 |
-
</div>
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
<script>
|
| 74 |
-
feather.replace();
|
| 75 |
-
</script>
|
| 76 |
-
<script src="script.js"></script>
|
| 77 |
-
</body>
|
| 78 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
class CustomFooter extends HTMLElement {
|
| 3 |
+
connectedCallback() {
|
| 4 |
+
this.attachShadow({ mode: 'open' });
|
| 5 |
+
this.shadowRoot.innerHTML = `
|
| 6 |
+
<style>
|
| 7 |
+
:host {
|
| 8 |
+
display: block;
|
| 9 |
+
background-color: #f3f4f6;
|
| 10 |
+
padding: 3rem 1rem;
|
| 11 |
+
margin-top: auto;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.dark :host {
|
| 15 |
+
background-color: #111827;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
.container {
|
| 19 |
+
max-width: 72rem;
|
| 20 |
+
margin: 0 auto;
|
| 21 |
+
text-align: center;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
p {
|
| 25 |
+
color: #6b7280;
|
| 26 |
+
margin-top: 1rem;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.dark p {
|
| 30 |
+
color: #9ca3af;
|
| 31 |
+
}
|
| 32 |
+
</style>
|
| 33 |
+
<div class="container">
|
| 34 |
+
<p>© ${new Date().getFullYear()} AxiomForge. All rights reserved.</p>
|
| 35 |
+
</div>
|
| 36 |
+
`;
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
|
| 40 |
+
customElements.define('custom-footer', CustomFooter);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
components/navbar.js
CHANGED
|
@@ -84,10 +84,11 @@ class CustomNavbar extends HTMLElement {
|
|
| 84 |
<a href="#features">Features</a>
|
| 85 |
<a href="#contact">Contact</a>
|
| 86 |
</div>
|
| 87 |
-
<button id="theme-toggle" class="theme-toggle">
|
| 88 |
-
<i data-feather="moon"></i>
|
|
|
|
| 89 |
</button>
|
| 90 |
-
|
| 91 |
`;
|
| 92 |
}
|
| 93 |
}
|
|
|
|
| 84 |
<a href="#features">Features</a>
|
| 85 |
<a href="#contact">Contact</a>
|
| 86 |
</div>
|
| 87 |
+
<button id="theme-toggle" class="theme-toggle">
|
| 88 |
+
<i data-feather="moon" class="hidden dark:block"></i>
|
| 89 |
+
<i data-feather="sun" class="block dark:hidden"></i>
|
| 90 |
</button>
|
| 91 |
+
</nav>
|
| 92 |
`;
|
| 93 |
}
|
| 94 |
}
|
script.js
CHANGED
|
@@ -4,17 +4,23 @@ function setupThemeToggle() {
|
|
| 4 |
const themeToggle = document.getElementById('theme-toggle');
|
| 5 |
if (themeToggle) {
|
| 6 |
themeToggle.addEventListener('click', function() {
|
| 7 |
-
document.documentElement.classList.toggle('dark');
|
| 8 |
-
localStorage.setItem('theme',
|
|
|
|
| 9 |
});
|
| 10 |
}
|
| 11 |
}
|
|
|
|
| 12 |
// Initialize app
|
| 13 |
-
|
| 14 |
// Check for saved theme preference
|
| 15 |
-
if (localStorage.getItem('theme') === 'dark' ||
|
|
|
|
| 16 |
document.documentElement.classList.add('dark');
|
| 17 |
}
|
| 18 |
|
| 19 |
setupThemeToggle();
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
const themeToggle = document.getElementById('theme-toggle');
|
| 5 |
if (themeToggle) {
|
| 6 |
themeToggle.addEventListener('click', function() {
|
| 7 |
+
const isDark = document.documentElement.classList.toggle('dark');
|
| 8 |
+
localStorage.setItem('theme', isDark ? 'dark' : 'light');
|
| 9 |
+
feather.replace(); // Update icons after theme change
|
| 10 |
});
|
| 11 |
}
|
| 12 |
}
|
| 13 |
+
|
| 14 |
// Initialize app
|
| 15 |
+
function init() {
|
| 16 |
// Check for saved theme preference
|
| 17 |
+
if (localStorage.getItem('theme') === 'dark' ||
|
| 18 |
+
(!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 19 |
document.documentElement.classList.add('dark');
|
| 20 |
}
|
| 21 |
|
| 22 |
setupThemeToggle();
|
| 23 |
+
feather.replace();
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
document.addEventListener('DOMContentLoaded', init);
|
style.css
CHANGED
|
@@ -22,14 +22,13 @@ body {
|
|
| 22 |
--secondary-light: #6ee7b7;
|
| 23 |
--secondary-dark: #10b981;
|
| 24 |
}
|
| 25 |
-
|
| 26 |
.gradient-text {
|
| 27 |
background-clip: text;
|
| 28 |
-webkit-background-clip: text;
|
| 29 |
color: transparent;
|
| 30 |
background-image: linear-gradient(45deg, var(--primary), var(--secondary));
|
|
|
|
| 31 |
}
|
| 32 |
-
|
| 33 |
.btn-primary {
|
| 34 |
background-color: var(--primary);
|
| 35 |
color: white;
|
|
|
|
| 22 |
--secondary-light: #6ee7b7;
|
| 23 |
--secondary-dark: #10b981;
|
| 24 |
}
|
|
|
|
| 25 |
.gradient-text {
|
| 26 |
background-clip: text;
|
| 27 |
-webkit-background-clip: text;
|
| 28 |
color: transparent;
|
| 29 |
background-image: linear-gradient(45deg, var(--primary), var(--secondary));
|
| 30 |
+
display: inline;
|
| 31 |
}
|
|
|
|
| 32 |
.btn-primary {
|
| 33 |
background-color: var(--primary);
|
| 34 |
color: white;
|