From 38a89a7dcb77160bd2fdbcaa5e28b31dc19f1102 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 5 Jan 2016 14:11:26 +0000 Subject: [PATCH] Added navbar HTML component --- static/src/js/app.js | 4 ++-- static/src/less/navbar.less | 4 ++++ templates/about/me.html | 1 - templates/content_base.html | 2 +- templates/index.html | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/static/src/js/app.js b/static/src/js/app.js index fbe8b45..617e092 100644 --- a/static/src/js/app.js +++ b/static/src/js/app.js @@ -13,6 +13,6 @@ if ($('body').hasClass('index')) { // Render components on index React.render(, document.getElementById('project-images-main')); } -if ($('#navbar-test')) { - React.render(, document.getElementById('navbar-test')); +if ($('navbar')) { + React.render(, $('navbar')[0]); } diff --git a/static/src/less/navbar.less b/static/src/less/navbar.less index dc1bbfa..49f3440 100644 --- a/static/src/less/navbar.less +++ b/static/src/less/navbar.less @@ -96,3 +96,7 @@ top: 0; z-index: 10000; } + +navbar + * { + margin-top: 52px; +} diff --git a/templates/about/me.html b/templates/about/me.html index 9577aa0..eebf223 100644 --- a/templates/about/me.html +++ b/templates/about/me.html @@ -23,6 +23,5 @@ - {% endblock %} diff --git a/templates/content_base.html b/templates/content_base.html index 80644e5..1aa9f18 100644 --- a/templates/content_base.html +++ b/templates/content_base.html @@ -9,7 +9,7 @@

{% block pageTitle %}{% endblock %}

+ {% block content %}{% endblock %} {% endblock %} - diff --git a/templates/index.html b/templates/index.html index 8f6f22a..c0dd176 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,6 +35,6 @@ - +
{% endblock %}