Skip to content

Commit d7b2a7c

Browse files
committed
sync with theme: gensec endorse panel
1 parent 765ec5f commit d7b2a7c

1 file changed

Lines changed: 14 additions & 21 deletions

File tree

frontend/src/Components/GenSec/GenSecEndorse.jsx

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ const TabNavigation = ({ activeTab, onTabChange }) => {
6666
};
6767

6868
return (
69-
<div className="border-b border-gray-200 bg-white">
70-
<nav className="-mb-px flex space-x-8 px-4 sm:px-6 lg:px-8">
69+
<div className="border-b border-yellow-200 bg-[#FDFAE2]">
70+
<nav className="-mb-px flex space-x-4 sm:space-x-8 px-4 sm:px-6 lg:px-8 overflow-x-auto">
7171
{endorsementTabs.map((tab) => (
7272
<button
7373
key={tab.id}
7474
onClick={() => onTabChange(tab.id)}
75-
className={`flex items-center gap-3 py-4 px-2 border-b-3 font-semibold text-base transition-colors min-w-0 ${
75+
className={`flex items-center gap-3 py-4 px-2 border-b-2 font-semibold text-base transition-colors min-w-0 ${
7676
activeTab === tab.id
77-
? "border-blue-600 text-blue-600 bg-blue-50"
78-
: "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 hover:bg-gray-50"
77+
? "border-sky-500 text-sky-700"
78+
: "border-transparent text-yellow-900/60 hover:text-yellow-900 hover:border-gray-300/70"
7979
} rounded-t-lg`}
8080
>
8181
{getTabIcon(tab.icon)}
@@ -114,14 +114,15 @@ const GenSecEndorse = () => {
114114
};
115115

116116
return (
117-
<div className="min-h-screen bg-gray-50">
117+
<div className="min-h-screen bg-[#FEFDF7]">
118118
{/* Header */}
119-
<div className="bg-white border-b border-gray-200">
119+
<div className="bg-[#FDFAE2] border-b border-yellow-200/80">
120120
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
121121
<div className="py-6">
122-
<div className="flex items-center justify-between">
122+
<div className="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
123+
{/* Left Side: Title and Description */}
123124
<div className="flex items-center gap-3">
124-
<div className="w-6 h-6 text-gray-600">
125+
<div className="w-6 h-6 text-gray-600 flex-shrink-0">
125126
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
126127
<path
127128
strokeLinecap="round"
@@ -132,36 +133,28 @@ const GenSecEndorse = () => {
132133
</svg>
133134
</div>
134135
<div>
135-
<h1 className="text-2xl font-bold text-gray-900">
136+
<h1 className="text-2xl font-bold text-gray-800">
136137
Pending Endorsement
137138
</h1>
138-
<p className="mt-1 text-sm text-gray-600">
139+
<p className="mt-1 text-sm text-gray-500">
139140
Review and approve pending requests for your department
140141
</p>
141142
</div>
142143
</div>
143-
<div className="flex items-center gap-4">
144-
<div className="text-right">
145-
<p className="text-sm font-medium text-gray-900">
146-
{config.displayTitle}
147-
</p>
148-
<p className="text-sm text-gray-600">Endorsement Panel</p>
149-
</div>
150-
</div>
151144
</div>
152145
</div>
153146
</div>
154147
</div>
155148

156149
{/* Tab Navigation */}
157-
<div className="bg-white border-b border-gray-200">
150+
<div className="sticky top-0 z-10">
158151
<div className="max-w-7xl mx-auto">
159152
<TabNavigation activeTab={activeTab} onTabChange={handleTabChange} />
160153
</div>
161154
</div>
162155

163156
{/* Tab Description */}
164-
<div className="bg-gray-50 border-b border-gray-200">
157+
<div className="border-b border-yellow-200/60">
165158
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
166159
<p className="text-sm text-gray-600 font-medium">
167160
{endorsementTabs.find((tab) => tab.id === activeTab)?.description}

0 commit comments

Comments
 (0)