Skip to content

Commit 2dbaea7

Browse files
committed
Feature: Dark Mode | Incorporated comment to make deployement list as more dark mode friendly
1 parent fc1adb0 commit 2dbaea7

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/components/DeploymentsList.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,23 @@ export function DeploymentsList({
6363
return (
6464
<div
6565
key={index}
66-
className={`p-3 rounded-lg border cursor-pointer transition-all duration-200 ${
66+
className={`p-3 rounded-lg border cursor-pointer transition-all duration-200 text-left w-full ${
6767
selectedIndex === index
68-
? 'bg-blue-50 border-blue-200 ring-1 ring-blue-200'
69-
: 'bg-white border-gray-200 hover:bg-gray-50'
68+
? 'bg-blue-50 border-blue-200 ring-1 ring-blue-200 dark:bg-blue-900 dark:border-blue-800 dark:ring-blue-800'
69+
: 'bg-white border-gray-200 hover:bg-gray-50 dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700'
7070
}`}
7171
onClick={() => onSelect(index)}
7272
>
7373
<div className="flex items-center justify-between">
7474
<div className="flex items-center space-x-3 min-w-0 flex-1">
7575
<div className={`w-2 h-2 rounded-full flex-shrink-0 ${
76-
deployment.appName ? 'bg-green-500' : 'bg-gray-300'
76+
deployment.appName ? 'bg-green-500 dark:bg-green-400' : 'bg-gray-300'
7777
}`} />
7878
<div className="min-w-0 flex-1">
79-
<div className="font-medium text-gray-900 truncate">
79+
<div className="font-medium text-gray-900 truncate dark:text-gray-100">
8080
{deployment.appName || 'Untitled Deployment'}
8181
</div>
82-
<div className="text-sm text-gray-500 truncate">
82+
<div className="text-sm text-gray-500 truncate dark:text-gray-400">
8383
{summary.primaryImage}
8484
</div>
8585
<div className="flex items-center space-x-2 mt-1">
@@ -110,13 +110,13 @@ export function DeploymentsList({
110110
<div className="flex items-center space-x-1">
111111
<button
112112
onClick={handleCancelDelete}
113-
className="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded hover:bg-gray-200 transition-colors duration-200"
113+
className="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded hover:bg-gray-200 transition-colors duration-200 dark:bg-gray-700 dark:text-gray-300"
114114
>
115115
Cancel
116116
</button>
117117
<button
118118
onClick={(e) => handleConfirmDelete(index, e)}
119-
className="px-2 py-1 text-xs bg-red-600 text-white rounded hover:bg-red-700 transition-colors duration-200 flex items-center space-x-1"
119+
className="px-2 py-1 text-xs bg-red-600 text-white rounded hover:bg-red-700 transition-colors duration-200 flex items-center space-x-1 dark:bg-red-600 dark:hover:bg-red-700"
120120
>
121121
<AlertTriangle className="w-3 h-3" />
122122
<span>Delete</span>
@@ -131,21 +131,21 @@ export function DeploymentsList({
131131
onSelect(index);
132132
onEdit();
133133
}}
134-
className="p-1 text-gray-400 hover:text-gray-600 rounded transition-colors duration-200"
134+
className="p-1 text-gray-400 hover:text-gray-600 rounded transition-colors duration-200 dark:text-gray-300 dark:hover:text-gray-400"
135135
title="Edit deployment"
136136
>
137137
<Settings className="w-4 h-4" />
138138
</button>
139139
<button
140140
onClick={(e) => handleDuplicateClick(index, e)}
141-
className="p-1 text-gray-400 hover:text-blue-600 rounded transition-colors duration-200"
141+
className="p-1 text-gray-400 hover:text-blue-600 rounded transition-colors duration-200 dark:text-gray-300 dark:hover:text-blue-600"
142142
title="Duplicate deployment"
143143
>
144144
<Copy className="w-4 h-4" />
145145
</button>
146146
<button
147147
onClick={(e) => handleDeleteClick(index, e)}
148-
className="p-1 text-gray-400 hover:text-red-600 rounded transition-colors duration-200"
148+
className="p-1 text-gray-400 hover:text-red-600 rounded transition-colors duration-200 dark:text-gray-300 dark:hover:text-red-600"
149149
title="Delete deployment"
150150
>
151151
<Trash2 className="w-4 h-4" />
@@ -157,7 +157,7 @@ export function DeploymentsList({
157157

158158
{/* Delete confirmation warning */}
159159
{deleteConfirm === index && (
160-
<div className="mt-2 p-2 bg-red-50 border border-red-200 rounded text-xs text-red-700">
160+
<div className="mt-2 p-2 bg-red-50 border border-red-200 rounded text-xs text-red-700 dark:bg-red-50 dark:border-red-200 dark:text-red-700">
161161
<div className="flex items-center space-x-1 mb-1">
162162
<AlertTriangle className="w-3 h-3" />
163163
<span className="font-medium">Are you sure?</span>

src/components/SocialShare.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function SocialShare({ className = '' }: SocialShareProps) {
163163
href="https://github.com/same7ammar/kube-composer"
164164
target="_blank"
165165
rel="noopener noreferrer"
166-
className="group inline-flex items-center space-x-2 px-3 py-2 bg-gray-900 hover:bg-gray-800 text-white rounded-lg transition-all duration-200 text-xs font-medium shadow-md hover:shadow-lg transform hover:scale-105 dark:bg-gray-700 dark:hover:bg-gray-600"
166+
className="group inline-flex items-center space-x-2 px-3 py-2 bg-gray-900 hover:bg-gray-800 text-white rounded-lg transition-all duration-200 text-xs font-medium shadow-md hover:shadow-lg transform hover:scale-105 dark:bg-gray-700 dark:hover:bg-gray-500"
167167
title={`Star on GitHub${starCount !== null ? ` (${starCount} stars)` : ''}`}
168168
aria-label="Star Kube Composer on GitHub"
169169
>
@@ -176,7 +176,7 @@ export function SocialShare({ className = '' }: SocialShareProps) {
176176
Star
177177
</span>
178178
{!isLoadingStars && starCount !== null && (
179-
<span className="bg-gray-700 group-hover:bg-gray-600 px-2 py-0.5 rounded-full text-xs font-bold text-yellow-300 group-hover:text-yellow-200 transition-all duration-200 min-w-[1.5rem] text-center">
179+
<span className="bg-gray-700 group-hover:bg-gray-600 px-2 py-0.5 rounded-full text-xs font-bold text-yellow-300 group-hover:text-yellow-200 transition-all duration-200 min-w-[1.5rem] text-center dark:bg-gray-600">
180180
{formatStarCount(starCount)}
181181
</span>
182182
)}

src/components/VisualPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ export function VisualPreview({
17611761
{flowNodes.map(node => (
17621762
<div
17631763
key={node.id}
1764-
className={`absolute w-48 p-3 rounded-lg border-2 shadow-lg select-none ${
1764+
className={`absolute w-48 p-3 rounded-lg border-2 shadow-lg select-none cursor-pointer ${
17651765
node.colorClass || getStatusColor(node.status)
17661766
}`}
17671767
style={{

0 commit comments

Comments
 (0)