use bootstrap

This commit is contained in:
Jannis Portmann 2021-04-24 16:59:51 +02:00
parent e209ea73ff
commit f3ad0e4638
20 changed files with 5563 additions and 18 deletions

View file

@ -1,14 +1,9 @@
{% extends 'base.html.twig' %}
{% block title %}Hello AppController!{% endblock %}
{% block title %}User{% endblock %}
{% block body %}
<style>
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
</style>
<div class="example-wrapper">
<h1>Hello {{ user.username }}!</h1>
<div class="mb-3">
<h1>Hello {{ user.username }}!</p>
</div>
{% endblock %}

View file

@ -6,14 +6,18 @@
{# Run `composer require symfony/webpack-encore-bundle`
and uncomment the following Encore helpers to start using Symfony UX #}
{% block stylesheets %}
{#{{ encore_entry_link_tags('app') }}#}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{#{{ encore_entry_script_tags('app') }}#}
{{ encore_entry_script_tags('app') }}
{% endblock %}
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
{% block body %}{% endblock %}
<div class="container">
{% block body %}{% endblock %}
</div>
</body>
</html>

View file

@ -1,6 +1,6 @@
{% extends 'base.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block title %}Log in{% endblock %}
{% block body %}
<form method="post">
@ -14,11 +14,15 @@
</div>
{% endif %}
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="inputEmail">Email</label>
<input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required autofocus>
<label for="inputPassword">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
<h3 class="mb-3 font-weight-normal">Please sign in</h3>
<div class="mb-3">
<label for="inputEmail" class="form-label">Email address</label>
<input name="email" type="email" class="form-control" id="inputEmail" aria-describedby="emailHelp" required autofocus>
</div>
<div class="mb-3">
<label for="inputPassword">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
</div>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"