diff --git a/.vscode/settings.json b/.vscode/settings.json
index 10e5aee..26a6021 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -13,6 +13,7 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
+ "editor.tabSize": 2,
"eslint.validate": [
"javascript",
"javascriptreact",
diff --git a/prettier.config.js b/prettier.config.js
index 7452bee..1721b5d 100644
--- a/prettier.config.js
+++ b/prettier.config.js
@@ -5,6 +5,7 @@ const config = {
semi: false,
singleQuote: true,
trailingComma: 'all',
+ tabWidth: 2,
plugins: ['prettier-plugin-tailwindcss'],
tailwindFunctions: ['clsx', 'cn', 'cva'],
endOfLine: 'lf',
diff --git a/src/components/planes/BarraBusqueda.tsx b/src/components/planes/BarraBusqueda.tsx
new file mode 100644
index 0000000..5d24f19
--- /dev/null
+++ b/src/components/planes/BarraBusqueda.tsx
@@ -0,0 +1,29 @@
+import { SearchIcon } from 'lucide-react'
+import { useId } from 'react'
+
+import { Input } from '@/components/ui/input'
+import { Label } from '@/components/ui/label'
+
+const InputSearchIconDemo = () => {
+ const id = useId()
+
+ return (
+
+
+
+
+ )
+}
+
+export default InputSearchIconDemo
diff --git a/src/components/plan_estudios/PlanEstudiosCard.tsx b/src/components/planes/PlanEstudiosCard.tsx
similarity index 89%
rename from src/components/plan_estudios/PlanEstudiosCard.tsx
rename to src/components/planes/PlanEstudiosCard.tsx
index 16408d9..17c1799 100644
--- a/src/components/plan_estudios/PlanEstudiosCard.tsx
+++ b/src/components/planes/PlanEstudiosCard.tsx
@@ -1,6 +1,6 @@
-import { ArrowRight } from 'lucide-react'
+import { ArrowRight } from 'lucide-react'
-import type {LucideIcon} from 'lucide-react';
+import type { LucideIcon } from 'lucide-react'
import { Badge } from '@/components/ui/badge'
import { Card, CardContent, CardFooter, CardHeader } from '@/components/ui/card'
@@ -36,7 +36,7 @@ export default function PlanEstudiosCard({
-
+
{nivel} • {ciclos}
{facultad}
-
+
{estado}
diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts
index e686f94..9858c80 100644
--- a/src/routeTree.gen.ts
+++ b/src/routeTree.gen.ts
@@ -9,11 +9,17 @@
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
import { Route as rootRouteImport } from './routes/__root'
+import { Route as PlanesRouteImport } from './routes/planes'
import { Route as LoginRouteImport } from './routes/login'
import { Route as DashboardRouteImport } from './routes/dashboard'
import { Route as IndexRouteImport } from './routes/index'
import { Route as DemoTanstackQueryRouteImport } from './routes/demo/tanstack-query'
+const PlanesRoute = PlanesRouteImport.update({
+ id: '/planes',
+ path: '/planes',
+ getParentRoute: () => rootRouteImport,
+} as any)
const LoginRoute = LoginRouteImport.update({
id: '/login',
path: '/login',
@@ -39,12 +45,14 @@ export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/dashboard': typeof DashboardRoute
'/login': typeof LoginRoute
+ '/planes': typeof PlanesRoute
'/demo/tanstack-query': typeof DemoTanstackQueryRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/dashboard': typeof DashboardRoute
'/login': typeof LoginRoute
+ '/planes': typeof PlanesRoute
'/demo/tanstack-query': typeof DemoTanstackQueryRoute
}
export interface FileRoutesById {
@@ -52,25 +60,40 @@ export interface FileRoutesById {
'/': typeof IndexRoute
'/dashboard': typeof DashboardRoute
'/login': typeof LoginRoute
+ '/planes': typeof PlanesRoute
'/demo/tanstack-query': typeof DemoTanstackQueryRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
- fullPaths: '/' | '/dashboard' | '/login' | '/demo/tanstack-query'
+ fullPaths: '/' | '/dashboard' | '/login' | '/planes' | '/demo/tanstack-query'
fileRoutesByTo: FileRoutesByTo
- to: '/' | '/dashboard' | '/login' | '/demo/tanstack-query'
- id: '__root__' | '/' | '/dashboard' | '/login' | '/demo/tanstack-query'
+ to: '/' | '/dashboard' | '/login' | '/planes' | '/demo/tanstack-query'
+ id:
+ | '__root__'
+ | '/'
+ | '/dashboard'
+ | '/login'
+ | '/planes'
+ | '/demo/tanstack-query'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
DashboardRoute: typeof DashboardRoute
LoginRoute: typeof LoginRoute
+ PlanesRoute: typeof PlanesRoute
DemoTanstackQueryRoute: typeof DemoTanstackQueryRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
+ '/planes': {
+ id: '/planes'
+ path: '/planes'
+ fullPath: '/planes'
+ preLoaderRoute: typeof PlanesRouteImport
+ parentRoute: typeof rootRouteImport
+ }
'/login': {
id: '/login'
path: '/login'
@@ -106,6 +129,7 @@ const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
DashboardRoute: DashboardRoute,
LoginRoute: LoginRoute,
+ PlanesRoute: PlanesRoute,
DemoTanstackQueryRoute: DemoTanstackQueryRoute,
}
export const routeTree = rootRouteImport
diff --git a/src/routes/dashboard.tsx b/src/routes/dashboard.tsx
index 56bbe57..60f77e0 100644
--- a/src/routes/dashboard.tsx
+++ b/src/routes/dashboard.tsx
@@ -13,7 +13,7 @@ import {
} from 'lucide-react'
import DashboardHeader from '@/components/dashboard/DashboardHeader'
-import PlanEstudiosCard from '@/components/plan_estudios/PlanEstudiosCard'
+import PlanEstudiosCard from '@/components/planes/PlanEstudiosCard'
export const Route = createFileRoute('/dashboard')({
component: RouteComponent,
diff --git a/src/routes/planes.tsx b/src/routes/planes.tsx
new file mode 100644
index 0000000..d9a0d03
--- /dev/null
+++ b/src/routes/planes.tsx
@@ -0,0 +1,141 @@
+import { createFileRoute } from '@tanstack/react-router'
+import {
+ Activity,
+ BookOpenText,
+ Calculator,
+ FlaskConical,
+ Laptop,
+ PencilRuler,
+ Plus,
+ Scale,
+ Stethoscope,
+} from 'lucide-react'
+
+import PlanEstudiosCard from '@/components/planes/PlanEstudiosCard'
+
+export const Route = createFileRoute('/planes')({
+ component: RouteComponent,
+})
+
+function RouteComponent() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ Planes de Estudio
+
+
+ Gestiona los planes curriculares de tu institución
+
+
+
+
+
+
+
+
console.log('Navegar a Sistemas...')}
+ />
+
+
+
+ console.log('Ver Actuaría')}
+ />
+
+ console.log('Ver Arquitectura')}
+ />
+
+ console.log('Ver Fisioterapia')}
+ />
+
+ console.log('Ver Derecho')}
+ />
+
+ console.log('Ver QFB')}
+ />
+
+
+
+
+ )
+}