Add base and login templates

master
Neslihan 4 years ago
parent 722c2777d5
commit c9c5d3f418
  1. 35
      app/templates/base.html
  2. 25
      app/templates/login.html

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Dilde Başlar">
<meta name="author" content="Özgür Yazılım Derneği">
<title>dildeBaslar</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<!-- Font Awesome -->
<!-- This link is restricted. You will need your own Font Awesome link if deploying to anywhere other than localhost -->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-9ZfPnbegQSumzaE7mks2IYgHoayLtuto3AS6ieArECeaR8nCfliJVuLh/GaQ1gyM" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/custom.css')}}">
</head>
<body>
<div class="container" align="center">
<div class="jumbotron text-center" style="width: 50% ;">
<h1>dildeBaşlar</h1>
<p>dildeBaşlar, metinlerdeki hak ihlallerini tespit edip olması gereken kullanımları ve açıklamalarını gösteren hak temelli bir redaktördür.</p>
</div>
</div>
{% block content %}{% endblock %}
</body>
</html>

@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block content %}
<h1>Sign In</h1>
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}
<p>
{{ form.username.label }}<br>
{{ form.username(size=32) }}<br>
{% for error in form.username.errors %}
<span style="color: red;">[{{ error }}]</span>
{% endfor %}
</p>
<p>
{{ form.password.label }}<br>
{{ form.password(size=32) }}<br>
{% for error in form.password.errors %}
<span style="color: red;">[{{ error }}]</span>
{% endfor %}
</p>
<p>{{ form.remember_me() }} {{ form.remember_me.label }}</p>
<p>{{ form.submit() }}</p>
<p>New User? <a href="{{ url_for('register') }}">Click to Register!</a></p>
</form>
{% endblock %}
Loading…
Cancel
Save