Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atualizado o template frontend tati #10

Merged
merged 1 commit into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified app.db
Binary file not shown.
138 changes: 138 additions & 0 deletions app/static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Sarala:wght@700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
}

body{
font-size: 100%;
background: linear-gradient(180deg, #84DC7C 0%, rgba(255, 255, 255, 0) 100%);
}

.cabecalho {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
padding: 24px;
}

.cabecalho-imagem {
height: 120px;
border-radius: 70px;
}

.cabecalho-menu {
display: flex;
gap: 32px;
}

.cabecalho-menu-item {
font-family: 'Sarala', sans-serif;
color: #3E5915;
font-weight: 400;
font-size: 24px;
}

.conteudo-imagem {
position: relative;
width: 100%;
height: 500px;

}

.conteudo {
margin-bottom: 48px;
border-top: 0.4px solid #FFF2E7;
}

.conteudo-principal {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}

.conteudo-principal-escrito {
display: flex;
flex-direction: column;
gap: 32px;
}

.conteudo-principal-escrito-titulo {
font-family: 'Righteous', cursive;
font-weight: 400;
font-size: 64px;
color: #3E5915;
}

.conteudo-principal-escrito-subtitulo {
font-family: 'Sarala', sans-serif;
color: #3E5915;
font-weight: 400;
font-size: 24px;
}

.conteudo-principal-escrito-botao {
background-color: #3E5915;
width: 180px;
height: 60px;
border: none;
box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.25);
border-radius: 20px;
font-family: 'Sarala', sans-serif;
font-weight: 400;
font-size: 24px;
color: #ffffff;
}

.conteudo-principal-escrito-botao:hover {
background-color: rgba(236, 214, 196, 0.53);
}


.conteudo-principal-imagem {
padding: 30px;
height: 430px;
border-radius: 50px;
}

.conteudo-secundario {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
margin-top: 48px;
}

.conteudo-secundario-titulo {
border-top: 0.4px solid #3E5915;
padding-top: 48px;
font-family: 'Righteous', cursive;
font-weight: 400;
font-size: 24px;
color: #3E5915;
margin-bottom: 16px;
}

.conteudo-secundario-paragrafo{
font-family: 'Sarala', sans-serif;
font-weight: 300;
font-size: 18px;
color: #3E5915;

}

.rodape {
border-top: 0.4px solid #3E5915;
padding: 32px;
}

.rodape-imagem {
height: 80px;
display: block;
margin: 0 auto;
}
Binary file added app/static/img/img-cat.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/img1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/img2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/img3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/logo-grupopi-removebg-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/logo-grupopi.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 22 additions & 7 deletions app/templates/about.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
{% extends 'base.html' %}

{% block content %}
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>


<body>

<header class="cabecalho">
<img class="cabecalho-imagem" src="{{ url_for('static', filename= 'img/logo.jpeg') }}" alt="Logo Empresa">

<nav class="cabecalho-menu">
<a class="cabecalho-menu-item" href="{{ url_for('about') }}">Sobre</a>
<a class="cabecalho-menu-item" href="{{ url_for('register')}} ">Cadastrar</a>
<a class="cabecalho-menu-item" href="{{ url_for('login') }}">Entrar</a></li>

</nav>
</header>
{% endblock %}

<div class="container">
<h1>Dicas de economia</h1>
{% block conteudo %}

<p>
Economize energia elétrica!
</p>
<div class="container"></div>
<h1>...</h1>
</div>
{% endblock %}

86 changes: 52 additions & 34 deletions app/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,60 @@
{% extends 'base.html' %}
{% extends 'bootstrap/base.html' %}

{% block content %}

<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>


<div class="container">
<div class="row">
<div class="col">
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Simulação I</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Clique aqui</a>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<imgfl src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Simulação II</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Clique aqui</a>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Simulação III</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Clique aqui</a>
<body>

<header class="cabecalho">
<img class="cabecalho-imagem" src="{{ url_for('static', filename= 'img/logo.jpeg') }}" alt="Logo Empresa">

<nav class="cabecalho-menu">
<a class="cabecalho-menu-item" href="{{ url_for('about') }}">Sobre</a>
<a class="cabecalho-menu-item" href="{{ url_for('register')}} ">Cadastrar</a>
<a class="cabecalho-menu-item" href="{{ url_for('login') }}">Entrar</a></li>

</nav>
</header>

<main class="conteudo">

<div class="container">
<img class="conteudo-imagem"src="{{ url_for('static', filename='img/img2.jpeg') }}" alt="">

<section class="conteudo-principal">
<div class="conteudo-principal-escrito">
<h1 class="conteudo-principal-escrito-titulo">Economize</h1>
<h2 class="conteudo-principal-escrito-subtitulo">Seja consciente no consumo de energia na sua casa!</h2>
<button class="conteudo-principal-escrito-botao" href= "{{ url_for('register')}}">Simule aqui</button>
</div>
</div>
</div>
</div>
</div>

<img class="conteudo-principal-imagem" src="{{ url_for('static', filename= 'img/img-cat.jpeg') }}" alt="Imagem Consumo">

</section>


<section class="conteudo-secundario">
<h3 class="conteudo-secundario-titulo">Dicas para sua casa</h3>
<p class="conteudo-secundario-paragrafo">1. Cria um <strong>sistema de verificação capcha</strong> para novos membros garantirem que não são robôs</p>
<p class="conteudo-secundario-paragrafo">2. Possui um <strong>sistema de banimento automático</strong> para links suspeitos que forem enviados na comunidade</p>
<p class="conteudo-secundario-paragrafo">3. <strong>Sistema de avisos e banimento manual</strong>, para pessoas administradoras utilizarem</p>

</section>
</div>
</main>


<footer class="rodape">
<img class="rodape-imagem" src="{{ url_for('static', filename='img/logo-grupopi-removebg-preview.png') }}" alt="Logo Grupo PI">

</footer>

</body>
</html>

{% endblock %}
24 changes: 22 additions & 2 deletions app/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
{% extends 'base.html' %}

{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>


<body>

<header class="cabecalho">
<img class="cabecalho-imagem" src="{{ url_for('static', filename= 'img/logo.jpeg') }}" alt="Logo Empresa">

<nav class="cabecalho-menu">
<a class="cabecalho-menu-item" href="{{ url_for('about') }}">Sobre</a>
<a class="cabecalho-menu-item" href="{{ url_for('register')}} ">Cadastrar</a>
<a class="cabecalho-menu-item" href="{{ url_for('login') }}">Entrar</a></li>

</nav>
</header>
{% endblock %}


{% block app_content %}

<div class="container">
Expand Down
25 changes: 23 additions & 2 deletions app/templates/register.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
{% extends 'base.html' %}

{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>


<body>

<header class="cabecalho">
<img class="cabecalho-imagem" src="{{ url_for('static', filename= 'img/logo.jpeg') }}" alt="Logo Empresa">

<nav class="cabecalho-menu">
<a class="cabecalho-menu-item" href="{{ url_for('about') }}">Sobre</a>
<a class="cabecalho-menu-item" href="{{ url_for('register')}} ">Cadastrar</a>
<a class="cabecalho-menu-item" href="{{ url_for('login') }}">Entrar</a></li>

</nav>
</header>
{% endblock %}



{% block app_content %}
<div class="container">
<h1>Cadastrar</h1>
Expand Down
22 changes: 21 additions & 1 deletion app/templates/reset_password.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>


<body>

<header class="cabecalho">
<img class="cabecalho-imagem" src="{{ url_for('static', filename= 'img/logo.jpeg') }}" alt="Logo Empresa">

<nav class="cabecalho-menu">
<a class="cabecalho-menu-item" href="{{ url_for('about') }}">Sobre</a>
<a class="cabecalho-menu-item" href="{{ url_for('register')}} ">Cadastrar</a>
<a class="cabecalho-menu-item" href="{{ url_for('login') }}">Entrar</a></li>

</nav>
</header>
{% endblock %}
{% block app_content %}


Expand Down
23 changes: 21 additions & 2 deletions app/templates/reset_password_request.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
{% extends "base.html" %}

{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>


<body>

<header class="cabecalho">
<img class="cabecalho-imagem" src="{{ url_for('static', filename= 'img/logo.jpeg') }}" alt="Logo Empresa">

<nav class="cabecalho-menu">
<a class="cabecalho-menu-item" href="{{ url_for('about') }}">Sobre</a>
<a class="cabecalho-menu-item" href="{{ url_for('register')}} ">Cadastrar</a>
<a class="cabecalho-menu-item" href="{{ url_for('login') }}">Entrar</a></li>

</nav>
</header>
{% endblock %}



{% block app_content %}
Expand Down