dides67 commited on
Commit
c4d70c7
·
verified ·
1 Parent(s): cb0b79d

i think there is a bug, check it

Browse files
Files changed (3) hide show
  1. components/mission-card.js +8 -6
  2. components/navbar.js +15 -6
  3. style.css +5 -3
components/mission-card.js CHANGED
@@ -11,13 +11,12 @@ class MissionCard extends HTMLElement {
11
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
12
  transition: all 0.3s ease;
13
  }
14
-
15
  :host(:hover) {
16
  transform: translateY(-5px);
17
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
 
18
  }
19
-
20
- .header {
21
  height: 8rem;
22
  background: linear-gradient(45deg, #6d28d9, #ec4899);
23
  display: flex;
@@ -140,7 +139,6 @@ class MissionCard extends HTMLElement {
140
  border-radius: 9999px;
141
  font-weight: 600;
142
  }
143
-
144
  .view-btn {
145
  width: 100%;
146
  padding: 0.75rem;
@@ -156,8 +154,12 @@ class MissionCard extends HTMLElement {
156
  justify-content: center;
157
  gap: 0.5rem;
158
  }
159
-
160
- .view-btn:hover {
 
 
 
 
161
  transform: translateY(-2px);
162
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
163
  }
 
11
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
12
  transition: all 0.3s ease;
13
  }
 
14
  :host(:hover) {
15
  transform: translateY(-5px);
16
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
17
+ cursor: pointer;
18
  }
19
+ .header {
 
20
  height: 8rem;
21
  background: linear-gradient(45deg, #6d28d9, #ec4899);
22
  display: flex;
 
139
  border-radius: 9999px;
140
  font-weight: 600;
141
  }
 
142
  .view-btn {
143
  width: 100%;
144
  padding: 0.75rem;
 
154
  justify-content: center;
155
  gap: 0.5rem;
156
  }
157
+
158
+ .view-btn:focus {
159
+ outline: 2px solid #7c3aed;
160
+ outline-offset: 2px;
161
+ }
162
+ .view-btn:hover {
163
  transform: translateY(-2px);
164
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
165
  }
components/navbar.js CHANGED
@@ -48,18 +48,22 @@ class CustomNavbar extends HTMLElement {
48
  gap: 2rem;
49
  align-items: center;
50
  }
51
-
52
  .nav-link {
53
  color: #64748b;
54
  font-weight: 500;
55
  text-decoration: none;
56
  transition: color 0.2s;
 
 
57
  }
58
-
59
- .nav-link:hover {
 
 
 
 
60
  color: #6d28d9;
61
  }
62
-
63
  .cta-btn {
64
  padding: 0.5rem 1.5rem;
65
  border-radius: 0.5rem;
@@ -67,9 +71,14 @@ class CustomNavbar extends HTMLElement {
67
  background: linear-gradient(45deg, #6d28d9, #ec4899);
68
  color: white;
69
  transition: all 0.2s;
 
70
  }
71
-
72
- .cta-btn:hover {
 
 
 
 
73
  transform: translateY(-2px);
74
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
75
  }
 
48
  gap: 2rem;
49
  align-items: center;
50
  }
 
51
  .nav-link {
52
  color: #64748b;
53
  font-weight: 500;
54
  text-decoration: none;
55
  transition: color 0.2s;
56
+ padding: 0.5rem;
57
+ border-radius: 0.25rem;
58
  }
59
+
60
+ .nav-link:focus {
61
+ outline: 2px solid #7c3aed;
62
+ outline-offset: 2px;
63
+ }
64
+ .nav-link:hover {
65
  color: #6d28d9;
66
  }
 
67
  .cta-btn {
68
  padding: 0.5rem 1.5rem;
69
  border-radius: 0.5rem;
 
71
  background: linear-gradient(45deg, #6d28d9, #ec4899);
72
  color: white;
73
  transition: all 0.2s;
74
+ outline: none;
75
  }
76
+
77
+ .cta-btn:focus {
78
+ outline: 2px solid #7c3aed;
79
+ outline-offset: 2px;
80
+ }
81
+ .cta-btn:hover {
82
  transform: translateY(-2px);
83
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
84
  }
style.css CHANGED
@@ -1,8 +1,10 @@
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
4
  }
5
-
6
  h1 {
7
  font-size: 16px;
8
  margin-top: 0;
 
1
+
2
  body {
3
+ padding: 0;
4
+ margin: 0;
5
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
6
+ line-height: 1.5;
7
  }
 
8
  h1 {
9
  font-size: 16px;
10
  margin-top: 0;