Bootstrap4

parent fd0d6ab4
Pipeline #29086 failed with stages
<html>
<head>
<title>PyMonitoring</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="page-header">
<h1><a href="/">HOME IS HERE</a></h1>
</div>
<div class="content container">
<div class="row">
<div class="col-md-8">
{% block content %}
{% endblock %}
</div>
</div>
<nav class="navbar sticky-top navbar-dark bg-success">
<a class="navbar-brand" href="{% url 'index' %}"> PyPrevention </a>
<center>
<a class="btn btn-light" type="button" href="">Link 1</a>
<a class="btn btn-light" type="button" href="">Link 2</a>
</center>
{% if user.is_authenticated %}
<div class="dropdown show">
<a class="btn btn-dark ml-auto dropdown-toggle" href="" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ user.username}}
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="">Mon profil</a>
<a class="dropdown-item text-danger" href="">Se déconnecter</a>
</div>
</div>
{% else %}
<a class="btn btn-success" href="{% url 'login' %}">Se connecter</a>
{% endif %}
</nav>
{% block content %}
{% endblock %}
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>
......@@ -3,6 +3,31 @@
{% block content %}
<a href="{% url 'login' %}" class="button">Log in</a>
<div class="container text-center">
<div class="jumbotron mt-5 bg-light">
<h1 class="display-4">Bienvenue sur PyPrevention !</h1>
<p class="lead">L'application de [...]</p>
{% if user.is_authenticated %}
<a class="btn btn-lg btn-info" href="">Mon profil</a>
{% endif %}
</div>
{% if user.is_authenticated %}
<div class="jumbotron mt-2 bg-light">
<div class="container">
<h3 class="display-6">{{ user.username}}</h3>
</div>
</div>
{% else %}
<a class="btn btn-lg btn-success" href="{% url 'login' %}">Se connecter</a>
{% endif %}
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment