Initial commit: Proyecto portal-requisicion-vacantes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { SettingsPage } from "@/components/pages/settings-page"
|
||||
|
||||
export default function AdminRoute() {
|
||||
return <SettingsPage />
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { ApprovalsPage } from "@/components/pages/approvals-page"
|
||||
|
||||
export default function ApprovalsRoute() {
|
||||
return <ApprovalsPage />
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { CalendarPage } from "@/components/pages/calendar-page"
|
||||
|
||||
export default function CalendarRoute() {
|
||||
return <CalendarPage />
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { DashboardPage } from '@/components/pages/dashboard-page'
|
||||
|
||||
export default function Dashboard() {
|
||||
return <DashboardPage />
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { MainLayout } from '@/components/layout/main-layout'
|
||||
|
||||
export default function DashboardLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
return <MainLayout>{children}</MainLayout>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { NotificationsPage } from "@/components/pages/notifications-page"
|
||||
|
||||
export default function NotificationsRoute() {
|
||||
return <NotificationsPage />
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { RecruitmentPipelinePage } from "@/components/pages/recruitment-pipeline-page"
|
||||
|
||||
export default function PipelineRoute() {
|
||||
return <RecruitmentPipelinePage />
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { UsersManagementPage } from "@/components/pages/users-management-page"
|
||||
|
||||
export default function RecruitersRoute() {
|
||||
return <UsersManagementPage />
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { ReportsPage } from "@/components/pages/reports-page"
|
||||
|
||||
export default function ReportsRoute() {
|
||||
return <ReportsPage />
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { RequisitionDetailPage } from '@/components/pages/requisition-detail-page'
|
||||
|
||||
interface PageProps {
|
||||
params: Promise<{ id: string }>
|
||||
}
|
||||
|
||||
export default async function RequisitionPage({ params }: PageProps) {
|
||||
const { id } = await params
|
||||
return <RequisitionDetailPage requisitionId={id} />
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { NewRequisitionPage } from '@/components/pages/new-requisition-page'
|
||||
|
||||
export default function NuevaRequisicionPage() {
|
||||
return <NewRequisitionPage />
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Suspense } from 'react'
|
||||
import { RequisitionsListPage } from '@/components/pages/requisitions-list-page'
|
||||
import { Spinner } from '@/components/ui/spinner'
|
||||
|
||||
export default function RequisitionsPage() {
|
||||
return (
|
||||
<Suspense fallback={<div className="flex items-center justify-center h-64"><Spinner /></div>}>
|
||||
<RequisitionsListPage />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
@import 'tailwindcss';
|
||||
@import 'tw-animate-css';
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
/* GomezLee Marketing Color System */
|
||||
:root {
|
||||
/* Brand Colors from GLM */
|
||||
--glm-primary: #6CC24A; /* Verde GLM */
|
||||
--glm-secondary: #A4D65E; /* Verde Claro */
|
||||
--glm-accent: #C4D600; /* Lima */
|
||||
--glm-blue: #4F758B; /* Azul GLM */
|
||||
--glm-blue-medium: #5B7F95; /* Azul Medio */
|
||||
--glm-text: #4A4A4A; /* Gris Oscuro */
|
||||
--glm-muted: #D0D0D0; /* Gris Medio */
|
||||
--glm-black: #000;
|
||||
--glm-white: #fff;
|
||||
|
||||
/* Light Mode Theme */
|
||||
--background: #FFFFFF;
|
||||
--foreground: #4A4A4A;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #4A4A4A;
|
||||
--popover: #FFFFFF;
|
||||
--popover-foreground: #4A4A4A;
|
||||
--primary: #6CC24A;
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: #F5F5F5;
|
||||
--secondary-foreground: #4F758B;
|
||||
--muted: #F5F5F5;
|
||||
--muted-foreground: #6B8FA3;
|
||||
--accent: #EEF6E8;
|
||||
--accent-foreground: #4F758B;
|
||||
--destructive: #FF6A13;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--border: #D0D0D0;
|
||||
--input: #D0D0D0;
|
||||
--ring: #6CC24A;
|
||||
|
||||
/* Chart colors using GLM palette */
|
||||
--chart-1: #6CC24A;
|
||||
--chart-2: #4F758B;
|
||||
--chart-3: #F0C75E;
|
||||
--chart-4: #FF6A13;
|
||||
--chart-5: #6B8FA3;
|
||||
|
||||
--radius: 0.5rem;
|
||||
|
||||
/* Sidebar */
|
||||
--sidebar: #4F758B;
|
||||
--sidebar-foreground: #FFFFFF;
|
||||
--sidebar-primary: #6CC24A;
|
||||
--sidebar-primary-foreground: #FFFFFF;
|
||||
--sidebar-accent: #5B7F95;
|
||||
--sidebar-accent-foreground: #FFFFFF;
|
||||
--sidebar-border: #5B7F95;
|
||||
--sidebar-ring: #6CC24A;
|
||||
|
||||
/* Status Colors */
|
||||
--status-draft: #6B8FA3;
|
||||
--status-pending-hr: #4F758B;
|
||||
--status-pending-admin: #5B7F95;
|
||||
--status-recruiting: #6CC24A;
|
||||
--status-closed: #2C6E6F;
|
||||
--status-cancelled: #FF6A13;
|
||||
--status-correction: #F0C75E;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #4A4A4A;
|
||||
--foreground: #FFFFFF;
|
||||
--card: #54595f;
|
||||
--card-foreground: #FFFFFF;
|
||||
--popover: #54595f;
|
||||
--popover-foreground: #FFFFFF;
|
||||
--primary: #6CC24A;
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: #6B8FA3;
|
||||
--secondary-foreground: #FFFFFF;
|
||||
--muted: #5B7F95;
|
||||
--muted-foreground: #D0D0D0;
|
||||
--accent: #4F758B;
|
||||
--accent-foreground: #FFFFFF;
|
||||
--destructive: #FF6A13;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--border: #5B7F95;
|
||||
--input: #5B7F95;
|
||||
--ring: #6CC24A;
|
||||
|
||||
--chart-1: #6CC24A;
|
||||
--chart-2: #4F758B;
|
||||
--chart-3: #F0C75E;
|
||||
--chart-4: #FF6A13;
|
||||
--chart-5: #6B8FA3;
|
||||
|
||||
--sidebar: #1f2937;
|
||||
--sidebar-foreground: #FFFFFF;
|
||||
--sidebar-primary: #6CC24A;
|
||||
--sidebar-primary-foreground: #FFFFFF;
|
||||
--sidebar-accent: #374151;
|
||||
--sidebar-accent-foreground: #FFFFFF;
|
||||
--sidebar-border: #374151;
|
||||
--sidebar-ring: #6CC24A;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--font-sans: 'Arial', sans-serif;
|
||||
--font-mono: monospace;
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--color-card: var(--card);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-destructive-foreground: var(--destructive-foreground);
|
||||
--color-border: var(--border);
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
--color-chart-1: var(--chart-1);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
|
||||
/* Custom status colors */
|
||||
--color-status-draft: var(--status-draft);
|
||||
--color-status-pending-hr: var(--status-pending-hr);
|
||||
--color-status-pending-admin: var(--status-pending-admin);
|
||||
--color-status-recruiting: var(--status-recruiting);
|
||||
--color-status-closed: var(--status-closed);
|
||||
--color-status-cancelled: var(--status-cancelled);
|
||||
--color-status-correction: var(--status-correction);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: oklch(0.75 0.02 250 / 0.3);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: oklch(0.75 0.02 250 / 0.5);
|
||||
}
|
||||
|
||||
/* Smooth transitions */
|
||||
.transition-smooth {
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { Toaster } from '@/components/ui/sonner'
|
||||
import './globals.css'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Portal GLM | Requisiciones y Reclutamiento',
|
||||
description: 'Portal de Gestión de Requisiciones y Reclutamiento - GomezLee Marketing',
|
||||
icons: {
|
||||
icon: '/images/logo-glm.png',
|
||||
apple: '/images/logo-glm.png',
|
||||
},
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}>) {
|
||||
return (
|
||||
<html lang="es" className="bg-background">
|
||||
<body className="font-sans antialiased" style={{ fontFamily: 'Arial, sans-serif' }}>
|
||||
{children}
|
||||
<Toaster />
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirect } from 'next/navigation'
|
||||
|
||||
export default function Home() {
|
||||
redirect('/dashboard')
|
||||
}
|
||||
Reference in New Issue
Block a user