From 6bedf06f1bbdabc0bc8fab9cffb4df4949dcc76c Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Sun, 12 Feb 2017 10:40:20 +0000 Subject: [PATCH] Some styling tweaks on homepage and member list page, spacing and layout --- .drone.yml | 2 ++ mhackspace/templates/feeds/list.html | 35 ++++++++++++++++--------- mhackspace/templates/pages/about.html | 10 ++++++- mhackspace/templates/pages/members.html | 10 ++++--- 4 files changed, 39 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4d36f3f..db29b8f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,8 @@ pipeline: - DJANGO_SETTINGS_MODULE=config.settings.test commands: - cp -n env.example .env + - ls -la /drone/src/ + - ls -la /drone/src/requirements/ - pip install -r /drone/src/requirements/test.txt - python manage.py test mhackspace --verbosity 2 diff --git a/mhackspace/templates/feeds/list.html b/mhackspace/templates/feeds/list.html index 30f498f..16f6cb1 100644 --- a/mhackspace/templates/feeds/list.html +++ b/mhackspace/templates/feeds/list.html @@ -1,18 +1,27 @@ {% load static %} {% get_static_prefix as STATIC_PREFIX %} + +

See what our memberrs have been creating below.

+
- {% for article in articles %} -
- - {{ article.title }} - -
-

{{ article.title }}

-

{{ article.feed.author }}

-

{{ article.description|striptags|truncatewords:30 }}

- View Original +
+ {% for article in articles %} +
+ + + {% if article.image %} + {{ article.title }} + {% endif %} + +
+

{{ article.title }}

+

{{ article.feed.author }}

+

{{ article.description|striptags|truncatewords:30 }}

+ View Original +
-
- {% endfor %} + + {% if forloop.counter|divisibleby:3 %}
{% endif %} + {% endfor %} +
diff --git a/mhackspace/templates/pages/about.html b/mhackspace/templates/pages/about.html index 63913c1..bc62be8 100644 --- a/mhackspace/templates/pages/about.html +++ b/mhackspace/templates/pages/about.html @@ -1 +1,9 @@ -{% extends "base.html" %} \ No newline at end of file +{% extends "base.html" %} + +{% block content %} + +

A hackspace also referred to as a makerspace is a community-operated, workspace where people with common interests, often in computers, machining, technology, science, digital art or electronic art, can meet, socialize and collaborate.

+ +

Most people do no have the space knowleddge or finance required to create things at home, hackspaces get around this by poolng together for the bigger tools sharing of knowledge and helping out each other to create & build.

+ +{% endblock content %} diff --git a/mhackspace/templates/pages/members.html b/mhackspace/templates/pages/members.html index 265c63a..d343596 100644 --- a/mhackspace/templates/pages/members.html +++ b/mhackspace/templates/pages/members.html @@ -1,14 +1,16 @@ {% extends "base.html" %} {% block content %} -Members feed
-
Users {{ paginator.count }}
-
Members {{ total }}
+
Hackspace Members
+ +
-
+
+ +
{% for member in members %}