Skip to content

Commit

Permalink
Adicionado pure css
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarAugusto88 committed Mar 16, 2020
1 parent 6218a8c commit 59997df
Show file tree
Hide file tree
Showing 215 changed files with 366 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cc_env/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
"python.linting.flake8Enabled": false,
"python.linting.pylamaEnabled": false,
"python.linting.pydocstyleEnabled": false,
"python.linting.prospectorEnabled": true
"python.linting.prospectorEnabled": false,
"python.linting.pycodestyleEnabled": false,
"python.linting.mypyEnabled": true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified confidence_chronogram/__pycache__/urls.cpython-37.pyc
Binary file not shown.
14 changes: 11 additions & 3 deletions confidence_chronogram/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@
path('admin/', admin.site.urls),
path('chronogram/', views.list_chronogram),
#path('', views.index)
path('', RedirectView.as_view(url='/chronogram/')),
path('login/', views.login_user),
# Se encontrar url vazia(normal, local), redireciona para chronogram
#path('', RedirectView.as_view(url='/chronogram/')),
path('login/', views.login_user, name='login_user'),
path('login/submit', views.submit_login),
path('logout/', views.logout_user)
path('logout/', views.logout_user),

#--------------redireciona para HOME---------------------------
path('', views.home, name='home'),
path('', RedirectView.as_view(url='/home/')),
path('contato/', views.contact, name='contact'),

]

Binary file modified confidence_chronograms/__pycache__/models.cpython-37.pyc
Binary file not shown.
Binary file modified confidence_chronograms/__pycache__/views.cpython-37.pyc
Binary file not shown.
54 changes: 54 additions & 0 deletions confidence_chronograms/static/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
body{
/*background: url("../")no-repeat;*/
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100%;

}

.tela{
background-color: #EBEBEB;
color: rgb(83, 22, 153);
width: 400px;
height: 350px;
margin: 100px 0 0 480px;
padding-top: 50px;
padding-bottom: 100px;
text-align: center;
border-radius: 20px;
}

.tela input{
display: block;
margin: 5px 10px 10px 15px;
width: 85%;
padding: 5px;
border-radius: 20px;
color: blue;
}

.tela label{
display: block;
padding: 10px 10px 5px 15px;
font-size: 30px;
color: black;
}

.tela button{
display: block;
margin: 20px 0 0 170px;
font-family: 20px;
}

.tela img{
display: block;
margin-top: 15px;
margin-left: 140px;
border: 4px solid #F6F4ED;
}

.tela a{
text-decoration: none;
color: black;
}
85 changes: 85 additions & 0 deletions confidence_chronograms/static/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
margin: 0 auto;
line-height: 1.7em;
}
.l-box {
padding: 1em;
}
.header {
margin: 0 0;
}
.header .pure-menu {
padding: 0.5em;
}
.header .pure-menu li a:hover,
.header .pure-menu li a:focus {
background: none;
border: none;
color: #aaa;
}
body .primary-button {
background: #02a6eb;
color: #fff;
}
.splash {
margin: 2em auto 0;
padding: 3em 0.5em;
background: #eee;
}
.splash .splash-head {
font-size: 300%;
margin: 0em 0;
line-height: 1.2em;
}
.splash .splash-subhead {
color: #999;
font-weight: 300;
line-height: 1.4em;
}
.splash .primary-button {
font-size: 150%;
}
.content .content-subhead {
color: #999;
padding-bottom: 0.3em;
text-transform: uppercase;
margin: 0;
border-bottom: 2px solid #eee;
display: inline-block;
}
.content .content-ribbon {
margin: 3em;
border-bottom: 1px solid #eee;
}
.ribbon {
background: #eee;
text-align: center;
padding: 2em;
color: #999;
}
.ribbon h2 {
display: inline;
font-weight: normal;
}
.footer {
background: #111;
color: #666;
text-align: center;
padding: 1em;
font-size: 80%;
}

.logout a {
text-decoration: none;
color: black;
}
.logout button {
display: block;
margin: 20px 0 0 170px;
margin-right: 15px;
}
33 changes: 33 additions & 0 deletions confidence_chronograms/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Herança com django inicio do block e final do block -->
<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Simple MOOC - Uma simples plataforma de ensino a distância" />
<title>Confidence Chronogram<!--Simple MOOC--></title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css"> <!-- caminho relativo a pasta static -->
<link rel="stylesheet" href="{% static 'styles.css' %}" />
</head>
<body>
<div class="header">
<div class="pure-menu pure-menu-open pure-menu-fixed pure-menu-horizontal">
<a class="pure-menu-heading" href="{% url 'home' %}">CONFIDENCE CHRONOGRAM<!--SIMPLE MOOC--></a>
<ul>
<li class="pure-menu-selected"><a href="{% url 'home' %}">Início</a></li>
<li><a href="{% url 'login_user' %}">Cliente<!--Cursos--></a></li>
<li><a href="{% url 'contact' %}">Contato</a></li>
</ul>
</div>
</div>
<div class="content">
{% block content %}{% endblock %} <!--serve como place holder para os outros colocar conteudo -->
<div class="footer">
Confidence Chronogram - Um simples concrole de crononogramas para o cliente e a empresa.
<!--Simple MOOC - Uma simples plataforma de ensino a distância-->
</div>
</div>
<script src="http://yui.yahooapis.com/3.12.0/build/yui/yui-min.js"></script> <!--Final do body-->
</body>
</html>
16 changes: 16 additions & 0 deletions confidence_chronograms/templates/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% extends "base.html" %}

{% block content %}
<div class="pure-g-r content-ribbon">
<div class="pure-u-1">
<h1>Fale conosco</h1>
<p>Você pode entrar em contato conosco tanto por e-mail como pelas redes sociais. Abaixo seguem os links para contato:</p>
<h4>Links</h4>
<ul>
<li>E-mail: <a href="mailto:[email protected]">[email protected]</a></li>
<li>Twitter: <a href="https://twitter.com/">@ConfidenceChronogram</a> </li>
<li>IFSP: <a href="https://www.ifsp.edu.br/">ifsp.edu.br</a> </li>
</ul>
</div>
</div>
{% endblock %}
97 changes: 97 additions & 0 deletions confidence_chronograms/templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{% extends "base.html" %}

{% block content %}
<div class="splash">
<div class="pure-g-r">
<div class="pure-u-1">
<div class="l-box splash-text">
<h1 class="splash-head">
Uma simples plataforma para controle confiável de cronograma para clientes e empresas.
<!--Uma Simples Plataforma de Ensino a Distância-->
</h1>
<h2 class="splash-subhead">
O Confidence Chronogram visa controlar com notificações via e-mail o cronograma do projeto com o acompanhamento visual pelos clientes.
<!--O Simple MOOC visa simplificar o ensino a distância, provendo ferramentas objetivas e de fácil uso para cursos a distância.-->
</h2>
<p>
<a href="#" class="pure-button primary-button">Saiba mais</a>
</p>
</div>
</div>
</div>
</div>
<div class="content">
<div class="pure-g-r content-ribbon">
<div class="pure-u-2-3">
<div class="l-box">
<h4 class="content-subhead">Vídeos e fotos<!--Vídeo-aulas e materiais digitais--></h4>
<h3>Publique sua construção<!--Publique suas aulas--></h3>
<p>
A Construtora Dolomita tem seus próprios métodos de execução com excelentes mestres de obras.
<!--O Simple MOOC tem um sistema simples e prático para que o professor disponibilize vídeo-aulas e materiais digitais como: pdf's, slides, imagens ...-->
</p>
</div>
</div>
<div class="pure-u-1-3">
<div class="l-box">
<img src="http://placehold.it/400x250"
alt="Vídeo aulas e materiais digitais.">
</div>
</div>
</div>
<div class="pure-g-r content-ribbon">
<div class="pure-u-1-3">
<div class="l-box">
<img src="http://placehold.it/400x250"
alt="Fórum de Dúvidas">
</div>
</div>
<div class="pure-u-2-3">
<div class="l-box">
<h4 class="content-subhead">Fórum de Dúvidas</h4>
<h3>Interaja com o cronograma</h3>
<p>
Atendimento de forma exclusiva com seu próprio fórum no sistema do site para interagir com responsáveis da construção
<!--No Simple MOOC você pode ter seu próprio sistema de fórum para que seus alunos possam interagir com você e com os outros alunos-->
</p>
</div>
</div>
</div>
<div class="pure-g-r content-ribbon">
<div class="pure-u-2-3">
<div class="l-box">
<h4 class="content-subhead">Documentos<!--Exercícios--></h4>
<h3>Crie um fórum para avaliar a execução das atividades<!--Crie exercícios para avaliar seus alunos--></h3>
<p>
Você pode criar atividades para que os responsáveis possam ser avaliados e todo o controle de satisfação é controlado pela plataforma do site, facilitando sua vida
<!--Você pode criar exercícios para que os alunos possam ser avaliados e todo o controle de notas e resolução dos exercícios é controlado pela plataforma, facilitando sua vida-->
</p>
</div>
</div>
<div class="pure-u-1-3">
<div class="l-box">
<img src="http://placehold.it/400x250"
alt="Exercícios">
</div>
</div>
</div>
<div class="pure-g-r content-ribbon">
<div class="pure-u-1-3">
<div class="l-box">
<img src="http://placehold.it/400x250"
alt="Mural de Avisos">
</div>
</div>
<div class="pure-u-2-3">
<div class="l-box">
<h4 class="content-subhead">Mural de Avisos</h4>
<h3>Envie anúncios diretamente para o responsável da atividade<!--Envie anúncios diretamente para os alunos--></h3>
<p>
Organize os avisos das atividades de sua construção de forma fácil e simples.
<!--Organize os avisos do seu curso de forma fácil e simples.-->
</p>
</div>
</div>
</div>
</div>
{% endblock %}
48 changes: 44 additions & 4 deletions confidence_chronograms/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,51 @@
<!--Login é uma página única-->
<!DOCTYPE html>
<html lang="en">
<!--load static aqui-->
<html lang="pt-br">
{% load static %}

<head>
<meta charset="UTF-8">
<title>Agenda</title>
<title>Confidence Chronogram</title>
<!--<link rel="icon" href="../static/images/DEVSYS-FAVICON.png">-->
<link rel="stylesheet" href="../static/login.css" type="text/css">
</head>
<body>
<div>
<div class="tela">
<h1>Login</h1>
<form action="submit" method="POST">{% csrf_token %}
<div align="left">
&emsp;&emsp;
<label>Usuário:
<input type="text" name="username" placeholder="Name">
</label>
<label>Senha:
<input type="password" name="password" placeholder="Password">
</label>
<button type="submit">Entrar</button>
<button><a href="/">Cancelar</a></button>

<!--<img src="../static/images/DEVSYS-FAVICON.png" width="100px" alt="">-->
</div>
</form>

{% for message in messages %}
<br>
<div align="left">
&emsp;&emsp;
<strong>Erro: </strong>{{ message }}
</div>
{% endfor %}
</div>
</div>

</body>
</html>

<!--
<head>
<meta charset="UTF-8">
<title>Confidence Chronogram/title>
</head>
<body>
<h1>Login</h1>
Expand All @@ -30,4 +69,5 @@ <h1>Login</h1>
{% endfor %}
</body>
</html>
</html>
-->
Loading

0 comments on commit 59997df

Please sign in to comment.