From 4ab93edc716854e2d83028364669365cd9be63e0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Apr 2026 19:09:48 +0000 Subject: [PATCH] feat: add legal/info pages and update footer with links Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/022418da-7d63-48aa-99d9-dd4257314523 Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com> --- tienda/static/css/custom.css | 40 ++++++++++ tienda/static/scss/custom.scss | 44 +++++++++++ tienda/templates/tienda/aviso_legal.html | 49 ++++++++++++ tienda/templates/tienda/ayuda.html | 82 +++++++++++++++++++++ tienda/templates/tienda/base.html | 51 ++++++++----- tienda/templates/tienda/cookies.html | 80 ++++++++++++++++++++ tienda/templates/tienda/devoluciones.html | 62 ++++++++++++++++ tienda/templates/tienda/sobre_nosotros.html | 44 +++++++++++ tienda/templates/tienda/terminos.html | 69 +++++++++++++++++ tienda/urls.py | 7 ++ tienda/views.py | 18 +++++ 11 files changed, 527 insertions(+), 19 deletions(-) create mode 100644 tienda/templates/tienda/aviso_legal.html create mode 100644 tienda/templates/tienda/ayuda.html create mode 100644 tienda/templates/tienda/cookies.html create mode 100644 tienda/templates/tienda/devoluciones.html create mode 100644 tienda/templates/tienda/sobre_nosotros.html create mode 100644 tienda/templates/tienda/terminos.html diff --git a/tienda/static/css/custom.css b/tienda/static/css/custom.css index c1c88f6..236e8a0 100644 --- a/tienda/static/css/custom.css +++ b/tienda/static/css/custom.css @@ -234,4 +234,44 @@ p.price { object-position: center; } +/* Estilos para el footer */ +.footer-link { + color: inherit; + text-decoration: none; +} +.footer-link:hover { + text-decoration: underline; +} + +/* Estilos para páginas legales / informativas */ +.legal-container { + max-width: 860px; + margin: 2rem auto; + padding: 0 1rem; +} +.legal-container h1 { + margin-bottom: 1.5rem; +} + +.legal-section { + margin-bottom: 2rem; +} +.legal-section h2 { + font-size: 1.2rem; + margin-bottom: 0.75rem; + border-bottom: 1px solid #dee2e6; + padding-bottom: 0.25rem; +} +.legal-section h3 { + font-size: 1rem; + font-weight: 600; + margin-top: 1rem; + margin-bottom: 0.4rem; +} + +.legal-footer { + margin-top: 2rem; + color: #6c757d; +} + /*# sourceMappingURL=custom.css.map */ diff --git a/tienda/static/scss/custom.scss b/tienda/static/scss/custom.scss index f8c8946..48db372 100644 --- a/tienda/static/scss/custom.scss +++ b/tienda/static/scss/custom.scss @@ -300,4 +300,48 @@ p.price { object-position: center; } } +} + +// Estilos para el footer +.footer-link { + color: inherit; + text-decoration: none; + + &:hover { + text-decoration: underline; + } +} + +// Estilos para páginas legales / informativas +.legal-container { + max-width: 860px; + margin: 2rem auto; + padding: 0 1rem; + + h1 { + margin-bottom: 1.5rem; + } +} + +.legal-section { + margin-bottom: 2rem; + + h2 { + font-size: 1.2rem; + margin-bottom: 0.75rem; + border-bottom: 1px solid #dee2e6; + padding-bottom: 0.25rem; + } + + h3 { + font-size: 1rem; + font-weight: 600; + margin-top: 1rem; + margin-bottom: 0.4rem; + } +} + +.legal-footer { + margin-top: 2rem; + color: #6c757d; } \ No newline at end of file diff --git a/tienda/templates/tienda/aviso_legal.html b/tienda/templates/tienda/aviso_legal.html new file mode 100644 index 0000000..a3fc895 --- /dev/null +++ b/tienda/templates/tienda/aviso_legal.html @@ -0,0 +1,49 @@ +{% load static %} +{% extends "tienda/base.html" %} +{% block content %} + +
+
+ +
+
+ +{% endblock %} diff --git a/tienda/templates/tienda/ayuda.html b/tienda/templates/tienda/ayuda.html new file mode 100644 index 0000000..97582ac --- /dev/null +++ b/tienda/templates/tienda/ayuda.html @@ -0,0 +1,82 @@ +{% load static %} +{% extends "tienda/base.html" %} +{% block content %} + +
+
+ +
+
+ +{% endblock %} diff --git a/tienda/templates/tienda/base.html b/tienda/templates/tienda/base.html index 7a8150c..3f608ee 100644 --- a/tienda/templates/tienda/base.html +++ b/tienda/templates/tienda/base.html @@ -155,26 +155,39 @@ {% cache 500 footer %} - {% cache 500 scripts %} diff --git a/tienda/templates/tienda/cookies.html b/tienda/templates/tienda/cookies.html new file mode 100644 index 0000000..17fa473 --- /dev/null +++ b/tienda/templates/tienda/cookies.html @@ -0,0 +1,80 @@ +{% load static %} +{% extends "tienda/base.html" %} +{% block content %} + +
+
+ +
+
+ +{% endblock %} diff --git a/tienda/templates/tienda/devoluciones.html b/tienda/templates/tienda/devoluciones.html new file mode 100644 index 0000000..c64ffbd --- /dev/null +++ b/tienda/templates/tienda/devoluciones.html @@ -0,0 +1,62 @@ +{% load static %} +{% extends "tienda/base.html" %} +{% block content %} + +
+
+ +
+
+ +{% endblock %} diff --git a/tienda/templates/tienda/sobre_nosotros.html b/tienda/templates/tienda/sobre_nosotros.html new file mode 100644 index 0000000..8120358 --- /dev/null +++ b/tienda/templates/tienda/sobre_nosotros.html @@ -0,0 +1,44 @@ +{% load static %} +{% extends "tienda/base.html" %} +{% block content %} + +
+
+ +
+
+ +{% endblock %} diff --git a/tienda/templates/tienda/terminos.html b/tienda/templates/tienda/terminos.html new file mode 100644 index 0000000..5a47506 --- /dev/null +++ b/tienda/templates/tienda/terminos.html @@ -0,0 +1,69 @@ +{% load static %} +{% extends "tienda/base.html" %} +{% block content %} + +
+
+ +
+
+ +{% endblock %} diff --git a/tienda/urls.py b/tienda/urls.py index 5978912..3244b70 100644 --- a/tienda/urls.py +++ b/tienda/urls.py @@ -46,6 +46,13 @@ urlpatterns = [ path("usuario/mensajes/", views.mensajes_comprador, name="mensajes_comprador"), path("verify/", views.verify, name="verify"), path("rgpd", views.rgpd, name="rgpd"), + path("privacidad", views.rgpd, name="privacidad"), + path("devoluciones", views.devoluciones, name="devoluciones"), + path("aviso-legal", views.aviso_legal, name="aviso_legal"), + path("terminos", views.terminos, name="terminos"), + path("cookies", views.cookies, name="cookies"), + path("sobre-nosotros", views.sobre_nosotros, name="sobre_nosotros"), + path("ayuda", views.ayuda, name="ayuda"), path("reset-password", views.reset_password, name="reset_password"), path("reset-password-phase2/", views.reset_password_phase2, name="reset_password_phase2") ] diff --git a/tienda/views.py b/tienda/views.py index 9fd23e4..fbb7fd4 100644 --- a/tienda/views.py +++ b/tienda/views.py @@ -1647,6 +1647,24 @@ def reset_password(request: HttpRequest): def rgpd(request: HttpRequest): return render(request, "tienda/rgpd.html", {}) +def devoluciones(request: HttpRequest): + return render(request, "tienda/devoluciones.html", {}) + +def aviso_legal(request: HttpRequest): + return render(request, "tienda/aviso_legal.html", {}) + +def terminos(request: HttpRequest): + return render(request, "tienda/terminos.html", {}) + +def cookies(request: HttpRequest): + return render(request, "tienda/cookies.html", {}) + +def sobre_nosotros(request: HttpRequest): + return render(request, "tienda/sobre_nosotros.html", {}) + +def ayuda(request: HttpRequest): + return render(request, "tienda/ayuda.html", {}) + def reset_password(request: HttpRequest): if request.method == "GET": return render(request, "tienda/reset_password.html", {})