Skip to content

Commit 05181fe

Browse files
committed
refactor: update layout styles in main and dashboard views, adjust sidebar title
1 parent 5aad367 commit 05181fe

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/client/views/layouts/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
body { font-family: 'Inter', sans-serif; }
1111
</style>
1212
</head>
13-
<body class="bg-white text-slate-700">
13+
<body class="text-slate-700">
1414
<div class="flex h-screen overflow-hidden">
1515
<!-- Sidebar -->
1616
<%- include('../layouts/sidebar'); %>

src/client/views/layouts/sidebar.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<aside class="w-64 bg-sidebar border-r border-slate-200 flex flex-col p-6 overflow-y-auto">
1+
<aside class="w-64 bg-sidebar border-r border-slate-200 flex flex-col p-6 px-4 overflow-y-auto">
22
<div class="flex items-center gap-2 mb-10 text-blue-600">
33
<div class="bg-blue-600 p-1.5 rounded-lg">
44
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>
55
</div>
6-
<span class="text-xl font-bold text-slate-900">CloudBox</span>
6+
<span class="text-xl font-bold text-slate-900">StackDev</span>
77
</div>
88

99
<nav class="space-y-1 mb-10">

src/client/views/pages/dashboard.ejs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<main class="flex-1 overflow-y-auto bg-white">
1+
<main class="flex-1 overflow-y-auto bg-slate-50">
22
<!-- Header -->
33
<header class="h-20 border-b border-slate-100 flex items-center justify-between px-8 sticky top-0 bg-white z-10">
44
<div class="relative w-96">
@@ -8,15 +8,15 @@
88
<input type="text" placeholder="Search files, folders..." class="w-full pl-10 pr-4 py-2 bg-slate-50 border border-transparent rounded-lg focus:outline-none focus:bg-white focus:border-blue-500 transition-all text-sm">
99
</div>
1010
<div class="flex items-center gap-4">
11-
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 text-sm font-semibold transition-all shadow-sm shadow-blue-200">
11+
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 text-sm font-semibold transition-all shadow-blue-200">
1212
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path></svg>
1313
Upload New
1414
</button>
1515
<button class="p-2 text-slate-400 hover:bg-slate-50 rounded-full relative transition-colors">
1616
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path></svg>
1717
<span class="absolute top-2 right-2 w-2 h-2 bg-red-500 rounded-full border-2 border-white"></span>
1818
</button>
19-
<img src="https://ui-avatars.com/api/?name=User&background=6366f1&color=fff" alt="Avatar" class="w-10 h-10 rounded-full border border-slate-100">
19+
<img src="https://ui-avatars.com/api/?name=User&background=6366f1&color=fff" alt="Avatar" class="w-10 h-10 rounded-full">
2020
</div>
2121
</header>
2222

@@ -26,7 +26,7 @@
2626
<h2 class="text-xl font-bold text-slate-900 mb-6">Storage Overview</h2>
2727
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
2828
<!-- Total Storage Card -->
29-
<div class="p-6 rounded-2xl border border-slate-100 bg-white shadow-sm">
29+
<div class="p-6 rounded-2xl bg-white">
3030
<div class="flex justify-between items-start mb-6">
3131
<div>
3232
<h3 class="text-sm font-semibold text-slate-400 mb-1">Total Storage</h3>
@@ -38,7 +38,7 @@
3838
<span class="px-2 py-1 bg-blue-50 text-blue-600 text-[10px] font-bold rounded uppercase tracking-wider">200 GB Plan</span>
3939
</div>
4040
<div class="w-full h-3 bg-slate-100 rounded-full overflow-hidden mb-4">
41-
<div class="h-full bg-gradient-to-r from-blue-500 to-orange-400 rounded-full" style="width: 75%"></div>
41+
<div class="h-full bg-linear-to-r from-green-500 via-orange-500 to-red-400 rounded-full" style="width: 75%"></div>
4242
</div>
4343
<div class="flex justify-between text-xs text-slate-400 mb-6">
4444
<span>Used: 150 GB</span>
@@ -61,7 +61,7 @@
6161
</div>
6262

6363
<!-- Breakdown Card -->
64-
<div class="p-6 rounded-2xl border border-slate-100 bg-white shadow-sm">
64+
<div class="p-6 rounded-2xl bg-white ">
6565
<div class="flex justify-between items-center mb-6">
6666
<h3 class="text-sm font-bold text-slate-900">File Types Breakdown</h3>
6767
<span class="text-xs text-slate-400">By storage used</span>
@@ -138,7 +138,7 @@
138138
</div>
139139
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
140140
<!-- Quick Item 1 -->
141-
<div class="p-4 rounded-xl border border-slate-100 hover:border-blue-200 transition-all cursor-pointer bg-white group shadow-sm">
141+
<div class="p-4 rounded-2xl hover:border-blue-200 transition-all cursor-pointer bg-white group ">
142142
<div class="flex items-center gap-4 mb-4">
143143
<div class="p-2.5 bg-blue-50 rounded-lg text-blue-600 group-hover:bg-blue-600 group-hover:text-white transition-all">
144144
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"></path></svg>
@@ -154,7 +154,7 @@
154154
</div>
155155
</div>
156156
<!-- Quick Item 2 -->
157-
<div class="p-4 rounded-xl border border-slate-100 hover:border-blue-200 transition-all cursor-pointer bg-white group shadow-sm">
157+
<div class="p-4 rounded-2xl hover:border-blue-200 transition-all cursor-pointer bg-white group ">
158158
<div class="flex items-center gap-4 mb-4">
159159
<div class="p-2.5 bg-blue-50 rounded-lg text-blue-600 group-hover:bg-blue-600 group-hover:text-white transition-all">
160160
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>
@@ -170,7 +170,7 @@
170170
</div>
171171
</div>
172172
<!-- Quick Item 3 -->
173-
<div class="p-4 rounded-xl border border-slate-100 hover:border-blue-200 transition-all cursor-pointer bg-white group shadow-sm">
173+
<div class="p-4 rounded-2xl hover:border-blue-200 transition-all cursor-pointer bg-white group ">
174174
<div class="flex items-center gap-4 mb-4">
175175
<div class="p-2.5 bg-blue-50 rounded-lg text-blue-600 group-hover:bg-blue-600 group-hover:text-white transition-all">
176176
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
@@ -186,7 +186,7 @@
186186
</div>
187187
</div>
188188
<!-- Quick Item 4 -->
189-
<div class="p-4 rounded-xl border border-slate-100 hover:border-blue-200 transition-all cursor-pointer bg-white group shadow-sm">
189+
<div class="p-4 rounded-2xl hover:border-blue-200 transition-all cursor-pointer bg-white group ">
190190
<div class="flex items-center gap-4 mb-4">
191191
<div class="p-2.5 bg-blue-50 rounded-lg text-blue-600 group-hover:bg-blue-600 group-hover:text-white transition-all">
192192
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path></svg>
@@ -207,7 +207,7 @@
207207
<!-- File Types Details -->
208208
<section>
209209
<h2 class="text-xl font-bold text-slate-900 mb-6">File Types Details</h2>
210-
<div class="bg-white rounded-2xl border border-slate-100 overflow-hidden shadow-sm">
210+
<div class="bg-white rounded-2xl overflow-hidden border border-black/5">
211211
<table class="w-full text-left text-sm">
212212
<thead class="bg-slate-50 text-slate-400 font-bold text-[11px] uppercase tracking-wider">
213213
<tr>

0 commit comments

Comments
 (0)