feat: campana multi-módulo estilo inventario
This commit is contained in:
1 parent
b1cddbac6c
commit
e83bc239c0
5 files changed
+416
-6
No files matched your search
@@ -3,6 +3,7 @@
|
||||
import { useState } from "react";
|
||||
import { useAuth } from "@/lib/auth";
|
||||
import Sidebar from "@/components/Sidebar";
|
||||
import NotificationBell from "@/components/NotificationBell";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
|
||||
@@ -60,10 +61,7 @@ function AppShell({ children }: { children: React.ReactNode }) {
|
||||
</div>
|
||||
|
||||
<div className="d-flex align-items-center gap-3 ms-auto">
|
||||
<button className="notification-btn">
|
||||
<i className="bi bi-bell"></i>
|
||||
<span className="notification-badge">3</span>
|
||||
</button>
|
||||
<NotificationBell />
|
||||
|
||||
<TopNavbarUser />
|
||||
</div>
|
||||
|
||||
@@ -208,18 +208,169 @@ body {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
width: 18px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 4px;
|
||||
background: #dc3545;
|
||||
color: #fff;
|
||||
font-size: 0.65rem;
|
||||
border-radius: 50%;
|
||||
border-radius: 9px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.notification-panel {
|
||||
width: 380px;
|
||||
max-width: calc(100vw - 2rem);
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(22, 36, 61, 0.1);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 0.6rem 1.4rem rgba(22, 36, 61, 0.12);
|
||||
}
|
||||
|
||||
.notification-hero {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.8rem 1rem;
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, #16243d 0%, #015fc9 100%);
|
||||
}
|
||||
|
||||
.notification-eyebrow {
|
||||
display: block;
|
||||
margin-bottom: 0.15rem;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 0.62rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.notification-hero strong {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.notification-markall {
|
||||
flex-shrink: 0;
|
||||
color: #fff;
|
||||
border: 1px solid rgba(255, 255, 255, 0.35);
|
||||
border-radius: 10px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.notification-markall:hover:not(:disabled) {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.notification-markall:disabled {
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.notification-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.4rem;
|
||||
padding: 0.6rem 1rem;
|
||||
border-bottom: 1px solid #edf1f6;
|
||||
background: #fbfcfe;
|
||||
}
|
||||
|
||||
.notification-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
border: 1px solid #dfe8f2;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: #42506b;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
padding: 0.28em 0.7em;
|
||||
}
|
||||
|
||||
.notification-pill.active {
|
||||
background: #16243d;
|
||||
border-color: #16243d;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.notification-list {
|
||||
max-height: 380px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.notification-item {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 1px solid #edf1f6;
|
||||
border-left: 4px solid transparent;
|
||||
padding: 0.65rem 1rem;
|
||||
}
|
||||
|
||||
.notification-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.notification-item:hover {
|
||||
background-color: #f0f6ff;
|
||||
}
|
||||
|
||||
.notification-item.unread {
|
||||
background-color: #e7f2ff;
|
||||
}
|
||||
|
||||
.notification-text {
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.notification-module {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
border-radius: 6px;
|
||||
padding: 0.15em 0.5em;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.notification-title {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.notification-body {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.35;
|
||||
margin-top: 2px;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.notification-time {
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
margin-left: var(--sidebar-width);
|
||||
|
||||
Reference in new issue
Block a user