Finally have CMS-based homepage looking identical to the dummy spalsh page.

This commit is contained in:
Nick Seidenman (N6) 2017-01-16 15:55:42 +11:00
parent 6121ce79cc
commit fb7ffbc68e
5 changed files with 84 additions and 81 deletions

View file

@ -11,11 +11,11 @@
{% if value.panel_type == "simple" %} {% if value.panel_type == "simple" %}
<div class="panel panel__bg {{ compact }}"> {% comment %}
<div class="panel--content">
{% include "cms_pages/home_page_blocks/basic_content_text_and_links.html" %} {% include "cms_pages/home_page_blocks/basic_content_text_and_links.html" %}
</div> {% endcomment %}
</div>
{{ value.body }}
{% elif value.panel_type == "blue_left" %} {% elif value.panel_type == "blue_left" %}

View file

@ -7,8 +7,8 @@
{% endif %} {% endif %}
<div class="panel--2-3"> <div class="panel--2-3">
<h2>{{ value.heading }}</h2> <!--h2>{{ value.heading }}</h2-->
<p class="lede">{{ value.body }}</p> <p class="lede"></p>
<div class="btn-group"> <div class="btn-group">
{% if value.panel_type == "blue_left" %} {% if value.panel_type == "blue_left" %}
<a href="{{ url }}" class="btn btn__white">{{ value.link.title }}</a> <a href="{{ url }}" class="btn btn__white">{{ value.link.title }}</a>

View file

@ -15,33 +15,33 @@
{% block body %} {% block body %}
{% block heading_panel %} {% block heading_panel %}
<div style="background-image: url('{% block header_background_image %}{% endblock %}');" class="panel--bg"></div> <!-- div style="background-image: url('{% block header_background_image %}{% endblock %}');" class="panel--bg"></div -->
<div class="panel--content"> <div class="panel--content">
<div class="panel--2-3"> {% comment %}
{% block header_title %}{% endblock %} <div class="panel--2-3">
<p class="lede">{% block header_paragraph %}{% endblock %}</p> {% block header_title %}{% endblock %}
</div> <p class="lede">{% block header_paragraph %}{% endblock %}</p>
{% block header_inset_image_base %} </div>
{% endblock %} {% block header_inset_image_base %}
{% endblock %}
{% comment %}
</div> </div>
{% block topbar_base %} {% block topbar_base %}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{% block content_base %} {% block content_base %}
<div class="l-content-page"> <!--div class="l-content-page"-->
<div class="l-content-page">
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</div> <!--/div-->
</div>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{% block extra_script %} {% block extra_script %}
<script src="{% static 'js/site-92ae8d0d6c.js' %}" type="text/javascript"></script> <!--script src="{% static 'js/site-92ae8d0d6c.js' %}" type="text/javascript"></script -->
{% endblock %} {% endblock %}

View file

@ -16,24 +16,23 @@
<meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1990 12:00:00 GMT" /> <meta http-equiv="expires" content="Tue, 01 Jan 1990 12:00:00 GMT" />
{% block viewport %}
{% block viewport %} <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
{% endblock %}
<title>{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} | {% endif %}{% block head_title %}{% endblock %}{% endblock %}</title>
{% block styles %}
<link rel="stylesheet" href="{% static 'pyconau2017/css/app.css' %}">
<link rel="stylesheet" href="{% static 'pyconau2017/css/print.css' %}" media="print">
<link href="{% static 'pyconau2017/css/pyconau.css' %}" rel="stylesheet">
<link href="{% static 'pyconau2017/css/bootstrap.css' %}" rel="stylesheet">
<link rel="icon" href="{% static 'pycon2017/images/favicon.ico' %}"
<!--Meta tags-->
<meta name="theme-color" content="#0c486c">
{% block extra_style %}
<link rel="stylesheet" href="{% static 'css/site-0a247b924d.css' %}">
{% endblock %} {% endblock %}
{% endblock %} <title>{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} | {% endif %}{% block head_title %}{% endblock %}{% endblock %}</title>
{% block styles %}
<link href="{% static 'pyconau2017/css/bootstrap.css' %}" rel="stylesheet">
<link rel="stylesheet" href="{% static 'pyconau2017/css/app.css' %}">
<link rel="stylesheet" href="{% static 'pyconau2017/css/print.css' %}" media="print">
<link href="{% static 'pyconau2017/css/pyconau.css' %}" rel="stylesheet">
<link rel="icon" href="{% static 'pycon2017/images/favicon.ico' %}"
<!--Meta tags-->
<meta name="theme-color" content="#0c486c">
{% endblock %}
<!--Twitter--> <!--Twitter-->
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@pyconau2017"> <meta name="twitter:site" content="@pyconau2017">
@ -48,55 +47,56 @@
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="fb:admins" content="729577430"> <meta property="fb:admins" content="729577430">
<meta property="fb:profile_id" content="293907417664731"> <meta property="fb:profile_id" content="293907417664731">
{% block extra_head_base %}
{% block extra_head %}{% endblock %} {% block extra_head_base %}
{% endblock %} {% block extra_head %}{% endblock %}
{% endblock %}
</head> </head>
<body class="{% block body_class %}{% endblock %}" <body class="{% block body_class %}{% endblock %}"
style="background-image: url({% static 'pyconau2017/images/pyconau-2016-collage.jpg' %});"> style="background-image: url({% static 'pyconau2017/images/pyconau-2016-collage.jpg' %});">
{% block topbar_base %} {% block topbar_base %}
{#
{% block nav %}
{% sitetree_menu from "main" include "trunk" template "sitetree_header.html" %}
<a href="#" data-menu-opener="" class="l-header--menu-opener"></a>
</header>
{% sitetree_menu from "main" include "trunk" template "sitetree_opener.html" %}
{% endblock %}
#}
{% endblock %}
{% block body_base %} {% block nav %}
<div style="height: 100px;" /> {% comment %}
<main role="main"> {% sitetree_menu from "main" include "trunk" template "sitetree_header.html" %}
{% block body %} <a href="#" data-menu-opener="" class="l-header--menu-opener"></a>
{% block content %} {% sitetree_menu from "main" include "trunk" template "sitetree_opener.html" %}
{% endcomment %}
{% endblock %}
{% endblock %}
{% block body_base %}
<!--div style="height: 100px;" /-->
<!--main role="main"-->
{% block body %}
{% block content %}
{% endblock %}
{% endblock %}
<!--/main-->
<!--/div-->
{% endblock %}
{% block footer_base %}
<!-- https://gist.github.com/geedmo/5682742-->
<!-- footer class="l-footer l-footer__alt" -->
{% block footer %}
{% endblock %}
</footer>
{% endblock %}
{% block scripts %}
{% block extra_script %}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
</div>
{% endblock %}
{% block footer_base %} {% block extra_body_base %}
<!-- https://gist.github.com/geedmo/5682742--> {% block analytics %}
<footer class="l-footer l-footer__alt"> {% include "analytics.html" %}
{% block footer %} {% endblock %}
{% endblock %}
</footer>
{% endblock %}
</main> {% block extra_body %}
{% block scripts %} {% endblock %}
{% comment%}
<script src="{% static 'pyconau2017/js/app.js' %}"></script>
{% include "_scripts.html" %}
<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js"></script>
{% endcomment %}
{% block extra_script %}{% endblock %}
{% endblock %} {% endblock %}
{% block extra_body_base %}
{% block analytics %}
{% include "analytics.html" %}
{% endblock %}
{% block extra_body %}{% endblock %}
{% endblock %}
</body> </body>
</html> </html>

View file

@ -1,15 +1,18 @@
{% extends "site_base.html" %} {% extends "site_base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% block extra_style %}{% endblock %} {% block extra_style %}{% endblock %}
{% comment %}
{% block body_base %} {% block body_base %}
<div style="height: 100px;" />
<main role="main">
{% include "_messages.html" %} {% include "_messages.html" %}
{% endcomment %}
{% block body %} {% block body %}
{% block content %} {% block content %}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{% comment %}
{% endblock %} {% endblock %}
{% endcomment %}
{% block scripts %} {% block scripts %}