Iboytech commited on
Commit
81ca604
·
verified ·
1 Parent(s): bcb835b

Find errors and fix it

Browse files
Files changed (5) hide show
  1. components/action-bar.js +5 -13
  2. components/navbar.js +2 -7
  3. index.html +0 -1
  4. script.js +1 -2
  5. style.css +1 -0
components/action-bar.js CHANGED
@@ -11,7 +11,6 @@ class CustomActionBar extends HTMLElement {
11
  transform: translateX(-50%);
12
  z-index: 1000;
13
  }
14
-
15
  .action-bar {
16
  background: rgba(17, 24, 39, 0.9);
17
  backdrop-filter: blur(20px);
@@ -24,8 +23,7 @@ class CustomActionBar extends HTMLElement {
24
  gap: 0.75rem;
25
  align-items: center;
26
  }
27
-
28
- .action-btn {
29
  padding: 0.75rem;
30
  border-radius: 1rem;
31
  background: rgba(255, 255, 255, 0.05);
@@ -33,7 +31,6 @@ class CustomActionBar extends HTMLElement {
33
  position: relative;
34
  overflow: hidden;
35
  }
36
-
37
  .action-btn::before {
38
  content: '';
39
  position: absolute;
@@ -44,20 +41,16 @@ class CustomActionBar extends HTMLElement {
44
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
45
  transition: left 0.4s ease;
46
  }
47
-
48
- .action-btn:hover {
49
  transform: translateY(-3px) scale(1.05);
50
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
51
  }
52
-
53
  .action-btn:hover::before {
54
  left: 100%;
55
  }
56
-
57
- .action-btn.active {
58
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(217, 70, 239, 0.2));
59
  }
60
-
61
  .tooltip {
62
  position: absolute;
63
  bottom: 100%;
@@ -72,13 +65,12 @@ class CustomActionBar extends HTMLElement {
72
  white-space: nowrap;
73
  opacity: 0;
74
  transition: all 0.3s ease;
 
75
  }
76
-
77
  .action-btn:hover .tooltip {
78
  opacity: 1;
79
  transform: translateX(-50%) translateY(0);
80
  }
81
-
82
  @keyframes slideUpIn {
83
  from {
84
  opacity: 0;
@@ -88,7 +80,7 @@ class CustomActionBar extends HTMLElement {
88
  opacity: 1;
89
  transform: translateY(0);
90
  }
91
- </style>
92
  <div class="action-bar glass-effect-enhanced">
93
  <div class="magnetic-area">
94
  <button class="action-btn magnetic-btn text-gray-300 hover:text-white">
 
11
  transform: translateX(-50%);
12
  z-index: 1000;
13
  }
 
14
  .action-bar {
15
  background: rgba(17, 24, 39, 0.9);
16
  backdrop-filter: blur(20px);
 
23
  gap: 0.75rem;
24
  align-items: center;
25
  }
26
+ .action-btn {
 
27
  padding: 0.75rem;
28
  border-radius: 1rem;
29
  background: rgba(255, 255, 255, 0.05);
 
31
  position: relative;
32
  overflow: hidden;
33
  }
 
34
  .action-btn::before {
35
  content: '';
36
  position: absolute;
 
41
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
42
  transition: left 0.4s ease;
43
  }
44
+ .action-btn:hover {
 
45
  transform: translateY(-3px) scale(1.05);
46
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
47
  }
 
48
  .action-btn:hover::before {
49
  left: 100%;
50
  }
51
+ .action-btn.active {
 
52
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(217, 70, 239, 0.2));
53
  }
 
54
  .tooltip {
55
  position: absolute;
56
  bottom: 100%;
 
65
  white-space: nowrap;
66
  opacity: 0;
67
  transition: all 0.3s ease;
68
+ pointer-events: none;
69
  }
 
70
  .action-btn:hover .tooltip {
71
  opacity: 1;
72
  transform: translateX(-50%) translateY(0);
73
  }
 
74
  @keyframes slideUpIn {
75
  from {
76
  opacity: 0;
 
80
  opacity: 1;
81
  transform: translateY(0);
82
  }
83
+ </style>
84
  <div class="action-bar glass-effect-enhanced">
85
  <div class="magnetic-area">
86
  <button class="action-btn magnetic-btn text-gray-300 hover:text-white">
components/navbar.js CHANGED
@@ -100,7 +100,6 @@ class CustomNavbar extends HTMLElement {
100
  .mobile-menu-content.active {
101
  transform: translateX(0);
102
  }
103
-
104
  .mobile-nav-link {
105
  padding: 0.75rem 1rem;
106
  border-radius: 0.5rem;
@@ -108,13 +107,11 @@ class CustomNavbar extends HTMLElement {
108
  border: 1px solid rgba(255, 255, 255, 0.1);
109
  font-weight: 500;
110
  }
111
-
112
  .mobile-nav-link:hover {
113
  background: rgba(255, 255, 255, 0.05);
114
  transform: translateX(8px);
115
  }
116
-
117
- .menu-close-btn {
118
  align-self: flex-end;
119
  padding: 0.5rem;
120
  border-radius: 0.5rem;
@@ -124,17 +121,15 @@ class CustomNavbar extends HTMLElement {
124
  .menu-close-btn:hover {
125
  background: rgba(255, 255, 255, 0.1);
126
  }
127
-
128
  .theme-toggle {
129
  padding: 0.5rem;
130
  border-radius: 0.5rem;
131
  transition: all 0.3s ease;
132
  }
133
-
134
  .theme-toggle:hover {
135
  background: rgba(255, 255, 255, 0.1);
136
  }
137
- </style>
138
  <nav class="py-4 transition-all duration-400">
139
  <div class="container mx-auto px-4">
140
  <div class="flex items-center justify-between">
 
100
  .mobile-menu-content.active {
101
  transform: translateX(0);
102
  }
 
103
  .mobile-nav-link {
104
  padding: 0.75rem 1rem;
105
  border-radius: 0.5rem;
 
107
  border: 1px solid rgba(255, 255, 255, 0.1);
108
  font-weight: 500;
109
  }
 
110
  .mobile-nav-link:hover {
111
  background: rgba(255, 255, 255, 0.05);
112
  transform: translateX(8px);
113
  }
114
+ .menu-close-btn {
 
115
  align-self: flex-end;
116
  padding: 0.5rem;
117
  border-radius: 0.5rem;
 
121
  .menu-close-btn:hover {
122
  background: rgba(255, 255, 255, 0.1);
123
  }
 
124
  .theme-toggle {
125
  padding: 0.5rem;
126
  border-radius: 0.5rem;
127
  transition: all 0.3s ease;
128
  }
 
129
  .theme-toggle:hover {
130
  background: rgba(255, 255, 255, 0.1);
131
  }
132
+ </style>
133
  <nav class="py-4 transition-all duration-400">
134
  <div class="container mx-auto px-4">
135
  <div class="flex items-center justify-between">
index.html CHANGED
@@ -47,7 +47,6 @@
47
  </head>
48
  <body class="bg-gray-900 text-white transition-colors duration-300">
49
  <custom-navbar></custom-navbar>
50
- <custom-action-bar></custom-action-bar>
51
  <main>
52
  <!-- Hero Section -->
53
  <section class="relative min-h-screen flex items-center justify-center bg-gradient-to-br from-gray-900 via-primary-900 to-gray-900 overflow-hidden">
 
47
  </head>
48
  <body class="bg-gray-900 text-white transition-colors duration-300">
49
  <custom-navbar></custom-navbar>
 
50
  <main>
51
  <!-- Hero Section -->
52
  <section class="relative min-h-screen flex items-center justify-center bg-gradient-to-br from-gray-900 via-primary-900 to-gray-900 overflow-hidden">
script.js CHANGED
@@ -16,7 +16,6 @@ document.addEventListener('DOMContentLoaded', () => {
16
  }
17
  });
18
  });
19
- });
20
  // Enhanced Intersection Observer for animations
21
  const observerOptions = {
22
  threshold: 0.05,
@@ -186,4 +185,4 @@ window.addEventListener('scroll', () => {
186
  const speed = element.dataset.speed || 0.5;
187
  element.style.transform = `translateY(${scrolled * speed}px)`;
188
  });
189
- });
 
16
  }
17
  });
18
  });
 
19
  // Enhanced Intersection Observer for animations
20
  const observerOptions = {
21
  threshold: 0.05,
 
185
  const speed = element.dataset.speed || 0.5;
186
  element.style.transform = `translateY(${scrolled * speed}px)`;
187
  });
188
+ });
style.css CHANGED
@@ -1,3 +1,4 @@
 
1
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
2
 
3
  * {
 
1
+
2
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
3
 
4
  * {