feat: update sidebar URLs and add AlumnosManual and CursosManual components for course management
This commit is contained in:
parent
07d5881759
commit
493b05750b
diplomas/src
|
@ -23,7 +23,7 @@ const data = {
|
|||
items: [
|
||||
{
|
||||
title: "Agregar manualmente",
|
||||
url: "/Alumnos",
|
||||
url: "/alumnosManual",
|
||||
},
|
||||
{
|
||||
title: "Agregar desde archivo",
|
||||
|
@ -36,7 +36,7 @@ const data = {
|
|||
items: [
|
||||
{
|
||||
title: "Agregar curso manualmente",
|
||||
url: "/Cursos",
|
||||
url: "/cursosManual",
|
||||
},
|
||||
{
|
||||
title: "Agregar desde archivo",
|
||||
|
@ -55,7 +55,7 @@ export function AppSidebar({ ...props }) {
|
|||
<SidebarMenu>
|
||||
<SidebarMenuItem>
|
||||
<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">
|
||||
<GalleryVerticalEnd className="size-4" />
|
||||
</div>
|
||||
|
@ -63,7 +63,7 @@ export function AppSidebar({ ...props }) {
|
|||
<span className="font-medium">SIDAC</span>
|
||||
<span className="">v1.0.0</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuItem>
|
||||
</SidebarMenu>
|
||||
|
@ -98,7 +98,6 @@ export function AppSidebar({ ...props }) {
|
|||
</SidebarMenu>
|
||||
</SidebarGroup>
|
||||
</SidebarContent>
|
||||
<SidebarRail />
|
||||
</Sidebar>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import Layout from "@/components/layout/Layout";
|
|||
import { Button } from "@/components/ui/button";
|
||||
import { Input } from "@/components/ui/input";
|
||||
|
||||
const CursosManual = () => {
|
||||
export default function AlumnosManual() {
|
||||
const [nombre, setNombre] = useState("");
|
||||
const [email, setEmail] = useState("");
|
||||
const [curso, setCurso] = useState("");
|
||||
|
@ -28,14 +28,14 @@ const CursosManual = () => {
|
|||
<Input
|
||||
type="text"
|
||||
placeholder="Email"
|
||||
value={nombre}
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-md mb-3"
|
||||
/>
|
||||
<Input
|
||||
type="text"
|
||||
placeholder="Curso"
|
||||
value={nombre}
|
||||
value={curso}
|
||||
onChange={(e) => setCurso(e.target.value)}
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-md mb-3"
|
||||
/>
|
||||
|
@ -49,6 +49,4 @@ const CursosManual = () => {
|
|||
</div>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
export default CursosManual;
|
||||
}
|
|
@ -3,10 +3,8 @@ import Layout from "@/components/layout/Layout";
|
|||
export default function Home() {
|
||||
return (
|
||||
<Layout>
|
||||
<div className="w-[60vw] pt-10 flex flex-col items-center justify-center">
|
||||
<h1 className="text-3xl font-bold pt-20 text-black">
|
||||
Productos juguetería
|
||||
</h1>
|
||||
<div className="w-[70vw] h-[90vh] flex flex-col items-center justify-center">
|
||||
<h1 className="text-3xl font-bold text-black">¡Bienvenido a SIDAC!</h1>
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue