Rename index to homepage so it's more unique
This commit is contained in:
parent
27298cd707
commit
e4e079a3e0
4 changed files with 28 additions and 29 deletions
24
static/src/scss/homepage.scss
Normal file
24
static/src/scss/homepage.scss
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
.homepage-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});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.homepage-recent-content {
|
||||||
|
h2 {
|
||||||
|
@extend .center-align;
|
||||||
|
|
||||||
|
margin-bottom: $element-bottom-margin * 2;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
@import "materialize-css/sass/materialize";
|
@import "materialize-css/sass/materialize";
|
||||||
|
|
||||||
$navbar-height: 50px;
|
@import "homepage";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -15,28 +15,3 @@ main {
|
||||||
footer.page-footer {
|
footer.page-footer {
|
||||||
padding-top: 0;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% block title %}Homepage{% endblock %}
|
{% block title %}Homepage{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="index-jumbotron parallax-container">
|
<div class="homepage-jumbotron parallax-container">
|
||||||
<div class="parallax">
|
<div class="parallax">
|
||||||
<img src="{% static 'img/header.jpg' %}" />
|
<img src="{% static 'img/header.jpg' %}" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
<p class="flow-text">Part Developer. Part SysAdmin. Part InfoSec. All Nerd!</p>
|
<p class="flow-text">Part Developer. Part SysAdmin. Part InfoSec. All Nerd!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container index-recent-content">
|
<div class="container homepage-recent-content">
|
||||||
<h2>Recent Content</h2>
|
<h2>Recent Content</h2>
|
||||||
|
|
||||||
{% include "card-list-item.html" %}
|
{% include "card-list-item.html" %}
|
|
@ -2,4 +2,4 @@ from django.views.generic import TemplateView
|
||||||
|
|
||||||
|
|
||||||
class HomepageView(TemplateView):
|
class HomepageView(TemplateView):
|
||||||
template_name = "index.html"
|
template_name = "homepage.html"
|
||||||
|
|
Reference in a new issue