diff --git a/scripts/build-static.sh b/scripts/build-static.sh index bc52ac6..81094e0 100755 --- a/scripts/build-static.sh +++ b/scripts/build-static.sh @@ -16,3 +16,6 @@ cp node_modules/materialize-css/dist/js/materialize.min.js static/build/js/mater # Install fontawesome cp node_modules/@fortawesome/fontawesome-free/css/all.min.css static/build/css/font-awesome.min.css cp -r node_modules/@fortawesome/fontawesome-free/webfonts static/build/ + +# Install images +cp -r static/src/img static/build/ diff --git a/static/src/img/header.jpg b/static/src/img/header.jpg new file mode 100644 index 0000000..764e19c Binary files /dev/null and b/static/src/img/header.jpg differ diff --git a/static/src/scss/index.scss b/static/src/scss/index.scss index eb4f381..b99b9c8 100644 --- a/static/src/scss/index.scss +++ b/static/src/scss/index.scss @@ -1,5 +1,7 @@ @import "materialize-css/sass/materialize"; +$navbar-height: 50px; + body { display: flex; min-height: 100vh; @@ -13,3 +15,28 @@ main { footer.page-footer { padding-top: 0; } + +.index-jumbotron { + @extend .valign-wrapper, .center-align; + + justify-content: center; + flex-direction: column; + + color: white; + + @media #{$large-and-up} { + height: calc(70vh - #{$navbar-height}); + } + + @media #{$medium-and-down} { + height: calc(100vh - #{$navbar-height}); + } +} + +.index-recent-content { + h2 { + @extend .center-align; + + margin-bottom: $element-bottom-margin * 2; + } +} diff --git a/templates/base.html b/templates/base.html index c45eed3..43c5f67 100644 --- a/templates/base.html +++ b/templates/base.html @@ -33,9 +33,12 @@ - - {% block content %}{% endblock %} - + + {% block main %} + + {% block content %}{% endblock %} + + {% endblock %}