Skip to content

Commit db024b7

Browse files
committed
feat: add folder card component for file organization display
1 parent 2250e35 commit db024b7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Folder Card Component -->
2+
<div class="p-4 bg-white border border-slate-100 rounded-xl hover:border-primary/20 hover:shadow-md transition-all cursor-pointer group">
3+
<div class="flex items-start justify-between mb-2">
4+
<div class="p-2 <%= iconBg || 'bg-primary/5' %> text-<%= iconColor || 'primary' %> rounded-lg group-hover:bg-primary group-hover:text-white transition-all">
5+
<%- icon || (`<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>` ) %>
6+
</div>
7+
<button class="p-1 text-slate-300 hover:text-slate-600"><%- moreIcon || (`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v.01M12 12v.01M12 19v.01"></path></svg>`) %></button>
8+
</div>
9+
<h4 class="font-bold text-slate-900 text-sm"><%= title %></h4>
10+
<p class="text-[10px] text-slate-400"><%= count %></p>
11+
</div>

0 commit comments

Comments
 (0)