From f4516604bfd0c7c9652bb3ff6cc5448f6f7a1e2e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 3 Jun 2016 19:33:12 +0200 Subject: [PATCH] Add static and templates --- refunds/static/.gitkeep | 0 refunds/templates/blog/about.html | 7 +++++ refunds/templates/blog/home.html | 9 +++++++ static/default_style.css | 15 +++++++++++ templates/base.html | 33 ++++++++++++++++++++++++ templates/navbar.html | 43 +++++++++++++++++++++++++++++++ 6 files changed, 107 insertions(+) create mode 100644 refunds/static/.gitkeep create mode 100644 refunds/templates/blog/about.html create mode 100644 refunds/templates/blog/home.html create mode 100644 static/default_style.css create mode 100644 templates/base.html create mode 100644 templates/navbar.html diff --git a/refunds/static/.gitkeep b/refunds/static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/refunds/templates/blog/about.html b/refunds/templates/blog/about.html new file mode 100644 index 0000000..81bfabf --- /dev/null +++ b/refunds/templates/blog/about.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} + +{% block title %}About{% endblock %} +{% block content %} +

About

+

This page is under construct and will be updated as soon as possible.

+{% endblock %} diff --git a/refunds/templates/blog/home.html b/refunds/templates/blog/home.html new file mode 100644 index 0000000..265000d --- /dev/null +++ b/refunds/templates/blog/home.html @@ -0,0 +1,9 @@ +{% extends 'base.html' %} + +{% block title %}Home{% endblock %} +{% block content %} +

Gab's thoughts

+

Welcome to my blog. I hope you will enjoy your journey here.

+

This blog is about creating websites with Django, a Python framework designed for web.

+

Feel free to start by exploring my latest blog entries.

+{% endblock %} diff --git a/static/default_style.css b/static/default_style.css new file mode 100644 index 0000000..788ff47 --- /dev/null +++ b/static/default_style.css @@ -0,0 +1,15 @@ +html { + position: relative; + min-height: 100%; + font-size: 16px; +} + +body { + font-size: 1rem; + font-family: 'Open Sans', sans-serif; + line-height: 1.5; +} + +h1 { + font-weight: bold; +} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..6d5f16a --- /dev/null +++ b/templates/base.html @@ -0,0 +1,33 @@ +{% load staticfiles %} + + + + Gab's thoughts • {% block title %}{% endblock %} + + + + + {% block style %} + + + + {% endblock style %} + + +{% include 'navbar.html' %} + +
+ {% block content %} + {% endblock %} +
+ +{% block javascript %} + + +{% endblock javascript %} + + \ No newline at end of file diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..5320ec7 --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,43 @@ + \ No newline at end of file