From f57da10d8c51b2a71e7d85705439c4082aa6c507 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 8 Nov 2012 23:47:20 -0500 Subject: add the kadoscope --- schema.sql | 3 ++- static/style.css | 18 ++++++++++++++---- templates/layout.html | 44 +++++++++++++++++++++++++------------------- templates/user/edit.html | 7 ++++++- 4 files changed, 47 insertions(+), 25 deletions(-) diff --git a/schema.sql b/schema.sql index e0668c6..6c8c721 100644 --- a/schema.sql +++ b/schema.sql @@ -11,7 +11,8 @@ create table users ( phone string, address_line1, address_line2, - address_city_line + address_city_line, + kado string ); drop table if exists news; diff --git a/static/style.css b/static/style.css index a5ad5e0..1e60c12 100644 --- a/static/style.css +++ b/static/style.css @@ -159,7 +159,7 @@ background-color : #B9CEFF; input[type=button],[type=submit]{ background-color : #B9CEFF; color : black; --moz-border-radius : 5px; +-moz-border-radius : 5px; } textarea{ @@ -505,7 +505,17 @@ margin-right : auto; font-weight : bold; } +p.kadoscope{ + opacity : 0; + text-align : center; + color : #E61000; + font-size : 20px; + font-weight : bold; +} - - - +#kadobutton{ + background-image : url('gfx/gift.png'); + background-repeat : no-repeat; + background-position : center; + height : 130px; +} diff --git a/templates/layout.html b/templates/layout.html index dc9be11..709daef 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -3,8 +3,9 @@ {% block title %}Site de la famille{% endblock %} - - + + {% block body %} @@ -12,23 +13,28 @@

{{session['user_name']}} - (Mon compte | Se déconnecter)

-
- -
- {% block content %}{% endblock %} + (Mon compte | + Se déconnecter)

+
+ +
+ {% block content %}{% endblock %} +
- - {% endblock body %} - + {% endblock body %} + + + diff --git a/templates/user/edit.html b/templates/user/edit.html index e9d151a..b85f7b2 100644 --- a/templates/user/edit.html +++ b/templates/user/edit.html @@ -1,6 +1,11 @@ {% extends 'layout.html' %} {% block content %} +

Kadoscope

+

Cliquer sur le cadeau ci-dessous pour découvrir le nom de l'heureux élu qui recevra un cadeau de votre part.

+

{{user.kado}}

+

+

Paramètres du Compte

Paramètres @@ -51,7 +56,7 @@

-
+ {% endblock %} -- cgit v1.2.3-70-g09d2