diff --git a/enderecos/templates/form.html b/enderecos/templates/form.html index 84eb220..20fd2bc 100644 --- a/enderecos/templates/form.html +++ b/enderecos/templates/form.html @@ -1,11 +1,11 @@ {% extends "base.html" %} {% block title %} - Cadastro Endereço +Cadastro Endereço {% endblock title %} {% block content %} -
-

Cadastro de Endereço

- {% csrf_token %} - -
-{% endblock content %} +
+

Cadastro de Endereço

+ {% csrf_token %} + +
+{% endblock content %} \ No newline at end of file diff --git a/index.html b/index.html index a1096d0..3851e46 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,8 @@

Cadastre-se

- +
@@ -53,7 +54,8 @@

Cadastre-se

- +
diff --git a/main/views.py b/main/views.py index 2ac8fe4..5336c60 100644 --- a/main/views.py +++ b/main/views.py @@ -7,4 +7,4 @@ def home(request): # return redirect('login') - return render(request, "base.html", {}) + return render(request, "home.html", {}) diff --git a/requirements.txt b/requirements.txt index ecf4e45..0eebc7f 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/templates/base.html b/templates/base.html index 9d72a7a..4d591d3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -26,16 +26,14 @@
  • Usuários
  • -
  • - Olá {{ user.username }}! -
  • -
  • +
  • + Olá {{ user.username }}! Log off
  • {% comment %} {% endcomment %} -
    +
    {% block content %} {% endblock content %}
    diff --git a/templates/static/css/styles.css b/templates/static/css/styles.css index 854bdc9..c82f591 100644 --- a/templates/static/css/styles.css +++ b/templates/static/css/styles.css @@ -1,3 +1,15 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=Open+Sans:wght@300;400;500;600&display=swap'); + +body { + margin: 0px; + padding: 0px; + box-sizing: border-box; + font-family: 'Inter', sans-serif; +} + +.rightli { + float: right; +} ul.horizontal { list-style-type: none; @@ -24,7 +36,7 @@ ul.horizontal li a:hover:not(.active) { } ul.horizontal li a.active { - background-color:#04AA6D; + background-color: #04AA6D; } ul.horizontal2 { @@ -56,12 +68,14 @@ ul.horizontal2 a.active { color: white; background-color: #04AA6D; } + .width94 { -width:94%; + width: 94%; } + @media screen and (max-width: 600px) { .width94 { - width:100%; + width: 100%; } } @@ -82,16 +96,16 @@ ul.vertical li a { ul.vertical li a:hover:not(.active) { background-color: #555; - color:white; + color: white; } ul.vertical a.active { background-color: #04AA6D; - color:white; + color: white; } ul.gray { -border: 1px solid #e7e7e7; + border: 1px solid #e7e7e7; background-color: #f3f3f3; } @@ -111,33 +125,36 @@ ul.gray li a.active { color: white; background-color: #008CBA; } + .rightli { -float:right; + float: right; } @media screen and (max-width: 408px) { .rightli { - display:none; + display: none; } } ul.ex { -width:90%; + width: 90%; } + @media screen and (max-width: 600px) { ul.ex { - width:100%; + width: 100%; } } ul.divider li { float: left; - border-right:1px solid #bbb; + border-right: 1px solid #bbb; } ul.divider li:last-child { border-right: none; } + ul.border { border: 1px solid #555; } @@ -154,3 +171,14 @@ ul.border li { ul.border li:last-child { border-bottom: none; } + +.container { + margin: 1em auto; + text-align: center; + width: 80%; + height: 80vh; + display: flex; + + + box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.212); +} \ No newline at end of file diff --git a/usuarios/templates/login.html b/usuarios/templates/login.html index 69612d0..1516c21 100644 --- a/usuarios/templates/login.html +++ b/usuarios/templates/login.html @@ -32,5 +32,4 @@
    - \ No newline at end of file diff --git a/usuarios/views.py b/usuarios/views.py index 4a0f9f4..89e9708 100644 --- a/usuarios/views.py +++ b/usuarios/views.py @@ -3,38 +3,43 @@ def login(request): - return render(request, 'login.html') + return render(request, "login.html") + # @login_required(login_url='/auth/login') def logout(request): - return render(request, 'login.html') + return render(request, "login.html") + # @login_required(login_url='/auth/login') def listar(request): - return render(request, 'lista.html') + return render(request, "lista.html") + # @login_required(login_url='/auth/login') def cadastrar(request): - return render(request, 'forms.html') + return render(request, "forms.html") + # @login_required(login_url='/auth/login') def editar(request, id): - return render(request, 'forms.html') + return render(request, "forms.html") + # @login_required(login_url='/auth/login') def excluir(request, id): - return render(request, 'lista.html') + return render(request, "lista.html")