Changeset - 2e5647080951
[Not reviewed]
0 3 2
Christopher Neugebauer - 7 years ago 2017-08-13 00:57:25
chrisjrn@gmail.com
More work on the homepage
5 files changed with 77 insertions and 13 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/static_pages/homepage.html
Show inline comments
...
 
@@ -10,43 +10,87 @@
 
{% block body %}
 

	
 
  <div class="jumbotron homepage-block light">
 

	
 
    <div class="homepage-block-bg" style="background-image: url('{% static "images/website-background.svg" %}');"></div>
 

	
 
    <div class="container has-bottom-aligned-div">
 
    <div class="container homepage-block-content">
 

	
 
      <h1>North Bay Python</h1>
 
      <h2>A Python conference north of the Golden Gate</h2>
 

	
 
      <div class="bottom-align col-md-6 col-md-offset-3 text-center">
 
      <div class="bottom-align">
 
        <h3>Petaluma, California</h3>
 
        <h4><strong>2017 Conference:</strong> 2 &amp; 3 December</h4>
 
        <h4><strong>2017 conference:</strong> 2 &amp; 3 December</h4>
 
        <h4>Talk submissions close 29 September</h4>
 

	
 
        <div class="btn-group">
 
          <a class="btn btn-lg btn-primary" href="/dashboard">Submit a proposal</a>
 
        </div>
 
      </div>
 

	
 
    </div>
 
  </div>
 

	
 
  <div class="jumbotron homepage-block dark">
 
    <div class="container">
 

	
 
    <div class="homepage-block-bg" style="background-image: url('{% static "images/mystic.jpg" %}');"></div>
 

	
 
    <div class="container homepage-block-content">
 
      <h1>Downtown Petaluma</h1>
 
      <h2>Blah Blah Test</h2>
 
    </div>
 

	
 
      <p>Here is some text about Petaluma and the Mystic Theatre. It's pretty great. The mystic is close to restaurants and hotels. Petaluma is only an hour out of San Francisco. Blah.</p>
 

	
 
      <div class="bottom-align" style="width: 100%">
 
        <div class="btn-group col-md-6">
 
          <a class="btn btn-lg btn-primary" href="/about/north-bay-python">Find out more</a>
 
        </div>
 

	
 
        <div class="col-md-6 text-right">
 
          Image credit: <a href="https://www.instagram.com/p/BU-G5dGAkHt">Mystic Theatre</a>, &copy; 2017 Christopher Neugebauer (CC-BY-SA)</div>
 
      </div>
 
  </div>
 

	
 
  <div class="jumbotron homepage-block light">
 
  </div>
 

	
 
    <div class="homepage-block-bg" style="background-image: url('{% static "images/website-background.svg" %}');"></div>
 
    
 
    <div class="container">
 
  <div class="jumbotron homepage-block white">
 

	
 
    <div class="container homepage-block-content">
 
      <h1>Sponsors</h1>
 
    </div>
 
  </div>
 

	
 
  <div class="jumbotron homepage-block dark">
 

	
 
    <div class="homepage-block-bg" style="background-image: url('{% static "images/django-girls-2014.jpg" %}');"></div>
 

	
 
    <div class="container homepage-block-content">
 
      <h1>Inclusion and Diversity</h1>
 

	
 
      <p>Statement about commitment to inclusion and diversity. Strong code of conduct. Short and long term diversity targets in our call for proposals. Cheap tickets, with an entry fee that we will waive on request. Financial assistance for those who need it.</p>
 

	
 

	
 
      <div class="bottom-align" style="width: 100%">
 
        <div class="btn-group col-md-6">
 
          <a class="btn btn-lg btn-primary" href="/code-of-conduct">View our code of conduct</a>
 
        </div>
 

	
 
        <div class="col-md-6 text-right">
 
          Image credit: <a href="https://www.flickr.com/photos/richard_jones/14638274749">DjangoGirls Brisbane 2014</a>, &copy; 2014 Richard Jones (CC-BY)</div>
 
      </div>
 
    </div>
 
  </div>
 

	
 
{% endblock %}
 

	
 
{% block footer_base %}
 
  <div class="jumbotron homepage-block light" style="height:100px;">
 

	
 
    <div class="homepage-block-bg" style="background-image: url('{% static "images/website-background.svg" %}');"></div>
 

	
 
    <div class="container homepage-block-content">
 
      {% block footer %}
 
        {% include "_footer.html" %}
 
      {% endblock %}
 
    </div>
 
  </div>
 
{% endblock %}
static/images/django-girls-2014.jpg
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
static/images/mystic.jpg
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
static/scss/custom.scss
Show inline comments
...
 
@@ -84,13 +84,13 @@ body.reviews.voting-status {
 

	
 
.home#content_body {
 
  margin: 0;
 
  padding: 0;
 
}
 

	
 
.has-bottom-aligned-div {
 
.homepage-block-content {
 
  position: relative;
 
  height: 100%;
 
}
 

	
 
.bottom-align {
 
  position: absolute;
...
 
@@ -100,27 +100,41 @@ body.reviews.voting-status {
 
.homepage-block {
 
  margin-top: 0;
 
  margin-bottom: 0;
 
  min-height: 480px;  // TODO: change
 
  height: 480px;
 
  position: relative;
 
  box-shadow: $box-shadow;
 
  z-index: 3;
 
}
 

	
 
.homepage-block.light {
 
  background-color: hsla(207, 60%, 85%, 1.0);
 
  background-color: $background-filter;
 
  z-index: 2;
 
}
 

	
 
.homepage-block.white {
 
  background-color: white;
 
  z-index: 1;
 
}
 

	
 
.homepage-block-bg {
 
  top: 0;
 
  bottom: 0;
 
  width: 100%;
 
  height: 100%;
 
  position: absolute;
 
  background-size: cover;
 
  background-position: center;
 
  opacity: 0.3;
 
  background-blend-mode: multiply;
 
  z-index: -9999;
 
}
 

	
 
.homepage-block.dark {
 
  background: #333;
 
  background: $gray-base;
 
  color: white;
 
}
 

	
 
.navbar {
 
  box-shadow: $box-shadow;
 
}
static/scss/variables.scss
Show inline comments
 
/* COLORS */
 
// Used by links, buttons, and other background bits.
 
$brand-primary: #1f6400;
 
$background-filter: hsla(207, 60%, 85%, 1.0);
 

	
 
/* TEXT */
 
$font-family-sans-serif:  'Montserrat', Arial, sans-serif;
 
$font-family-serif:       Georgia, "Times New Roman", Times, serif;
 
$font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
 
$headings-line-height: 1.0;
 

	
 

	
 
// Navbar
 
$navbar-default-bg: $brand-primary;
 
$navbar-default-color: white;
 
$navbar-default-link-color: darken($navbar-default-color, 6.5%);
 
$navbar-default-link-hover-color: darken($navbar-default-link-color, 6.5%);
 
$navbar-default-link-active-color: $navbar-default-link-hover-color;
 
$navbar-default-link-disabled-color: lighten($navbar-default-bg, 6.5%);
 

	
 
$box-shadow: 0px 1px 1em rgba(0, 1, 1, 1); //, inset 0px -5px 1em rgba(0, 0, 0, 0.8);
0 comments (0 inline, 0 general)