fixes and improvements

master
Laurent Morvillier 6 years ago
parent cfb9aee497
commit de50d9b4e9
  1. 14
      news/static/news/css/app.css
  2. 11
      news/templates/base.html
  3. 0
      news/templates/news/user/change_password.html
  4. 2
      news/templates/news/user/password_reset_confirm.html
  5. 2
      news/urls.py

@ -12,6 +12,14 @@
--header-bg-color: #FFD540; --header-bg-color: #FFD540;
} }
.container {
background-color: #1a1a1a;
}
/* .imgcontainer img {
max-width: 100%;
} */
iframe { iframe {
border: 0; border: 0;
} }
@ -25,7 +33,7 @@ a:hover {
body { body {
color: #eee; color: #eee;
background-color: #222; background-color: #111;
font-size:18px; font-size:18px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
@ -42,7 +50,7 @@ header {
} }
@media print, screen and (min-width: 40em) { @media print, screen and (min-width: 40em) {
header { header {
width: 420px; width: 400px;
} }
} }
@ -189,7 +197,7 @@ a h1 {
} }
@media print, screen and (min-width: 40em) { @media print, screen and (min-width: 40em) {
.imgcontainer { .imgcontainer {
width: 600px; /* width: 600px; */
/* border-bottom: 10px solid #111; */ /* border-bottom: 10px solid #111; */
/* border-top: 20px solid #111; */ /* border-top: 20px solid #111; */
} }

@ -35,20 +35,18 @@
</header> --> </header> -->
<div class="grid-x"> <div class="grid-x">
<!-- <div class="cell large-2 header"> <div class="cell large-offset-3 large-6 medium-8 medium-offset-2 content container">
</div> -->
<div class="cell large-6 large-offset-3 content">
<!-- Header --> <!-- Header -->
<header> <header>
<img src="{% static 'image/icon128_transparent.png' %}" alt="Poker Rumble icon" width="96" height="96"/> <a href="{% url 'news:index' %}">
<img src="{% static 'image/icon128_transparent.png' %}" alt="Poker Rumble icon" width="96" height="96"/>
</a>
<div class="title"> <div class="title">
<h1> <h1>
<a href="{% url 'news:index' %}">poker rumble</a> <a href="{% url 'news:index' %}">poker rumble</a>
</h1> </h1>
</div> </div>
<!-- <h2>HOME OF NEWS GRINDERS</h2> -->
<nav> <nav>
{% if user.is_authenticated %} {% if user.is_authenticated %}
@ -71,6 +69,7 @@
<!-- Body --> <!-- Body -->
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</div> </div>
<!-- Footer --> <!-- Footer -->

@ -21,7 +21,7 @@
<label for="id_new_password2">Confirm password:</label> <label for="id_new_password2">Confirm password:</label>
{{ form.new_password2 }} {{ form.new_password2 }}
</div> </div>
<input type="submit" value="Change my password"> <button class="primary_button" type="submit">Change my password</button>
</fieldset> </fieldset>
</form> </form>

@ -36,5 +36,5 @@ urlpatterns = [
path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view( path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(
template_name='news/user/password_reset_confirm.html', template_name='news/user/password_reset_confirm.html',
success_url='password-change/done'), name='password_reset_confirm'), success_url='password-change/done'), name='password_reset_confirm'),
path('reset/Mg/set-password/password-change/done', auth_views.PasswordResetCompleteView.as_view(template_name='news/user/password_reset_complete.html'), name='password_change_done'), path('reset/<uidb64>/set-password/password-change/done', auth_views.PasswordResetCompleteView.as_view(template_name='news/user/password_reset_complete.html'), name='password_change_done'),
] ]

Loading…
Cancel
Save