BalC commited on
Commit
d6f7048
·
verified ·
1 Parent(s): cd058e2
Files changed (4) hide show
  1. components/footer.js +38 -76
  2. components/navbar.js +4 -3
  3. script.js +11 -5
  4. 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
- <div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700">
45
- <div class="flex items-center mb-4">
46
- <div class="bg-purple-100 dark:bg-purple-900 p-3 rounded-full mr-4">
47
- <i data-feather="layers" class="text-purple-600 dark:text-purple-400"></i>
48
- </div>
49
- <h3 class="text-xl font-semibold">Core B: Structural Synthesizer</h3>
50
- </div>
51
- <p class="text-gray-600 dark:text-gray-400">
52
- Builds definitive narrative architecture by sorting evidence under the determined Axiom.
53
- </p>
54
- </div>
55
-
56
- <div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700">
57
- <div class="flex items-center mb-4">
58
- <div class="bg-green-100 dark:bg-green-900 p-3 rounded-full mr-4">
59
- <i data-feather="send" class="text-green-600 dark:text-green-400"></i>
60
- </div>
61
- <h3 class="text-xl font-semibold">Core C: Output Generator</h3>
62
- </div>
63
- <p class="text-gray-600 dark:text-gray-400">
64
- Formats the resulting structure for external deployment with maximum persuasive impact.
65
- </p>
66
- </div>
67
- </div>
68
- </section>
69
- </main>
 
 
 
 
 
 
 
 
 
 
 
70
 
71
- <custom-footer></custom-footer>
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
- </nav>
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', document.documentElement.classList.contains('dark') ? 'dark' : 'light');
 
9
  });
10
  }
11
  }
 
12
  // Initialize app
13
- document.addEventListener('DOMContentLoaded', function() {
14
  // Check for saved theme preference
15
- if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
 
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;