From c1f415e8aeb81c8180494228f432ad5ebeb652c2 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 29 Apr 2026 22:44:32 -0500 Subject: [PATCH] up --- resources/views/landing.html | 281 +++++++++++++++++++++++++ rest/controllers/landing_controller.go | 14 +- rest/routes/publicas.go | 2 +- 3 files changed, 285 insertions(+), 12 deletions(-) diff --git a/resources/views/landing.html b/resources/views/landing.html index e69de29..567d030 100755 --- a/resources/views/landing.html +++ b/resources/views/landing.html @@ -0,0 +1,281 @@ + + + + + + U-site — Admin Control Center + + + + + + + + +
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+ + + + +
+ U-SITE // ADMIN SYSTEM +
+
+ SYS ▲ ONLINE + SEC ▲ ACTIVE + --:--:-- +
+
+ + +
+ + +
+
+ + + +

+ CONTROL CENTER +

+

+ ── SISTEMA ADMINISTRATIVO · ACCESO RESTRINGIDO ── +

+
+ + +
+ + +
+ + + + admin@usite-server:~ +
+ + SECURE · TLS 1.3 +
+
+ + +
+ +
+ + +
+
+
+ + +
+ + [ ACCEDER AL PANEL  → ] + + + [ u-site.app  ↗ ] + +
+ + +
+ // Go 1.22 + // Fiber v2 + // PostgreSQL + // RBAC Casbin + // Uptime 99.97% + // U-site © 2026 +
+
+ + + + diff --git a/rest/controllers/landing_controller.go b/rest/controllers/landing_controller.go index 448a4f8..c4bac85 100755 --- a/rest/controllers/landing_controller.go +++ b/rest/controllers/landing_controller.go @@ -6,17 +6,9 @@ import ( ) func Landing(c *fiber.Ctx) error { - user, err := auth.User(c) - if err != nil { - auth.Logout(c) - } - view := "index" - - if err := c.Render(view, fiber.Map{ - "auth": user != nil, - "user": user, - }, "layouts/main"); err != nil { - panic(err.Error()) + // Página principal del admin: pantalla hacker sin layout adicional + if err := c.Render("landing", fiber.Map{}); err != nil { + return c.Status(fiber.StatusInternalServerError).SendString(err.Error()) } return nil } diff --git a/rest/routes/publicas.go b/rest/routes/publicas.go index 68a91d7..44861c2 100755 --- a/rest/routes/publicas.go +++ b/rest/routes/publicas.go @@ -7,7 +7,7 @@ import ( ) func RutasPublicas(web fiber.Router) { - //web.Get("/", controllers.Landing) + web.Get("/", controllers.Landing) web.Get("/index", controllers.Index) //web.Get("/login", controllers.Login) web.Get("/ping", Pong)