feat: upload dentro de la plantilla SamShell (sin sidenav propio)

This commit is contained in:
Nurfog committed 2026-09-09 10:36:23 -03:00
1 parent 70df8e95a9
commit 3d9685adeb
1 file changed
+12 -36
+12 -36
View File
@@ -1,9 +1,12 @@
"use client"; "use client";
import { useState } from "react"; import { useState } from "react";
import Link from "next/link"; import SamShell from "@/components/SamShell";
import { useModules } from "@/lib/store";
import { itMenu } from "@/lib/sam";
export default function UploadPage() { export default function UploadPage() {
const { data } = useModules();
const [form, setForm] = useState({ const [form, setForm] = useState({
name: "", name: "",
repoUrl: "", repoUrl: "",
@@ -59,35 +62,14 @@ export default function UploadPage() {
}; };
return ( return (
<> <SamShell
<div className="sidenav"> brand="IT"
<div className="row text-light login-main-text"> subtitle="Agregar módulo"
<div className="col-12 text-center"> menu={itMenu(data?.modules ?? [])}
<div activeHref="/upload"
className="mx-auto d-flex align-items-center justify-content-center bg-white rounded-3" topUser="SAM"
style={{ width: 80, height: 80 }} backHref="/"
> >
<i className="bx bx-upload text-primary" style={{ fontSize: 48 }} />
</div>
</div>
<div className="col-12 text-center mt-3">
<h1 className="fw-bold fs-2">Sistema SAM</h1>
</div>
<div className="col-12 text-center">
<h4 className="fw-semibold opacity-75">Subir Proyecto</h4>
</div>
<div className="col-12 text-center mt-4">
<Link href="/" className="btn btn-outline-light btn-sm px-4">
<i className="bx bx-arrow-back me-1" /> Volver
</Link>
</div>
</div>
</div>
<div className="main">
<div className="row">
<div className="col-lg-1" />
<div className="col-lg-10 mt-4">
<div className="alert alert-light section-header mb-3 py-2 px-3"> <div className="alert alert-light section-header mb-3 py-2 px-3">
<i className="bx bx-cloud-upload me-1" /> Integrar Nuevo Módulo <i className="bx bx-cloud-upload me-1" /> Integrar Nuevo Módulo
</div> </div>
@@ -248,9 +230,6 @@ export default function UploadPage() {
</> </>
)} )}
</button> </button>
<Link href="/" className="btn btn-outline-secondary">
Cancelar
</Link>
</div> </div>
</div> </div>
</form> </form>
@@ -272,9 +251,6 @@ export default function UploadPage() {
<li>Branch por defecto: main (configurable)</li> <li>Branch por defecto: main (configurable)</li>
</ul> </ul>
</div> </div>
</div> </SamShell>
</div>
</div>
</>
); );
} }