feat: update sidebar URLs and add AlumnosManual and CursosManual components for course management

This commit is contained in:
SirRobert-1 2025-04-24 11:36:02 -06:00
parent 07d5881759
commit 493b05750b
4 changed files with 10 additions and 15 deletions

View File

@ -23,7 +23,7 @@ const data = {
items: [ items: [
{ {
title: "Agregar manualmente", title: "Agregar manualmente",
url: "/Alumnos", url: "/alumnosManual",
}, },
{ {
title: "Agregar desde archivo", title: "Agregar desde archivo",
@ -36,7 +36,7 @@ const data = {
items: [ items: [
{ {
title: "Agregar curso manualmente", title: "Agregar curso manualmente",
url: "/Cursos", url: "/cursosManual",
}, },
{ {
title: "Agregar desde archivo", title: "Agregar desde archivo",
@ -55,7 +55,7 @@ export function AppSidebar({ ...props }) {
<SidebarMenu> <SidebarMenu>
<SidebarMenuItem> <SidebarMenuItem>
<SidebarMenuButton size="lg" asChild> <SidebarMenuButton size="lg" asChild>
<div> <a href="/">
<div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg"> <div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
<GalleryVerticalEnd className="size-4" /> <GalleryVerticalEnd className="size-4" />
</div> </div>
@ -63,7 +63,7 @@ export function AppSidebar({ ...props }) {
<span className="font-medium">SIDAC</span> <span className="font-medium">SIDAC</span>
<span className="">v1.0.0</span> <span className="">v1.0.0</span>
</div> </div>
</div> </a>
</SidebarMenuButton> </SidebarMenuButton>
</SidebarMenuItem> </SidebarMenuItem>
</SidebarMenu> </SidebarMenu>
@ -98,7 +98,6 @@ export function AppSidebar({ ...props }) {
</SidebarMenu> </SidebarMenu>
</SidebarGroup> </SidebarGroup>
</SidebarContent> </SidebarContent>
<SidebarRail />
</Sidebar> </Sidebar>
); );
} }

View File

@ -3,7 +3,7 @@ import Layout from "@/components/layout/Layout";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
const CursosManual = () => { export default function AlumnosManual() {
const [nombre, setNombre] = useState(""); const [nombre, setNombre] = useState("");
const [email, setEmail] = useState(""); const [email, setEmail] = useState("");
const [curso, setCurso] = useState(""); const [curso, setCurso] = useState("");
@ -28,14 +28,14 @@ const CursosManual = () => {
<Input <Input
type="text" type="text"
placeholder="Email" placeholder="Email"
value={nombre} value={email}
onChange={(e) => setEmail(e.target.value)} onChange={(e) => setEmail(e.target.value)}
className="w-full px-3 py-2 border border-gray-300 rounded-md mb-3" className="w-full px-3 py-2 border border-gray-300 rounded-md mb-3"
/> />
<Input <Input
type="text" type="text"
placeholder="Curso" placeholder="Curso"
value={nombre} value={curso}
onChange={(e) => setCurso(e.target.value)} onChange={(e) => setCurso(e.target.value)}
className="w-full px-3 py-2 border border-gray-300 rounded-md mb-3" className="w-full px-3 py-2 border border-gray-300 rounded-md mb-3"
/> />
@ -49,6 +49,4 @@ const CursosManual = () => {
</div> </div>
</Layout> </Layout>
); );
}; }
export default CursosManual;

View File

@ -3,10 +3,8 @@ import Layout from "@/components/layout/Layout";
export default function Home() { export default function Home() {
return ( return (
<Layout> <Layout>
<div className="w-[60vw] pt-10 flex flex-col items-center justify-center"> <div className="w-[70vw] h-[90vh] flex flex-col items-center justify-center">
<h1 className="text-3xl font-bold pt-20 text-black"> <h1 className="text-3xl font-bold text-black">¡Bienvenido a SIDAC!</h1>
Productos juguetería
</h1>
</div> </div>
</Layout> </Layout>
); );