gtkh commited on
Commit
0709d5c
·
verified ·
1 Parent(s): 2c05a18

J'aime pas

Browse files
Files changed (4) hide show
  1. components/footer.js +3 -3
  2. components/navbar.js +5 -5
  3. index.html +4 -4
  4. style.css +21 -29
components/footer.js CHANGED
@@ -4,10 +4,10 @@ class CustomFooter extends HTMLElement {
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  .footer {
7
- background-color: #f8fafc;
8
- border-top: 1px solid #e2e8f0;
9
  }
10
- .footer-link {
11
  transition: all 0.2s ease;
12
  }
13
  .footer-link:hover {
 
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  .footer {
7
+ background-color: #ffffff;
8
+ border-top: 1px solid #e5e7eb;
9
  }
10
+ .footer-link {
11
  transition: all 0.2s ease;
12
  }
13
  .footer-link:hover {
components/navbar.js CHANGED
@@ -5,19 +5,19 @@ class CustomNavbar extends HTMLElement {
5
  <style>
6
  .navbar {
7
  background-color: #ffffff;
8
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
9
  }
10
- .nav-link {
11
  transition: all 0.2s ease;
12
  }
13
  .nav-link:hover {
14
  color: #3B82F6;
15
  }
16
  .active {
17
- color: #3B82F6;
18
- border-bottom: 2px solid #3B82F6;
19
  }
20
- </style>
21
  <nav class="navbar px-4 py-3">
22
  <div class="container mx-auto flex justify-between items-center">
23
  <div class="flex items-center space-x-8">
 
5
  <style>
6
  .navbar {
7
  background-color: #ffffff;
8
+ border-bottom: 1px solid #e5e7eb;
9
  }
10
+ .nav-link {
11
  transition: all 0.2s ease;
12
  }
13
  .nav-link:hover {
14
  color: #3B82F6;
15
  }
16
  .active {
17
+ color: #111827;
18
+ font-weight: 500;
19
  }
20
+ </style>
21
  <nav class="navbar px-4 py-3">
22
  <div class="container mx-auto flex justify-between items-center">
23
  <div class="flex items-center space-x-8">
index.html CHANGED
@@ -21,8 +21,8 @@
21
  }
22
  </script>
23
  </head>
24
- <body class="bg-gray-50">
25
- <div class="min-h-screen">
26
  <custom-navbar></custom-navbar>
27
 
28
  <main class="container mx-auto px-4 py-8">
@@ -32,8 +32,8 @@
32
  <i data-feather="plus"></i> Nouveau Projet
33
  </button>
34
  </div>
35
- <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8 border border-gray-100">
36
- <div class="overflow-x-auto">
37
  <table class="w-full min-w-max">
38
  <thead class="bg-primary text-white">
39
  <tr>
 
21
  }
22
  </script>
23
  </head>
24
+ <body class="bg-gray-50 min-h-screen">
25
+ <div class="min-h-screen">
26
  <custom-navbar></custom-navbar>
27
 
28
  <main class="container mx-auto px-4 py-8">
 
32
  <i data-feather="plus"></i> Nouveau Projet
33
  </button>
34
  </div>
35
+ <div class="bg-white rounded-lg overflow-hidden mb-8">
36
+ <div class="overflow-x-auto">
37
  <table class="w-full min-w-max">
38
  <thead class="bg-primary text-white">
39
  <tr>
style.css CHANGED
@@ -1,9 +1,9 @@
1
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
-
3
  body {
4
  font-family: 'Inter', sans-serif;
 
 
5
  }
6
-
7
  /* Custom scrollbar */
8
  ::-webkit-scrollbar {
9
  width: 8px;
@@ -41,17 +41,16 @@ thead {
41
  backdrop-filter: blur(5px);
42
  }
43
  thead th {
44
- background-color: #3B82F6;
45
- color: white;
46
  font-weight: 600;
47
  padding: var(--table-padding);
48
  font-size: 0.875rem;
49
  position: relative;
50
  white-space: nowrap;
51
- text-transform: uppercase;
52
  letter-spacing: 0.5px;
53
  font-family: 'Inter', sans-serif;
54
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
55
  }
56
  thead th:first-child {
57
  border-top-left-radius: var(--table-radius);
@@ -74,10 +73,8 @@ tbody tr:last-child td:first-child {
74
  tbody tr:last-child td:last-child {
75
  border-bottom-right-radius: var(--table-radius);
76
  }
77
-
78
  tbody tr:hover {
79
- background-color: var(--hover-bg) !important;
80
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
81
  }
82
  tbody td {
83
  padding: var(--table-padding);
@@ -97,34 +94,29 @@ tbody tr:not(:last-child) td::after {
97
  height: 1px;
98
  background-color: rgba(0, 0, 0, 0.05);
99
  }
100
- /* Status badges */
101
  .status-badge {
102
- display: inline-block;
103
- padding: 2px 8px;
104
- border-radius: 12px;
 
105
  font-size: 0.75rem;
106
- font-weight: 600;
107
- text-transform: uppercase;
108
- letter-spacing: 0.3px;
109
  }
 
110
  .status-en-cours {
111
- background-color: #dbeafe;
112
- color: #1e40af;
113
- border-left: 4px solid #3b82f6;
114
  }
115
 
116
  .status-planifie {
117
- background-color: #e0f2fe;
118
- color: #0369a1;
119
- border-left: 4px solid #0ea5e9;
120
  }
121
 
122
  .status-termine {
123
- background-color: #dcfce7;
124
- color: #166534;
125
- border-left: 4px solid #10b981;
126
  }
127
-
128
  /* Progress bars */
129
  .progress-container {
130
  width: 80px;
@@ -166,9 +158,9 @@ tbody tr:nth-child(3) { animation-delay: 0.3s; }
166
  color: #dc2626;
167
  font-weight: 600;
168
  }
169
- /* Modern zebra striping */
170
- tbody tr:nth-child(even) {
171
- background-color: rgba(243, 244, 246, 0.5);
172
  }
173
  tbody tr {
174
  height: 56px;
 
1
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
 
2
  body {
3
  font-family: 'Inter', sans-serif;
4
+ background-color: #f9fafb;
5
+ color: #111827;
6
  }
 
7
  /* Custom scrollbar */
8
  ::-webkit-scrollbar {
9
  width: 8px;
 
41
  backdrop-filter: blur(5px);
42
  }
43
  thead th {
44
+ background-color: #fff;
45
+ color: #374151;
46
  font-weight: 600;
47
  padding: var(--table-padding);
48
  font-size: 0.875rem;
49
  position: relative;
50
  white-space: nowrap;
 
51
  letter-spacing: 0.5px;
52
  font-family: 'Inter', sans-serif;
53
+ border-bottom: 1px solid #e5e7eb;
54
  }
55
  thead th:first-child {
56
  border-top-left-radius: var(--table-radius);
 
73
  tbody tr:last-child td:last-child {
74
  border-bottom-right-radius: var(--table-radius);
75
  }
 
76
  tbody tr:hover {
77
+ background-color: #f8fafc !important;
 
78
  }
79
  tbody td {
80
  padding: var(--table-padding);
 
94
  height: 1px;
95
  background-color: rgba(0, 0, 0, 0.05);
96
  }
 
97
  .status-badge {
98
+ display: inline-flex;
99
+ align-items: center;
100
+ padding: 4px 8px;
101
+ border-radius: 6px;
102
  font-size: 0.75rem;
103
+ font-weight: 500;
 
 
104
  }
105
+
106
  .status-en-cours {
107
+ background-color: #eff6ff;
108
+ color: #1d4ed8;
 
109
  }
110
 
111
  .status-planifie {
112
+ background-color: #ecfdf5;
113
+ color: #047857;
 
114
  }
115
 
116
  .status-termine {
117
+ background-color: #f5f3ff;
118
+ color: #6d28d9;
 
119
  }
 
120
  /* Progress bars */
121
  .progress-container {
122
  width: 80px;
 
158
  color: #dc2626;
159
  font-weight: 600;
160
  }
161
+ tbody tr {
162
+ background-color: #fff;
163
+ border-bottom: 1px solid #e5e7eb;
164
  }
165
  tbody tr {
166
  height: 56px;