Skip to content

Commit 36ead1b

Browse files
Update update.sh
1 parent 50c3601 commit 36ead1b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/app/_components/VersionDisplay.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ function LoadingOverlay({
2323

2424
return (
2525
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm">
26-
<div className="bg-white dark:bg-gray-800 rounded-lg p-8 shadow-2xl border border-gray-200 dark:border-gray-700 max-w-2xl w-full mx-4 max-h-[80vh] flex flex-col">
26+
<div className="bg-card rounded-lg p-8 shadow-2xl border border-border max-w-2xl w-full mx-4 max-h-[80vh] flex flex-col">
2727
<div className="flex flex-col items-center space-y-4">
2828
<div className="relative">
29-
<Loader2 className="h-12 w-12 animate-spin text-blue-600 dark:text-blue-400" />
30-
<div className="absolute inset-0 rounded-full border-2 border-blue-200 dark:border-blue-800 animate-pulse"></div>
29+
<Loader2 className="h-12 w-12 animate-spin text-primary" />
30+
<div className="absolute inset-0 rounded-full border-2 border-primary/20 animate-pulse"></div>
3131
</div>
3232
<div className="text-center">
33-
<h3 className="text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2">
33+
<h3 className="text-lg font-semibold text-card-foreground mb-2">
3434
{isNetworkError ? 'Server Restarting' : 'Updating Application'}
3535
</h3>
36-
<p className="text-sm text-gray-600 dark:text-gray-400">
36+
<p className="text-sm text-muted-foreground">
3737
{isNetworkError
3838
? 'The server is restarting after the update...'
3939
: 'Please stand by while we update your application...'
4040
}
4141
</p>
42-
<p className="text-xs text-gray-500 dark:text-gray-500 mt-2">
42+
<p className="text-xs text-muted-foreground mt-2">
4343
{isNetworkError
4444
? 'This may take a few moments. The page will reload automatically.'
4545
: 'The server will restart automatically when complete.'
@@ -49,7 +49,7 @@ function LoadingOverlay({
4949

5050
{/* Log output */}
5151
{logs.length > 0 && (
52-
<div className="w-full mt-4 bg-gray-900 dark:bg-gray-950 rounded-lg p-4 font-mono text-xs text-green-400 max-h-60 overflow-y-auto">
52+
<div className="w-full mt-4 bg-card border border-border rounded-lg p-4 font-mono text-xs text-chart-2 max-h-60 overflow-y-auto terminal-output">
5353
{logs.map((log, index) => (
5454
<div key={index} className="mb-1 whitespace-pre-wrap break-words">
5555
{log}
@@ -60,9 +60,9 @@ function LoadingOverlay({
6060
)}
6161

6262
<div className="flex space-x-1">
63-
<div className="w-2 h-2 bg-blue-600 rounded-full animate-bounce"></div>
64-
<div className="w-2 h-2 bg-blue-600 rounded-full animate-bounce" style={{ animationDelay: '0.1s' }}></div>
65-
<div className="w-2 h-2 bg-blue-600 rounded-full animate-bounce" style={{ animationDelay: '0.2s' }}></div>
63+
<div className="w-2 h-2 bg-primary rounded-full animate-bounce"></div>
64+
<div className="w-2 h-2 bg-primary rounded-full animate-bounce" style={{ animationDelay: '0.1s' }}></div>
65+
<div className="w-2 h-2 bg-primary rounded-full animate-bounce" style={{ animationDelay: '0.2s' }}></div>
6666
</div>
6767
</div>
6868
</div>
@@ -283,8 +283,8 @@ export function VersionDisplay() {
283283
{updateResult && (
284284
<div className={`text-xs px-2 py-1 rounded ${
285285
updateResult.success
286-
? 'bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200'
287-
: 'bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200'
286+
? 'bg-chart-2/20 text-chart-2 border border-chart-2/30'
287+
: 'bg-destructive/20 text-destructive border border-destructive/30'
288288
}`}>
289289
{updateResult.message}
290290
</div>
@@ -293,7 +293,7 @@ export function VersionDisplay() {
293293
)}
294294

295295
{isUpToDate && (
296-
<span className="text-xs text-green-600 dark:text-green-400">
296+
<span className="text-xs text-chart-2">
297297
✓ Up to date
298298
</span>
299299
)}

0 commit comments

Comments
 (0)