diff --git a/gwift/gwift/settings/base.py b/gwift/gwift/settings/base.py index ac6f3e2..36e8796 100644 --- a/gwift/gwift/settings/base.py +++ b/gwift/gwift/settings/base.py @@ -85,3 +85,4 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.8/howto/static-files/ STATIC_URL = '/static/' + diff --git a/gwift/gwift/settings/dev.py b/gwift/gwift/settings/dev.py index db3c74f..0ab3517 100644 --- a/gwift/gwift/settings/dev.py +++ b/gwift/gwift/settings/dev.py @@ -26,4 +26,8 @@ DATABASES = { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } -} \ No newline at end of file +} + +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, "static"), +] \ No newline at end of file diff --git a/gwift/static/css/style.css b/gwift/static/css/style.css new file mode 100644 index 0000000..f8bc268 --- /dev/null +++ b/gwift/static/css/style.css @@ -0,0 +1,82 @@ +html { + position: relative; + min-height: 100%; +} + +body { + font-family: 'Open Sans', sans-serif; + /* Margin bottom by footer height */ + margin-bottom: 4em; +} + +.user-avatar { + width: 1.5em; + height: 1.5em; + border-radius: .75em; +} + +.slimg { + width: auto; + height: 270px; + max-height: 270px; + vertical-align: middle; +} + +.project-card-description { + height: 3em; + overflow: hidden; +} + +.base-header { + width: 100%; + max-height: 200px; + margin-top: 5px; + vertical-align: bottom; +} + +#nav.affix { + position: fixed; + top: 0; + width: 100%; + z-index:10; +} + +.nav-wrapper +{ + min-height:70px; +} + +#home-logo { + width: 100%; + text-align: center; + background-image:linear-gradient(white, #BBBBBB); +} + +#home-logo-image { + width: 50%; + margin: auto; + height: auto; + max-height: 120px; + max-width: 243px; + overflow: hidden; +} + +.navbar-shadow{ + -webkit-box-shadow: 0px 9px 43px -4px rgba(61,61,61,0.5); + -moz-box-shadow: 0px 9px 43px -4px rgba(61,61,61,0.5); + box-shadow: 0px 9px 43px -4px rgba(61,61,61,0.5); +} + +.footer { + position: absolute; + bottom: 0; + width: 100%; + /*Set the fixed height of the footer here */ + height: 4em; + padding-top: 1em; + border-top: 1px solid #f5f5f5; +} + +.footer a { + color: #5b94c5; +} diff --git a/gwift/static/img/favicon.ico b/gwift/static/img/favicon.ico new file mode 100644 index 0000000..8f2a132 Binary files /dev/null and b/gwift/static/img/favicon.ico differ diff --git a/gwift/static/img/gwift-20x20.png b/gwift/static/img/gwift-20x20.png new file mode 100644 index 0000000..0381506 Binary files /dev/null and b/gwift/static/img/gwift-20x20.png differ diff --git a/gwift/static/js/navbar.js b/gwift/static/js/navbar.js new file mode 100644 index 0000000..07fcdfd --- /dev/null +++ b/gwift/static/js/navbar.js @@ -0,0 +1,5 @@ +$('#nav').affix({ + offset: { + top: $('header').height() + } +}); diff --git a/gwift/templates/_footer.html b/gwift/templates/_footer.html new file mode 100644 index 0000000..ea1a84f --- /dev/null +++ b/gwift/templates/_footer.html @@ -0,0 +1,3 @@ +
+ Copylefted '16 +
\ No newline at end of file diff --git a/gwift/templates/_menu_items.html b/gwift/templates/_menu_items.html new file mode 100644 index 0000000..076cc52 --- /dev/null +++ b/gwift/templates/_menu_items.html @@ -0,0 +1,14 @@ + + \ No newline at end of file diff --git a/gwift/templates/base.html b/gwift/templates/base.html new file mode 100644 index 0000000..e83e86c --- /dev/null +++ b/gwift/templates/base.html @@ -0,0 +1,64 @@ +{% load staticfiles %} + + + + + + + + + + + + + + + + Gwift + + + + + + + + + +
+
+
+ {% block content %}{% endblock %} +
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/gwift/templates/wish/list.html b/gwift/templates/wish/list.html index ca6076a..1160085 100644 --- a/gwift/templates/wish/list.html +++ b/gwift/templates/wish/list.html @@ -1,16 +1,11 @@ - - - - - - - - -

Mes listes de souhaits

- - - +{% extends "base.html" %} + +{% block content %} +

Mes listes de souhaits

+ +{% endblock %} +