bigpappic commited on
Commit
c368f70
·
verified ·
1 Parent(s): 76d3eae

Please fix whatever issues this app code has right now

Browse files
Files changed (9) hide show
  1. components/footer.js +3 -4
  2. components/navbar.js +5 -11
  3. create.html +0 -1
  4. download.html +0 -1
  5. help.html +0 -1
  6. index.html +1 -2
  7. projects.html +0 -1
  8. script.js +13 -17
  9. style.css +5 -1
components/footer.js CHANGED
@@ -4,14 +4,13 @@ class CustomFooter extends HTMLElement {
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  footer {
7
- background: white;
8
- color: #4b5563;
9
  padding: 2rem 1rem;
10
  text-align: center;
11
  border-top: 1px solid #e5e7eb;
12
- margin-top: auto;
13
  }
14
- .footer-content {
15
  max-width: 1200px;
16
  margin: 0 auto;
17
  display: grid;
 
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  footer {
7
+ background: rgba(255, 255, 255, 0.98);
8
+ color: #4b5563;
9
  padding: 2rem 1rem;
10
  text-align: center;
11
  border-top: 1px solid #e5e7eb;
 
12
  }
13
+ .footer-content {
14
  max-width: 1200px;
15
  margin: 0 auto;
16
  display: grid;
components/navbar.js CHANGED
@@ -4,23 +4,17 @@ class CustomNavbar extends HTMLElement {
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  nav {
7
- background: rgba(255, 255, 255, 0.9);
8
- backdrop-filter: blur(4px);
9
  padding: 0.75rem 2rem;
10
- display: flex;
11
  justify-content: space-between;
12
  align-items: center;
13
  border-bottom: 1px solid #e2e8f0;
14
- position: fixed;
15
- top: 0;
16
- left: 0;
17
- right: 0;
18
  z-index: 50;
19
  }
20
- body {
21
- padding-top: 60px;
22
- }
23
- .logo {
24
  color: #2b6cb0;
25
  font-weight: bold;
26
  font-size: 1.25rem;
 
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  nav {
7
+ background: rgba(255, 255, 255, 0.98);
8
+ backdrop-filter: blur(4px);
9
  padding: 0.75rem 2rem;
10
+ display: flex;
11
  justify-content: space-between;
12
  align-items: center;
13
  border-bottom: 1px solid #e2e8f0;
14
+ position: relative;
 
 
 
15
  z-index: 50;
16
  }
17
+ .logo {
 
 
 
18
  color: #2b6cb0;
19
  font-weight: bold;
20
  font-size: 1.25rem;
create.html CHANGED
@@ -7,7 +7,6 @@
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
- <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
  </head>
12
  <body class="min-h-screen flex flex-col">
13
  <custom-navbar></custom-navbar>
 
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
 
10
  </head>
11
  <body class="min-h-screen flex flex-col">
12
  <custom-navbar></custom-navbar>
download.html CHANGED
@@ -7,7 +7,6 @@
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
- <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
  </head>
12
  <body class="min-h-screen flex flex-col">
13
  <custom-navbar></custom-navbar>
 
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
 
10
  </head>
11
  <body class="min-h-screen flex flex-col">
12
  <custom-navbar></custom-navbar>
help.html CHANGED
@@ -7,7 +7,6 @@
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
- <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
  </head>
12
  <body class="min-h-screen flex flex-col">
13
  <custom-navbar></custom-navbar>
 
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
 
10
  </head>
11
  <body class="min-h-screen flex flex-col">
12
  <custom-navbar></custom-navbar>
index.html CHANGED
@@ -8,8 +8,7 @@
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
- <script src="https://unpkg.com/feather-icons"></script>
12
- <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script>
13
  </head>
14
  <body class="min-h-screen flex flex-col">
15
  <custom-navbar></custom-navbar>
 
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script>
 
12
  </head>
13
  <body class="min-h-screen flex flex-col">
14
  <custom-navbar></custom-navbar>
projects.html CHANGED
@@ -7,7 +7,6 @@
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
- <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
  </head>
12
  <body class="min-h-screen flex flex-col">
13
  <custom-navbar></custom-navbar>
 
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
 
10
  </head>
11
  <body class="min-h-screen flex flex-col">
12
  <custom-navbar></custom-navbar>
script.js CHANGED
@@ -1,13 +1,19 @@
1
 
2
  document.addEventListener('DOMContentLoaded', function() {
3
- // Check if Feather Icons are loaded
4
  if (typeof feather !== 'undefined') {
5
  feather.replace();
6
  }
7
 
8
- // Initialize Vanta.js if element exists
9
- const vantaEl = document.getElementById('vanta-bg');
10
- if (vantaEl && typeof VANTA !== 'undefined') {
 
 
 
 
 
 
11
  VANTA.WAVES({
12
  el: "#vanta-bg",
13
  mouseControls: true,
@@ -18,19 +24,9 @@ document.addEventListener('DOMContentLoaded', function() {
18
  scale: 1.00,
19
  scaleMobile: 1.00,
20
  color: 0x0,
21
- shininess: 0.0
 
 
22
  });
23
  }
24
-
25
- // Smooth fade-in for all pages
26
- document.body.style.opacity = '0';
27
- setTimeout(() => {
28
- document.body.style.transition = 'opacity 0.5s ease-in';
29
- document.body.style.opacity = '1';
30
- }, 100);
31
- });
32
-
33
- // Error handling for missing components
34
- window.addEventListener('error', function(e) {
35
- console.error('Error loading component:', e.message);
36
  });
 
1
 
2
  document.addEventListener('DOMContentLoaded', function() {
3
+ // Initialize feather icons
4
  if (typeof feather !== 'undefined') {
5
  feather.replace();
6
  }
7
 
8
+ // Smooth page transitions
9
+ document.body.style.opacity = '0';
10
+ setTimeout(() => {
11
+ document.body.style.transition = 'opacity 0.3s ease-in';
12
+ document.body.style.opacity = '1';
13
+ }, 50);
14
+
15
+ // Vanta.js background only on homepage
16
+ if (document.getElementById('vanta-bg') && typeof VANTA !== 'undefined') {
17
  VANTA.WAVES({
18
  el: "#vanta-bg",
19
  mouseControls: true,
 
24
  scale: 1.00,
25
  scaleMobile: 1.00,
26
  color: 0x0,
27
+ shininess: 50,
28
+ waveHeight: 20,
29
+ waveSpeed: 0.5
30
  });
31
  }
 
 
 
 
 
 
 
 
 
 
 
 
32
  });
style.css CHANGED
@@ -4,7 +4,11 @@ body {
4
  background-color: #f8fafc;
5
  margin: 0;
6
  padding: 0;
7
- min-height: 100vh;
 
 
 
 
8
  }
9
  /* Animation for the hero section */
10
  @keyframes float {
 
4
  background-color: #f8fafc;
5
  margin: 0;
6
  padding: 0;
7
+ }
8
+
9
+ /* Ensure content takes full height */
10
+ html, body {
11
+ height: 100%;
12
  }
13
  /* Animation for the hero section */
14
  @keyframes float {