some visual edits

This commit is contained in:
counterweight 2025-02-22 00:34:18 +01:00
parent 9aa569281b
commit 0d737aa5fb
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 40 additions and 11 deletions

View file

@ -61,4 +61,14 @@ router.get(
}
);
router.get(
'/offers',
redirectIfNotAuthorizedMiddleware,
attachPublicKeyMiddleware,
redirectIfMissingProfileDetailsMiddleware,
(req, res) => {
res.render('offers', {});
}
);
module.exports = router;

25
src/views/createOffer.ejs Normal file
View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Seca home</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/seca.css" />
</head>
<body>
<div class="over-background">
<h1>la seca</h1>
<button class="button-primary">Home</button>
<button class="button-primary">Ofertas</button>
<button class="button-primary">Red</button>
<button class="button-primary">Mi perfil</button>
</div>
<div id="offers-section" class="over-background">
<button class="button-primary">Crear oferta</button>
</div>
<div id="offers-section" class="over-background" style="display: none">
<h2>Crear oferta</h2>
</div>
</body>
</html>

View file

@ -4,22 +4,16 @@
<title>Seca home</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/seca.css">
<link rel="stylesheet" href="/css/seca.css" />
</head>
<body>
<div class="over-background">
<h1>la seca</h1>
<p>Bienvenido a la seca</p>
</div>
<div class="over-background">
<button class="button-primary">Ver ofertas</button>
<button class="button-primary">Crear oferta</button>
<button class="button-primary">Buscar confiados</button>
</div>
<div class="over-background">
<h2>Compraventas activas</h2>
<p>Vaya, parece que no hay nada...</p>
<button class="button-primary">Home</button>
<button class="button-primary">Ofertas</button>
<button class="button-primary">Red</button>
<button class="button-primary">Mi perfil</button>
</div>
</body>
</html>