Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 57c5deb3bd | |||
| c5217aa7c8 |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -534,7 +534,7 @@ class AppointmentManager implements IAppointmentsManager {
|
|||||||
|
|
||||||
await this.updateHeatMap(availabilityConfig);
|
await this.updateHeatMap(availabilityConfig);
|
||||||
|
|
||||||
await this.tryApplyDiscounts(newAppointment);
|
await this.tryApplyDiscounts(newAppointment, String(companyCheck.ownerId));
|
||||||
|
|
||||||
if (notification && checkClient.userId) {
|
if (notification && checkClient.userId) {
|
||||||
//Envio la notificacion al cliente.
|
//Envio la notificacion al cliente.
|
||||||
@@ -592,7 +592,7 @@ class AppointmentManager implements IAppointmentsManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async tryApplyDiscounts(appointment: IAppointment) {
|
private async tryApplyDiscounts(appointment: IAppointment, sessionUser: string) {
|
||||||
//Intenta aplicar un descuento al turno si esta especificado en DiscountsEmail
|
//Intenta aplicar un descuento al turno si esta especificado en DiscountsEmail
|
||||||
// y la fecha coincide con el rango especificado.
|
// y la fecha coincide con el rango especificado.
|
||||||
|
|
||||||
@@ -632,7 +632,7 @@ class AppointmentManager implements IAppointmentsManager {
|
|||||||
appointmentId: String(appointment.id),
|
appointmentId: String(appointment.id),
|
||||||
discountId: String(existDiscount.discountId),
|
discountId: String(existDiscount.discountId),
|
||||||
companyId: String(appointment.companyId),
|
companyId: String(appointment.companyId),
|
||||||
sessionUser: String(appointment.userId),
|
sessionUser: sessionUser,
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ export default function Footer() {
|
|||||||
<Link href="/admin/org" style={{ display: "block" }}>
|
<Link href="/admin/org" style={{ display: "block" }}>
|
||||||
Mis organizaciones
|
Mis organizaciones
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link href="/landing/help" style={{ display: "block" }}>
|
||||||
|
Obtener ayuda
|
||||||
|
</Link>
|
||||||
<h1 style={{ marginTop: "5px" }}>Contacto</h1>
|
<h1 style={{ marginTop: "5px" }}>Contacto</h1>
|
||||||
<Link href="mailto:info@turnosxpress.com.ar" style={{ display: "block" }}>
|
<Link href="mailto:info@turnosxpress.com.ar" style={{ display: "block" }}>
|
||||||
info@turnosxpress.com.ar
|
info@turnosxpress.com.ar
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ import NotificationsNoneOutlinedIcon from "@mui/icons-material/NotificationsNone
|
|||||||
import ChatBubbleOutlineOutlinedIcon from "@mui/icons-material/ChatBubbleOutlineOutlined";
|
import ChatBubbleOutlineOutlinedIcon from "@mui/icons-material/ChatBubbleOutlineOutlined";
|
||||||
import AddCircleOutlineOutlinedIcon from "@mui/icons-material/AddCircleOutlineOutlined";
|
import AddCircleOutlineOutlinedIcon from "@mui/icons-material/AddCircleOutlineOutlined";
|
||||||
import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
|
import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
|
||||||
|
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
||||||
import FinancialWidget from "@components/FinancialWidget/FinancialWidget";
|
import FinancialWidget from "@components/FinancialWidget/FinancialWidget";
|
||||||
import PlanMetricsWidget from "@components/PlanMetricsWidget/PlanMetricsWidget";
|
import PlanMetricsWidget from "@components/PlanMetricsWidget/PlanMetricsWidget";
|
||||||
import PendingRepeatsCard from "@core/app/components/PendingRepeatsCard/PendingRepeatsCard";
|
import PendingRepeatsCard from "@core/app/components/PendingRepeatsCard/PendingRepeatsCard";
|
||||||
@@ -442,6 +443,9 @@ function DashboardContent() {
|
|||||||
<div className={classNames(style.actionButton)} style={{backgroundColor: "var(--wine-red)"}} onClick={handleNewAppointmentClick}>
|
<div className={classNames(style.actionButton)} style={{backgroundColor: "var(--wine-red)"}} onClick={handleNewAppointmentClick}>
|
||||||
<AddCircleOutlineOutlinedIcon /> Nuevo Turno
|
<AddCircleOutlineOutlinedIcon /> Nuevo Turno
|
||||||
</div>
|
</div>
|
||||||
|
<div className={classNames(style.actionButton, style.buttonHelp)} onClick={() => goTo("/landing/help")}>
|
||||||
|
<HelpOutlineIcon /> Obtener ayuda
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +1,42 @@
|
|||||||
.dashboardGrid {
|
.dashboardGrid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
gap: 20px;
|
gap: 24px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1200px;
|
max-width: 1280px;
|
||||||
margin: 30px auto;
|
margin: 40px auto;
|
||||||
padding: 0 20px;
|
padding: 0 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 850px) {
|
@media (min-width: 850px) {
|
||||||
.dashboardGrid {
|
.dashboardGrid {
|
||||||
grid-template-columns: 350px 1fr;
|
grid-template-columns: 380px 1fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Welcome Card - Modern gradient design */
|
||||||
.welcomeCard {
|
.welcomeCard {
|
||||||
background-color: white;
|
background: linear-gradient(135deg, #ffffff 0%, #faf7fb 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
padding: 30px;
|
padding: 36px;
|
||||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 20px;
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
border: 1px solid rgba(127, 42, 255, 0.08);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcomeCard::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 4px;
|
||||||
|
background: linear-gradient(90deg, var(--wine-red) 0%, var(--wine-dark) 50%, var(--wine-darkest) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcomeContainer {
|
.welcomeContainer {
|
||||||
@@ -35,24 +48,35 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.welcomeContainer h3 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--wine-superdark);
|
||||||
|
margin: 0;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
.metricsCard {
|
.metricsCard {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Agenda Card */
|
||||||
.agendaCard {
|
.agendaCard {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
padding: 30px;
|
padding: 28px;
|
||||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 16px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
.agendaHeader {
|
.agendaHeader {
|
||||||
@@ -68,10 +92,16 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.agendaHeader h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--wine-superdark);
|
||||||
|
}
|
||||||
|
|
||||||
.agendaHeaderTitleWrap {
|
.agendaHeaderTitleWrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,14 +109,15 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-width: 28px;
|
min-width: 32px;
|
||||||
height: 28px;
|
height: 32px;
|
||||||
padding: 0 9px;
|
padding: 0 10px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: var(--wine-red);
|
background: linear-gradient(135deg, var(--wine-red) 0%, var(--wine-dark) 100%);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
|
box-shadow: 0 4px 12px rgba(255, 42, 127, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.agendaToggleIcon {
|
.agendaToggleIcon {
|
||||||
@@ -94,21 +125,27 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: 32px;
|
width: 36px;
|
||||||
height: 32px;
|
height: 36px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
color: var(--wine-red);
|
color: var(--wine-red);
|
||||||
border: 1px solid var(--wine-red);
|
border: 2px solid var(--wine-red);
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.agendaToggleIcon:hover {
|
||||||
|
background: var(--wine-red);
|
||||||
|
color: var(--white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.agendaList {
|
.agendaList {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
@@ -116,22 +153,25 @@
|
|||||||
.agendaItem {
|
.agendaItem {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 15px;
|
padding: 16px 18px;
|
||||||
border-radius: 12px;
|
border-radius: 14px;
|
||||||
background-color: #f9f9f9;
|
background: linear-gradient(135deg, #faf7fb 0%, #ffffff 100%);
|
||||||
border-left: 4px solid var(--wine-red);
|
border-left: 4px solid var(--wine-red);
|
||||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
border: 1px solid rgba(127, 42, 255, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.agendaItem:hover {
|
.agendaItem:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
|
||||||
|
border-left-color: var(--wine-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Quick Actions - Modern button grid */
|
||||||
.quickActions {
|
.quickActions {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||||
gap: 15px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actionButton {
|
.actionButton {
|
||||||
@@ -139,37 +179,75 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
padding: 20px 10px;
|
padding: 24px 16px;
|
||||||
border-radius: 16px;
|
border-radius: 18px;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: bold;
|
font-weight: 700;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.actionButton::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actionButton:hover::before {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actionButton:hover {
|
.actionButton:hover {
|
||||||
transform: translateY(-4px);
|
transform: translateY(-6px);
|
||||||
box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonOrganizations { background-color: var(--organization-card); }
|
.actionButton:active {
|
||||||
.buttonNotification { background-color: var(--red); }
|
transform: translateY(-2px);
|
||||||
.buttonMessenger { background-color: var(--orange); }
|
}
|
||||||
|
|
||||||
|
.actionButton svg {
|
||||||
|
font-size: 28px !important;
|
||||||
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttonOrganizations {
|
||||||
|
background: linear-gradient(135deg, var(--organization-card) 0%, var(--organization-flag) 100%);
|
||||||
|
}
|
||||||
|
.buttonNotification {
|
||||||
|
background: linear-gradient(135deg, var(--red) 0%, var(--red-darkest) 100%);
|
||||||
|
}
|
||||||
|
.buttonMessenger {
|
||||||
|
background: linear-gradient(135deg, var(--orange) 0%, #cc7a00 100%);
|
||||||
|
}
|
||||||
|
.buttonHelp {
|
||||||
|
background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-darkest) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Payment Cards */
|
||||||
.pendingPaymentCard {
|
.pendingPaymentCard {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
padding: 26px 30px;
|
padding: 28px 32px;
|
||||||
border-radius: 18px;
|
border-radius: 20px;
|
||||||
background: #fff8e8;
|
background: linear-gradient(135deg, #fff8e8 0%, #fff3d6 100%);
|
||||||
border: 1px solid rgba(255, 151, 36, 0.28);
|
border: 1px solid rgba(255, 151, 36, 0.3);
|
||||||
box-shadow: 0 12px 28px rgba(255, 151, 36, 0.1);
|
box-shadow: 0 12px 32px rgba(255, 151, 36, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.failedPaymentCard {
|
.failedPaymentCard {
|
||||||
@@ -178,11 +256,11 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
padding: 26px 30px;
|
padding: 28px 32px;
|
||||||
border-radius: 18px;
|
border-radius: 20px;
|
||||||
background: #f8fafc;
|
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||||
border: 1px solid rgba(100, 116, 139, 0.24);
|
border: 1px solid rgba(100, 116, 139, 0.25);
|
||||||
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
|
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.expiredDowngradeCard {
|
.expiredDowngradeCard {
|
||||||
@@ -191,11 +269,11 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
padding: 26px 30px;
|
padding: 28px 32px;
|
||||||
border-radius: 18px;
|
border-radius: 20px;
|
||||||
background: #fff7ed;
|
background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
|
||||||
border: 1px solid rgba(194, 65, 12, 0.24);
|
border: 1px solid rgba(194, 65, 12, 0.25);
|
||||||
box-shadow: 0 12px 28px rgba(194, 65, 12, 0.08);
|
box-shadow: 0 12px 32px rgba(194, 65, 12, 0.1);
|
||||||
color: #7c2d12;
|
color: #7c2d12;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,78 +288,82 @@
|
|||||||
.pendingPaymentContent {
|
.pendingPaymentContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
max-width: 760px;
|
max-width: 760px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pendingPaymentEyebrow {
|
.pendingPaymentEyebrow {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 5px 11px;
|
padding: 6px 12px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: rgba(255, 151, 36, 0.16);
|
background: rgba(255, 151, 36, 0.18);
|
||||||
color: #9a4b00;
|
color: #9a4b00;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.failedPaymentEyebrow {
|
.failedPaymentEyebrow {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 5px 11px;
|
padding: 6px 12px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: rgba(100, 116, 139, 0.12);
|
background: rgba(100, 116, 139, 0.14);
|
||||||
color: #475569;
|
color: #475569;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expiredDowngradeEyebrow {
|
.expiredDowngradeEyebrow {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 5px 11px;
|
padding: 6px 12px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: rgba(194, 65, 12, 0.12);
|
background: rgba(194, 65, 12, 0.14);
|
||||||
color: #9a3412;
|
color: #9a3412;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expiredDowngradeButton {
|
.expiredDowngradeButton {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
border: 1px solid rgba(124, 45, 18, 0.22);
|
border: 1px solid rgba(124, 45, 18, 0.25);
|
||||||
border-radius: 14px;
|
border-radius: 16px;
|
||||||
background: #7c2d12;
|
background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
|
||||||
color: #fff7ed;
|
color: #fff7ed;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
padding: 14px 18px;
|
padding: 16px 20px;
|
||||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
transition: all 0.3s ease;
|
||||||
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expiredDowngradeButton:hover {
|
.expiredDowngradeButton:hover {
|
||||||
box-shadow: 0 10px 24px rgba(124, 45, 18, 0.18);
|
box-shadow: 0 12px 28px rgba(124, 45, 18, 0.2);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pendingPaymentContent h2 {
|
.pendingPaymentContent h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
font-size: clamp(22px, 3vw, 30px);
|
font-size: clamp(22px, 3vw, 28px);
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pendingPaymentContent p {
|
.pendingPaymentContent p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--gray-dark);
|
color: var(--gray-dark);
|
||||||
line-height: 1.55;
|
line-height: 1.6;
|
||||||
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pendingPaymentLink {
|
.pendingPaymentLink {
|
||||||
color: #9a4b00;
|
color: #9a4b00;
|
||||||
font-weight: 800;
|
font-weight: 700;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 3px;
|
text-underline-offset: 3px;
|
||||||
}
|
}
|
||||||
@@ -295,31 +377,32 @@
|
|||||||
min-width: 260px;
|
min-width: 260px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Starter Cards */
|
||||||
.starterCard {
|
.starterCard {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
padding: 32px;
|
padding: 36px;
|
||||||
border-radius: 20px;
|
border-radius: 24px;
|
||||||
background: linear-gradient(135deg, rgba(128, 0, 32, 0.96), rgba(58, 0, 120, 0.94));
|
background: linear-gradient(135deg, rgba(128, 0, 32, 0.96), rgba(58, 0, 120, 0.94));
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
box-shadow: 0 18px 45px rgba(58, 0, 120, 0.18);
|
box-shadow: 0 20px 50px rgba(58, 0, 120, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterContent {
|
.starterContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
max-width: 720px;
|
max-width: 720px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterEyebrow {
|
.starterEyebrow {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 6px 12px;
|
padding: 7px 14px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: rgba(255, 255, 255, 0.16);
|
background: rgba(255, 255, 255, 0.18);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -329,14 +412,15 @@
|
|||||||
.starterContent h2 {
|
.starterContent h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: clamp(26px, 4vw, 38px);
|
font-size: clamp(26px, 4vw, 38px);
|
||||||
line-height: 1.05;
|
line-height: 1.1;
|
||||||
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterContent p {
|
.starterContent p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: rgba(255, 255, 255, 0.86);
|
color: rgba(255, 255, 255, 0.88);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.65;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterActions {
|
.starterActions {
|
||||||
@@ -349,69 +433,79 @@
|
|||||||
.starterPrimaryButton,
|
.starterPrimaryButton,
|
||||||
.starterSecondaryButton {
|
.starterSecondaryButton {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 14px;
|
border-radius: 16px;
|
||||||
padding: 14px 18px;
|
padding: 16px 20px;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
transition: all 0.3s ease;
|
||||||
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterPrimaryButton:hover,
|
.starterPrimaryButton:hover,
|
||||||
.starterSecondaryButton:hover {
|
.starterSecondaryButton:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterPrimaryButton {
|
.starterPrimaryButton {
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
color: var(--wine-red);
|
color: var(--wine-red);
|
||||||
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
|
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterSecondaryButton {
|
.starterSecondaryButton {
|
||||||
background: rgba(255, 255, 255, 0.14);
|
background: rgba(255, 255, 255, 0.16);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.32);
|
border: 1px solid rgba(255, 255, 255, 0.35);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterGuideGrid {
|
.starterGuideGrid {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
gap: 18px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterGuideCard {
|
.starterGuideCard {
|
||||||
min-height: 220px;
|
min-height: 220px;
|
||||||
padding: 26px;
|
padding: 28px;
|
||||||
border-radius: 18px;
|
border-radius: 20px;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
|
||||||
border: 1px solid rgba(128, 0, 32, 0.08);
|
border: 1px solid rgba(128, 0, 32, 0.08);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.starterGuideCard:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterGuideNumber {
|
.starterGuideNumber {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 38px;
|
width: 42px;
|
||||||
height: 38px;
|
height: 42px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: rgba(128, 0, 32, 0.1);
|
background: linear-gradient(135deg, var(--wine-red) 0%, var(--wine-dark) 100%);
|
||||||
color: var(--wine-red);
|
color: var(--white);
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 20px;
|
||||||
|
font-size: 18px;
|
||||||
|
box-shadow: 0 6px 16px rgba(255, 42, 127, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterGuideCard h3 {
|
.starterGuideCard h3 {
|
||||||
margin: 0 0 10px;
|
margin: 0 0 12px;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterGuideCard p {
|
.starterGuideCard p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--gray-dark);
|
color: var(--gray-dark);
|
||||||
line-height: 1.55;
|
line-height: 1.6;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,32 +513,34 @@
|
|||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
|
grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
|
||||||
gap: 28px;
|
gap: 32px;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
padding: 34px;
|
padding: 36px;
|
||||||
border-radius: 20px;
|
border-radius: 24px;
|
||||||
background: linear-gradient(180deg, #ffffff 0%, #faf7fb 100%);
|
background: linear-gradient(180deg, #ffffff 0%, #faf7fb 100%);
|
||||||
box-shadow: 0 12px 34px rgba(0, 0, 0, 0.055);
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
|
||||||
border: 1px solid rgba(128, 0, 32, 0.08);
|
border: 1px solid rgba(128, 0, 32, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterNextStepsPanel h3 {
|
.starterNextStepsPanel h3 {
|
||||||
margin: 14px 0 10px;
|
margin: 16px 0 12px;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
font-size: clamp(24px, 3vw, 34px);
|
font-size: clamp(24px, 3vw, 34px);
|
||||||
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterNextStepsPanel p {
|
.starterNextStepsPanel p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
max-width: 680px;
|
max-width: 680px;
|
||||||
color: var(--gray-dark);
|
color: var(--gray-dark);
|
||||||
line-height: 1.65;
|
line-height: 1.7;
|
||||||
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterChecklist {
|
.starterChecklist {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 14px;
|
gap: 16px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -452,49 +548,81 @@
|
|||||||
|
|
||||||
.starterChecklist li {
|
.starterChecklist li {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 14px 16px 14px 44px;
|
padding: 16px 18px 16px 48px;
|
||||||
border-radius: 14px;
|
border-radius: 16px;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.045);
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.starterChecklist li:hover {
|
||||||
|
transform: translateX(4px);
|
||||||
|
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterChecklist li::before {
|
.starterChecklist li::before {
|
||||||
content: "✓";
|
content: "✓";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 16px;
|
left: 18px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 20px;
|
width: 22px;
|
||||||
height: 20px;
|
height: 22px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: var(--green);
|
background: linear-gradient(135deg, var(--green) 0%, var(--green-darkestX1) 100%);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
box-shadow: 0 3px 8px rgba(42, 255, 42, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive */
|
||||||
@media (max-width: 760px) {
|
@media (max-width: 760px) {
|
||||||
|
.dashboardGrid {
|
||||||
|
margin: 24px auto;
|
||||||
|
padding: 0 16px;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcomeCard {
|
||||||
|
padding: 28px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcomeContainer h3 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quickActions {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actionButton {
|
||||||
|
padding: 20px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.pendingPaymentCard {
|
.pendingPaymentCard {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 22px;
|
padding: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.failedPaymentCard {
|
.failedPaymentCard {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 22px;
|
padding: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expiredDowngradeCard {
|
.expiredDowngradeCard {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 22px;
|
padding: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expiredDowngradeButton {
|
.expiredDowngradeButton {
|
||||||
@@ -510,7 +638,7 @@
|
|||||||
.starterCard {
|
.starterCard {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 24px;
|
padding: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.starterActions {
|
.starterActions {
|
||||||
@@ -523,7 +651,13 @@
|
|||||||
|
|
||||||
.starterNextStepsPanel {
|
.starterNextStepsPanel {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
padding: 24px;
|
padding: 28px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.quickActions {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,169 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useCallback } from "react";
|
||||||
|
import style from "../help.module.css";
|
||||||
|
import { Video, videoCategories } from "../videoData";
|
||||||
|
|
||||||
|
interface VideoModalProps {
|
||||||
|
video: Video | null;
|
||||||
|
isOpen: boolean;
|
||||||
|
onClose: () => void;
|
||||||
|
onSelectVideo: (video: Video) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function VideoModal({
|
||||||
|
video,
|
||||||
|
isOpen,
|
||||||
|
onClose,
|
||||||
|
onSelectVideo,
|
||||||
|
}: VideoModalProps) {
|
||||||
|
const handleKeyDown = useCallback(
|
||||||
|
(e: KeyboardEvent) => {
|
||||||
|
if (e.key === "Escape") {
|
||||||
|
onClose();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[onClose]
|
||||||
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (isOpen) {
|
||||||
|
document.addEventListener("keydown", handleKeyDown);
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
document.removeEventListener("keydown", handleKeyDown);
|
||||||
|
document.body.style.overflow = "";
|
||||||
|
};
|
||||||
|
}, [isOpen, handleKeyDown]);
|
||||||
|
|
||||||
|
if (!isOpen || !video) return null;
|
||||||
|
|
||||||
|
const getCategoryName = (categoryId: string) => {
|
||||||
|
const cat = videoCategories.find((c) => c.id === categoryId);
|
||||||
|
return cat ? cat.name : "";
|
||||||
|
};
|
||||||
|
|
||||||
|
const allVideos = videoCategories.flatMap((cat) => cat.videos);
|
||||||
|
const currentVideoIndex = allVideos.findIndex((v) => v.id === video.id);
|
||||||
|
|
||||||
|
const handleNext = () => {
|
||||||
|
if (currentVideoIndex < allVideos.length - 1) {
|
||||||
|
onSelectVideo(allVideos[currentVideoIndex + 1]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handlePrev = () => {
|
||||||
|
if (currentVideoIndex > 0) {
|
||||||
|
onSelectVideo(allVideos[currentVideoIndex - 1]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={style.modalOverlay} onClick={onClose}>
|
||||||
|
<div className={style.modalContent} onClick={(e) => e.stopPropagation()}>
|
||||||
|
<div className={style.modalHeader}>
|
||||||
|
<h3 className={style.modalTitle}>{video.title}</h3>
|
||||||
|
<button className={style.modalClose} onClick={onClose} aria-label="Cerrar">
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div className={style.modalBody}>
|
||||||
|
<div className={style.modalVideo}>
|
||||||
|
<div className={style.videoWrapper}>
|
||||||
|
<iframe
|
||||||
|
src={`https://www.youtube.com/embed/${video.id}?autoplay=1&rel=0&modestbranding=1`}
|
||||||
|
title={video.title}
|
||||||
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
|
allowFullScreen
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div style={{ padding: "1rem 1.5rem", borderBottom: "1px solid var(--white-darkest)" }}>
|
||||||
|
<p style={{ color: "var(--gray-dark)", fontSize: "0.9rem", lineHeight: 1.6 }}>
|
||||||
|
{video.description}
|
||||||
|
</p>
|
||||||
|
<div style={{ display: "flex", gap: "0.75rem", marginTop: "0.75rem" }}>
|
||||||
|
{currentVideoIndex > 0 && (
|
||||||
|
<button
|
||||||
|
onClick={handlePrev}
|
||||||
|
style={{
|
||||||
|
padding: "0.5rem 1rem",
|
||||||
|
borderRadius: "8px",
|
||||||
|
border: "1px solid var(--white-darkest)",
|
||||||
|
background: "var(--white)",
|
||||||
|
cursor: "pointer",
|
||||||
|
fontSize: "0.85rem",
|
||||||
|
fontWeight: 600,
|
||||||
|
color: "var(--black)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
← Anterior
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
{currentVideoIndex < allVideos.length - 1 && (
|
||||||
|
<button
|
||||||
|
onClick={handleNext}
|
||||||
|
style={{
|
||||||
|
padding: "0.5rem 1rem",
|
||||||
|
borderRadius: "8px",
|
||||||
|
border: "none",
|
||||||
|
background: "linear-gradient(135deg, var(--wine-red), var(--wine-dark))",
|
||||||
|
color: "white",
|
||||||
|
cursor: "pointer",
|
||||||
|
fontSize: "0.85rem",
|
||||||
|
fontWeight: 600,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Siguiente →
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={style.modalSidebar}>
|
||||||
|
<div className={style.sidebarTitle}>Todos los tutoriales</div>
|
||||||
|
{videoCategories.map((cat) => (
|
||||||
|
<div key={cat.id}>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
padding: "0.6rem 1.25rem",
|
||||||
|
fontSize: "0.75rem",
|
||||||
|
fontWeight: 700,
|
||||||
|
color: "var(--wine-dark)",
|
||||||
|
textTransform: "uppercase",
|
||||||
|
letterSpacing: "0.5px",
|
||||||
|
background: "rgba(127, 42, 255, 0.04)",
|
||||||
|
borderTop: "1px solid var(--white-darkest)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{cat.icon} {cat.name}
|
||||||
|
</div>
|
||||||
|
{cat.videos.map((v) => (
|
||||||
|
<div
|
||||||
|
key={v.id}
|
||||||
|
className={
|
||||||
|
v.id === video.id
|
||||||
|
? style.sidebarVideoActive
|
||||||
|
: style.sidebarVideo
|
||||||
|
}
|
||||||
|
onClick={() => onSelectVideo(v)}
|
||||||
|
>
|
||||||
|
<div className={style.sidebarThumb}>
|
||||||
|
<img src={v.thumbnail} alt={v.title} />
|
||||||
|
</div>
|
||||||
|
<div className={style.sidebarVideoInfo}>
|
||||||
|
<div className={style.sidebarVideoTitle}>{v.title}</div>
|
||||||
|
<div className={style.sidebarVideoCategory}>
|
||||||
|
{getCategoryName(v.category)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,701 @@
|
|||||||
|
/* Help Center - Professional Video Tutorial Page */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1300px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
|
.hero {
|
||||||
|
text-align: center;
|
||||||
|
padding: 4rem 2rem 3rem;
|
||||||
|
padding-top: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroIcon {
|
||||||
|
width: 72px;
|
||||||
|
height: 72px;
|
||||||
|
background: linear-gradient(135deg, var(--wine-red) 0%, var(--wine-dark) 100%);
|
||||||
|
border-radius: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 0 auto 1.5rem;
|
||||||
|
box-shadow: 0 10px 30px rgba(255, 42, 127, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroTitle {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1.2;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
background: linear-gradient(135deg, var(--wine-superdark) 0%, var(--wine-red) 100%);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
background-clip: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroSubtitle {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
color: var(--gray-dark);
|
||||||
|
max-width: 700px;
|
||||||
|
margin: 0 auto 2rem;
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroStats {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statItem {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
background: var(--white);
|
||||||
|
border-radius: 50px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
|
||||||
|
border: 1px solid var(--white-darkest);
|
||||||
|
}
|
||||||
|
|
||||||
|
.statNumber {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--wine-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.statLabel {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--gray-dark);
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Category Navigation */
|
||||||
|
.categoryNav {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.75rem;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding: 1.5rem 0 3rem;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
z-index: 10;
|
||||||
|
border-bottom: 1px solid var(--white-darkest);
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryBtn {
|
||||||
|
padding: 0.6rem 1.4rem;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.25s ease;
|
||||||
|
border: 2px solid var(--white-darkest);
|
||||||
|
background: var(--white);
|
||||||
|
color: var(--gray-dark);
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryBtn:hover {
|
||||||
|
border-color: var(--wine-light);
|
||||||
|
color: var(--wine-dark);
|
||||||
|
background: rgba(127, 42, 255, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryBtnActive {
|
||||||
|
composes: categoryBtn;
|
||||||
|
background: linear-gradient(135deg, var(--wine-red) 0%, var(--wine-dark) 100%);
|
||||||
|
color: var(--white);
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: 0 4px 15px rgba(255, 42, 127, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryBtnActive:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 20px rgba(255, 42, 127, 0.4);
|
||||||
|
color: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Category Section */
|
||||||
|
.categorySection {
|
||||||
|
margin-bottom: 4rem;
|
||||||
|
scroll-margin-top: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryHeader {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 2px solid var(--white-darkest);
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryIcon {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 14px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryTitle {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--wine-superdark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryDescription {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--gray-dark);
|
||||||
|
margin-top: 0.25rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryCount {
|
||||||
|
margin-left: auto;
|
||||||
|
background: var(--white-dark);
|
||||||
|
color: var(--gray-dark);
|
||||||
|
padding: 0.3rem 0.8rem;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Video Grid */
|
||||||
|
.videoGrid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Video Card */
|
||||||
|
.videoCard {
|
||||||
|
background: var(--white);
|
||||||
|
border-radius: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid var(--white-darkest);
|
||||||
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoCard:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
|
||||||
|
border-color: var(--wine-lighter);
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoThumbnail {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
padding-bottom: 56.25%;
|
||||||
|
overflow: hidden;
|
||||||
|
background: var(--black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoThumbnail img {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoCard:hover .videoThumbnail img {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.playOverlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: rgba(0, 0, 0, 0);
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoCard:hover .playOverlay {
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.playButton {
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0.8);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoCard:hover .playButton {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.playIcon {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 10px 0 10px 18px;
|
||||||
|
border-color: transparent transparent transparent var(--wine-red);
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoDuration {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 8px;
|
||||||
|
right: 8px;
|
||||||
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
color: white;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoContent {
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoTitle {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--black);
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
line-height: 1.4;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoDescription {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--gray-dark);
|
||||||
|
line-height: 1.5;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoMeta {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
padding-top: 0.75rem;
|
||||||
|
border-top: 1px solid var(--white-darkest);
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoStep {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.4rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--wine-dark);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stepNumber {
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
background: linear-gradient(135deg, var(--wine-red), var(--wine-dark));
|
||||||
|
color: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Video Modal */
|
||||||
|
.modalOverlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.85);
|
||||||
|
z-index: 1000;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 2rem;
|
||||||
|
animation: fadeIn 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from { opacity: 0; }
|
||||||
|
to { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalContent {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1100px;
|
||||||
|
background: var(--white);
|
||||||
|
border-radius: 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
|
||||||
|
animation: slideUp 0.3s ease;
|
||||||
|
max-height: 90vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideUp {
|
||||||
|
from { transform: translateY(20px); opacity: 0; }
|
||||||
|
to { transform: translateY(0); opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalHeader {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1.25rem 1.5rem;
|
||||||
|
border-bottom: 1px solid var(--white-darkest);
|
||||||
|
background: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalTitle {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--black);
|
||||||
|
flex: 1;
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalClose {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--white-dark);
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalClose:hover {
|
||||||
|
background: var(--error);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalBody {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalVideo {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoWrapper {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 56.25%;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoWrapper iframe {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalSidebar {
|
||||||
|
width: 320px;
|
||||||
|
overflow-y: auto;
|
||||||
|
border-left: 1px solid var(--white-darkest);
|
||||||
|
background: var(--white-dark);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarTitle {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--gray-dark);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
padding: 1rem 1.25rem 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarVideo {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.75rem;
|
||||||
|
padding: 0.75rem 1.25rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarVideo:hover {
|
||||||
|
background: rgba(127, 42, 255, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarVideoActive {
|
||||||
|
composes: sidebarVideo;
|
||||||
|
background: rgba(127, 42, 255, 0.08);
|
||||||
|
border-left: 3px solid var(--wine-red);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarThumb {
|
||||||
|
width: 100px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
flex-shrink: 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarThumb img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarVideoInfo {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarVideoTitle {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--black);
|
||||||
|
line-height: 1.3;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarVideoCategory {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: var(--wine-dark);
|
||||||
|
font-weight: 500;
|
||||||
|
margin-top: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Progress Section */
|
||||||
|
.progressSection {
|
||||||
|
background: linear-gradient(135deg, var(--wine-superdark) 0%, var(--wine-darkest) 100%);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 3rem;
|
||||||
|
margin: 3rem 0;
|
||||||
|
text-align: center;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressTitle {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
font-weight: 800;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressText {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
opacity: 0.85;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto 2rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressBar {
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 0 auto;
|
||||||
|
height: 8px;
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressFill {
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, var(--wine-red), var(--yellow));
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: width 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CTA Section */
|
||||||
|
.ctaSection {
|
||||||
|
text-align: center;
|
||||||
|
padding: 4rem 2rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
background: var(--white-dark);
|
||||||
|
border-radius: 24px;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ctaTitle {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--wine-superdark);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ctaText {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
color: var(--gray-dark);
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 0 auto 2rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ctaButton {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1rem 2.5rem;
|
||||||
|
background: linear-gradient(135deg, var(--wine-red) 0%, var(--wine-dark) 100%);
|
||||||
|
color: white;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 4px 15px rgba(255, 42, 127, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ctaButton:hover {
|
||||||
|
transform: translateY(-3px);
|
||||||
|
box-shadow: 0 8px 25px rgba(255, 42, 127, 0.4);
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Learning Path */
|
||||||
|
.learningPath {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
background: rgba(127, 42, 255, 0.04);
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
border: 1px solid rgba(127, 42, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.learningPathIcon {
|
||||||
|
color: var(--wine-dark);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.learningPathText {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--wine-darkest);
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive */
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.modalSidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalBody {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.heroTitle {
|
||||||
|
font-size: 2.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroSubtitle {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoGrid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryNav {
|
||||||
|
justify-content: flex-start;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryHeader {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryCount {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroStats {
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statItem {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalContent {
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalOverlay {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressSection {
|
||||||
|
padding: 2rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
padding: 0 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.hero {
|
||||||
|
padding: 3rem 1rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heroTitle {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categoryTitle {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoContent {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,317 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useState, useEffect } from "react";
|
||||||
|
import style from "./help.module.css";
|
||||||
|
import { videoCategories, Video, getTotalVideoCount } from "./videoData";
|
||||||
|
import VideoModal from "./components/VideoModal";
|
||||||
|
import AnimatedContainer from "@core/app/components/AnimatedConainer/AnimatedContainer";
|
||||||
|
import HeaderConfProvider from "@core/app/components/HeaderConfProvider/HeaderConfProvider";
|
||||||
|
import DefaultLoginAction from "@core/app/components/LoginAction/DefaultLoginAction";
|
||||||
|
import { ScrollToTop } from "@core/app/components/ScrollTop";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
export default function HelpPage() {
|
||||||
|
const [selectedVideo, setSelectedVideo] = useState<Video | null>(null);
|
||||||
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
||||||
|
const [activeCategory, setActiveCategory] = useState<string>("all");
|
||||||
|
const [watchedVideos, setWatchedVideos] = useState<Set<string>>(new Set());
|
||||||
|
|
||||||
|
const totalVideos = getTotalVideoCount();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const watched = localStorage.getItem("tx-help-watched");
|
||||||
|
if (watched) {
|
||||||
|
setWatchedVideos(new Set(JSON.parse(watched)));
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleVideoClick = (video: Video) => {
|
||||||
|
setSelectedVideo(video);
|
||||||
|
setIsModalOpen(true);
|
||||||
|
const newWatched = new Set(watchedVideos);
|
||||||
|
newWatched.add(video.id);
|
||||||
|
setWatchedVideos(newWatched);
|
||||||
|
localStorage.setItem("tx-help-watched", JSON.stringify([...newWatched]));
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleCloseModal = () => {
|
||||||
|
setIsModalOpen(false);
|
||||||
|
setTimeout(() => setSelectedVideo(null), 200);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleCategoryClick = (categoryId: string) => {
|
||||||
|
setActiveCategory(categoryId);
|
||||||
|
if (categoryId !== "all") {
|
||||||
|
const element = document.getElementById(`category-${categoryId}`);
|
||||||
|
if (element) {
|
||||||
|
element.scrollIntoView({ behavior: "smooth", block: "start" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const progressPercent = Math.round((watchedVideos.size / totalVideos) * 100);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<AnimatedContainer
|
||||||
|
color="#aeaeae"
|
||||||
|
minSize={150}
|
||||||
|
maxSize={500}
|
||||||
|
items={10}
|
||||||
|
style={{
|
||||||
|
display: "block",
|
||||||
|
width: "100%",
|
||||||
|
background: "var(--white)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ScrollToTop />
|
||||||
|
<HeaderConfProvider />
|
||||||
|
<DefaultLoginAction />
|
||||||
|
|
||||||
|
<div className={style.container}>
|
||||||
|
{/* Hero Section */}
|
||||||
|
<div className={style.hero}>
|
||||||
|
<div className={style.heroIcon}>
|
||||||
|
<svg
|
||||||
|
width="36"
|
||||||
|
height="36"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="white"
|
||||||
|
strokeWidth="2"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
>
|
||||||
|
<polygon points="5 3 19 12 5 21 5 3" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<h1 className={style.heroTitle}>Centro de Ayuda</h1>
|
||||||
|
<p className={style.heroSubtitle}>
|
||||||
|
Aprende a usar TurnosXpress paso a paso con nuestros tutoriales en video.
|
||||||
|
Desde la configuración inicial hasta las funciones más avanzadas,
|
||||||
|
tenemos todo lo que necesitas para aprovechar al máximo la plataforma.
|
||||||
|
</p>
|
||||||
|
<div className={style.heroStats}>
|
||||||
|
<div className={style.statItem}>
|
||||||
|
<span className={style.statNumber}>{totalVideos}</span>
|
||||||
|
<span className={style.statLabel}>Video tutoriales</span>
|
||||||
|
</div>
|
||||||
|
<div className={style.statItem}>
|
||||||
|
<span className={style.statNumber}>{videoCategories.length}</span>
|
||||||
|
<span className={style.statLabel}>Categorías</span>
|
||||||
|
</div>
|
||||||
|
<div className={style.statItem}>
|
||||||
|
<span className={style.statNumber}>{watchedVideos.size}</span>
|
||||||
|
<span className={style.statLabel}>Vistos</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Progress Section */}
|
||||||
|
{watchedVideos.size > 0 && (
|
||||||
|
<div className={style.progressSection}>
|
||||||
|
<h2 className={style.progressTitle}>
|
||||||
|
Tu progreso de aprendizaje
|
||||||
|
</h2>
|
||||||
|
<p className={style.progressText}>
|
||||||
|
Has visto {watchedVideos.size} de {totalVideos} tutoriales.
|
||||||
|
{progressPercent === 100
|
||||||
|
? " ¡Felicidades! Has completado todos los tutoriales."
|
||||||
|
: ` ¡Sigue así, te faltan ${totalVideos - watchedVideos.size}!`}
|
||||||
|
</p>
|
||||||
|
<div className={style.progressBar}>
|
||||||
|
<div
|
||||||
|
className={style.progressFill}
|
||||||
|
style={{ width: `${progressPercent}%` }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Category Navigation */}
|
||||||
|
<div className={style.categoryNav}>
|
||||||
|
<button
|
||||||
|
className={
|
||||||
|
activeCategory === "all"
|
||||||
|
? style.categoryBtnActive
|
||||||
|
: style.categoryBtn
|
||||||
|
}
|
||||||
|
onClick={() => {
|
||||||
|
setActiveCategory("all");
|
||||||
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Todos
|
||||||
|
</button>
|
||||||
|
{videoCategories.map((cat) => (
|
||||||
|
<button
|
||||||
|
key={cat.id}
|
||||||
|
className={
|
||||||
|
activeCategory === cat.id
|
||||||
|
? style.categoryBtnActive
|
||||||
|
: style.categoryBtn
|
||||||
|
}
|
||||||
|
onClick={() => handleCategoryClick(cat.id)}
|
||||||
|
>
|
||||||
|
{cat.icon} {cat.name}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Learning Path */}
|
||||||
|
<div className={style.learningPath}>
|
||||||
|
<span className={style.learningPathIcon}>
|
||||||
|
<svg
|
||||||
|
width="20"
|
||||||
|
height="20"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth="2"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
>
|
||||||
|
<circle cx="12" cy="12" r="10" />
|
||||||
|
<path d="M12 16v-4" />
|
||||||
|
<path d="M12 8h.01" />
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
<span className={style.learningPathText}>
|
||||||
|
<strong>Recomendación:</strong> Sigue el orden de las categorías para
|
||||||
|
un aprendizaje progresivo. Comienza con "Primeros Pasos" y
|
||||||
|
avanza según tus necesidades.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Video Categories */}
|
||||||
|
{videoCategories.map((category) => (
|
||||||
|
<div
|
||||||
|
key={category.id}
|
||||||
|
id={`category-${category.id}`}
|
||||||
|
className={style.categorySection}
|
||||||
|
>
|
||||||
|
<div className={style.categoryHeader}>
|
||||||
|
<div
|
||||||
|
className={style.categoryIcon}
|
||||||
|
style={{ background: category.color }}
|
||||||
|
>
|
||||||
|
<span style={{ fontSize: "1.5rem" }}>{category.icon}</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2 className={style.categoryTitle}>{category.name}</h2>
|
||||||
|
<p className={style.categoryDescription}>
|
||||||
|
{category.description}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<span className={style.categoryCount}>
|
||||||
|
{category.videos.length} videos
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={style.videoGrid}>
|
||||||
|
{category.videos.map((video, idx) => (
|
||||||
|
<div
|
||||||
|
key={video.id}
|
||||||
|
className={style.videoCard}
|
||||||
|
onClick={() => handleVideoClick(video)}
|
||||||
|
>
|
||||||
|
<div className={style.videoThumbnail}>
|
||||||
|
<img
|
||||||
|
src={video.thumbnail}
|
||||||
|
alt={video.title}
|
||||||
|
loading="lazy"
|
||||||
|
/>
|
||||||
|
<div className={style.playOverlay}>
|
||||||
|
<div className={style.playButton}>
|
||||||
|
<div className={style.playIcon} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{watchedVideos.has(video.id) && (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "absolute",
|
||||||
|
top: "8px",
|
||||||
|
left: "8px",
|
||||||
|
background:
|
||||||
|
"linear-gradient(135deg, #2aaa2a, #008011)",
|
||||||
|
color: "white",
|
||||||
|
padding: "3px 8px",
|
||||||
|
borderRadius: "4px",
|
||||||
|
fontSize: "0.7rem",
|
||||||
|
fontWeight: 700,
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
gap: "3px",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
✓ Visto
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div className={style.videoContent}>
|
||||||
|
<h3 className={style.videoTitle}>{video.title}</h3>
|
||||||
|
<p className={style.videoDescription}>
|
||||||
|
{video.description}
|
||||||
|
</p>
|
||||||
|
<div className={style.videoMeta}>
|
||||||
|
<div className={style.videoStep}>
|
||||||
|
<span className={style.stepNumber}>
|
||||||
|
{idx + 1}
|
||||||
|
</span>
|
||||||
|
Paso {idx + 1} de {category.videos.length}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* CTA Section */}
|
||||||
|
<div className={style.ctaSection}>
|
||||||
|
<h2 className={style.ctaTitle}>¿Necesitas más ayuda?</h2>
|
||||||
|
<p className={style.ctaText}>
|
||||||
|
Si no encontrás lo que buscás, nuestro equipo de soporte está
|
||||||
|
listo para ayudarte. También podés visitar nuestro canal de YouTube
|
||||||
|
para más contenido.
|
||||||
|
</p>
|
||||||
|
<div style={{ display: "flex", gap: "1rem", justifyContent: "center", flexWrap: "wrap" }}>
|
||||||
|
<a
|
||||||
|
href="mailto:info@turnosxpress.com.ar"
|
||||||
|
className={style.ctaButton}
|
||||||
|
>
|
||||||
|
✉ Escribinos
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="https://www.youtube.com/@turnosxpress"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className={style.ctaButton}
|
||||||
|
style={{
|
||||||
|
background: "var(--white)",
|
||||||
|
color: "var(--wine-darkest)",
|
||||||
|
boxShadow: "0 4px 15px rgba(0,0,0,0.1)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
▶ Canal de YouTube
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Video Modal */}
|
||||||
|
<VideoModal
|
||||||
|
video={selectedVideo}
|
||||||
|
isOpen={isModalOpen}
|
||||||
|
onClose={handleCloseModal}
|
||||||
|
onSelectVideo={(video) => {
|
||||||
|
setSelectedVideo(video);
|
||||||
|
const newWatched = new Set(watchedVideos);
|
||||||
|
newWatched.add(video.id);
|
||||||
|
setWatchedVideos(newWatched);
|
||||||
|
localStorage.setItem("tx-help-watched", JSON.stringify([...newWatched]));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</AnimatedContainer>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,210 @@
|
|||||||
|
export interface Video {
|
||||||
|
id: string;
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
thumbnail: string;
|
||||||
|
category: string;
|
||||||
|
order: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface VideoCategory {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
description: string;
|
||||||
|
icon: string;
|
||||||
|
color: string;
|
||||||
|
videos: Video[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export const videoCategories: VideoCategory[] = [
|
||||||
|
{
|
||||||
|
id: "getting-started",
|
||||||
|
name: "Primeros Pasos",
|
||||||
|
description: "Comienza tu recorrido con TurnosXpress. Aprende a registrarte y crear tu primera organización.",
|
||||||
|
icon: "🚀",
|
||||||
|
color: "linear-gradient(135deg, #ff2a7f 0%, #7f2aff 100%)",
|
||||||
|
videos: [
|
||||||
|
{
|
||||||
|
id: "QE5pEw_af5g",
|
||||||
|
title: "Cómo registrarse en TurnosXpress",
|
||||||
|
description: "Paso a paso completo para crear tu cuenta: formulario, verificación de correo y activación.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/QE5pEw_af5g/hqdefault.jpg",
|
||||||
|
category: "getting-started",
|
||||||
|
order: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "Aufl00f4U0Y",
|
||||||
|
title: "Cómo crear una nueva organización en TurnosXpress",
|
||||||
|
description: "Crea tu organización: nombre, eslogan, categoría y configuración inicial.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/Aufl00f4U0Y/hqdefault.jpg",
|
||||||
|
category: "getting-started",
|
||||||
|
order: 2,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "services",
|
||||||
|
name: "Configuración de Servicios",
|
||||||
|
description: "Aprende a crear, personalizar y hacer visibles tus servicios para los clientes.",
|
||||||
|
icon: "🎯",
|
||||||
|
color: "linear-gradient(135deg, #7f2aff 0%, #3300ff 100%)",
|
||||||
|
videos: [
|
||||||
|
{
|
||||||
|
id: "hgs9w9Q7w2k",
|
||||||
|
title: "Cómo crear tu primer servicio en TurnosXpress",
|
||||||
|
description: "Crea servicios con nombre, descripción, precio, duración y límite de turnos.",
|
||||||
|
thumbnail: "https://i1.ytimg.com/vi/hgs9w9Q7w2k/hqdefault.jpg",
|
||||||
|
category: "services",
|
||||||
|
order: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "UthPmnzR7fg",
|
||||||
|
title: "Cómo asignar una imagen a tus servicios",
|
||||||
|
description: "Personaliza tus servicios agregando imágenes representativas.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/UthPmnzR7fg/hqdefault.jpg",
|
||||||
|
category: "services",
|
||||||
|
order: 2,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "p6_ax-B2vDA",
|
||||||
|
title: "Haz visibles tus servicios en TurnosXpress",
|
||||||
|
description: "Configura servicios como públicos para que aparezcan en la pantalla principal.",
|
||||||
|
thumbnail: "https://i1.ytimg.com/vi/p6_ax-B2vDA/hqdefault.jpg",
|
||||||
|
category: "services",
|
||||||
|
order: 3,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "tzVF2MeW37I",
|
||||||
|
title: "Cómo asignar un servicio a un colaborador",
|
||||||
|
description: "Asigna servicios a los colaboradores de tu organización.",
|
||||||
|
thumbnail: "https://i.ytimg.com/vi/tzVF2MeW37I/hqdefault.jpg",
|
||||||
|
category: "services",
|
||||||
|
order: 4,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "schedules",
|
||||||
|
name: "Gestión de Horarios",
|
||||||
|
description: "Configura la disponibilidad horaria de tus colaboradores y habilita turnos.",
|
||||||
|
icon: "📅",
|
||||||
|
color: "linear-gradient(135deg, #00aa16 0%, #008011 100%)",
|
||||||
|
videos: [
|
||||||
|
{
|
||||||
|
id: "enu2ny1k6XU",
|
||||||
|
title: "Cómo configurar la disponibilidad horaria",
|
||||||
|
description: "Define rangos horarios disponibles para cada día de la semana por colaborador.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/enu2ny1k6XU/hqdefault.jpg",
|
||||||
|
category: "schedules",
|
||||||
|
order: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "8kBxSYoisSM",
|
||||||
|
title: "Cómo habilitar horarios disponibles",
|
||||||
|
description: "Habilita o deshabilita la disponibilidad de turnos para varias semanas.",
|
||||||
|
thumbnail: "https://i1.ytimg.com/vi/8kBxSYoisSM/hqdefault.jpg",
|
||||||
|
category: "schedules",
|
||||||
|
order: 2,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "clients-bookings",
|
||||||
|
name: "Clientes y Reservas",
|
||||||
|
description: "Administra clientes, reservas recurrentes y ayuda con la activación de cuentas.",
|
||||||
|
icon: "👥",
|
||||||
|
color: "linear-gradient(135deg, #ff982a 0%, #ff4a2a 100%)",
|
||||||
|
videos: [
|
||||||
|
{
|
||||||
|
id: "BcHrqxW_PTs",
|
||||||
|
title: "Cómo configurar y administrar reservas recurrentes",
|
||||||
|
description: "Crea repeticiones semanales, gestiona turnos y libera horarios fácilmente.",
|
||||||
|
thumbnail: "https://i3.ytimg.com/vi/BcHrqxW_PTs/hqdefault.jpg",
|
||||||
|
category: "clients-bookings",
|
||||||
|
order: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "MVpCGA-w7c8",
|
||||||
|
title: "Cómo ayudar a un cliente a activar su cuenta",
|
||||||
|
description: "Asiste a tus clientes con la activación de cuenta desde el panel de Asistencia.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/MVpCGA-w7c8/hqdefault.jpg",
|
||||||
|
category: "clients-bookings",
|
||||||
|
order: 2,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "payments-discounts",
|
||||||
|
name: "Pagos y Descuentos",
|
||||||
|
description: "Registra pagos de reservas y crea descuentos para fidelizar clientes.",
|
||||||
|
icon: "💰",
|
||||||
|
color: "linear-gradient(135deg, #2aaa2a 0%, #008011 100%)",
|
||||||
|
videos: [
|
||||||
|
{
|
||||||
|
id: "CpGNWAJo6MM",
|
||||||
|
title: "Cómo registrar el pago de una reserva",
|
||||||
|
description: "Registra pagos, revisa adeudados y consulta movimientos en caja.",
|
||||||
|
thumbnail: "https://i4.ytimg.com/vi/CpGNWAJo6MM/hqdefault.jpg",
|
||||||
|
category: "payments-discounts",
|
||||||
|
order: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "UAh7HkOcvMQ",
|
||||||
|
title: "Cómo crear y aplicar descuentos",
|
||||||
|
description: "Crea descuentos por porcentaje o monto fijo y aplícalos en turnos o servicios.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/UAh7HkOcvMQ/hqdefault.jpg",
|
||||||
|
category: "payments-discounts",
|
||||||
|
order: 2,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "customization",
|
||||||
|
name: "Personalización y Comunicación",
|
||||||
|
description: "Personaliza tu organización, configura notificaciones y vincula WhatsApp.",
|
||||||
|
icon: "🎨",
|
||||||
|
color: "linear-gradient(135deg, #fde456 0%, #ff982a 100%)",
|
||||||
|
videos: [
|
||||||
|
{
|
||||||
|
id: "iu7sGYW1iGk",
|
||||||
|
title: "Cómo personalizar tu organización",
|
||||||
|
description: "Cambia imagen de cabecera, color de fondo, fuente y sombra del texto.",
|
||||||
|
thumbnail: "https://i2.ytimg.com/vi/iu7sGYW1iGk/hqdefault.jpg",
|
||||||
|
category: "customization",
|
||||||
|
order: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "nZkBIpmLRyI",
|
||||||
|
title: "Cómo agregar la dirección de tu negocio",
|
||||||
|
description: "Configura la ubicación de tu negocio para que los clientes te encuentren.",
|
||||||
|
thumbnail: "https://i.ytimg.com/vi/nZkBIpmLRyI/hqdefault.jpg",
|
||||||
|
category: "customization",
|
||||||
|
order: 2,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "oJuvDdewG1I",
|
||||||
|
title: "Cómo crear plantillas de notificaciones",
|
||||||
|
description: "Diseña mensajes con datos dinámicos para altas de turnos y recordatorios.",
|
||||||
|
thumbnail: "https://i4.ytimg.com/vi/oJuvDdewG1I/hqdefault.jpg",
|
||||||
|
category: "customization",
|
||||||
|
order: 3,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "wjJfoky6VD0",
|
||||||
|
title: "Cómo vincular WhatsApp en TurnosXpress",
|
||||||
|
description: "Asigna servidor, crea instancia de WhatsApp y escanea el código QR.",
|
||||||
|
thumbnail: "https://i4.ytimg.com/vi/wjJfoky6VD0/hqdefault.jpg",
|
||||||
|
category: "customization",
|
||||||
|
order: 4,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const getAllVideos = (): Video[] => {
|
||||||
|
return videoCategories.flatMap((cat) => cat.videos);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getTotalVideoCount = (): number => {
|
||||||
|
return getAllVideos().length;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user