Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social pic template #84

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9e95836
Adds base recap page
mtrythall Mar 20, 2019
7bf0aa8
Merge branch 'develop' into recap-page
mtrythall Mar 20, 2019
3274aa0
Merge branch 'develop' into recap-page
mtrythall Mar 20, 2019
062fdba
Merge branch 'develop' into recap-page
mtrythall Mar 27, 2019
50747d2
Language adjustment
mtrythall Mar 27, 2019
e18f093
Merge branch 'master' into recap-page
mtrythall Mar 27, 2019
3d891bc
Removes and shuffles some items on recap
mtrythall Mar 27, 2019
0c9e101
Updates to recap page
mtrythall Mar 28, 2019
0fde0c8
Adds speakers to recap page
mtrythall Mar 28, 2019
25a20a1
Updates with stat blocks
mtrythall Mar 28, 2019
ac6b379
Updates static files
mtrythall Mar 28, 2019
f2b629e
Fixes recap page error
mtrythall Mar 28, 2019
76dc4bd
Whacks the cache on static files
mtrythall Mar 28, 2019
b561bb9
Properly limit the amount of talks shown for recap
mtrythall Mar 28, 2019
e1adc03
Updates for recap page. Better mobile design.
mtrythall Mar 29, 2019
2903f7f
Updates to recap page, better staging of content.
mtrythall Mar 29, 2019
2f8b1ca
Reinstate lead gap
mtrythall Mar 29, 2019
b860dc8
Fixes photos on recap on mobile
mtrythall Mar 29, 2019
d3d386a
Photo block refinements
mtrythall Mar 29, 2019
9f65f7f
Updates with simple photo feature
mtrythall Apr 4, 2019
192a807
Updates the styleguide to support more content around grid, dates, ic…
mtrythall Apr 5, 2019
d7a1c85
Adds social pic template for sharing
mtrythall Apr 7, 2019
f111ee9
Merge branch 'master' into social-pic-template
mtrythall Apr 7, 2019
6abff23
Adds config to social pic template
mtrythall Apr 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _includes/schedule-session-full.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ <h3 class="event-title">{{ post.title }}</h3>

{% if post.presenters %}
{% for presenter in post.presenters %}
<p class="event-byline">
<p class="mini-profile-byline">
{% if presenter.photo_url != blank %}
<img
class="avatar"
src="{{ presenter.photo_url }}"
alt="Photo of {{ presenter.presenters }}" />
alt="Photo of {{ presenter.name }}" />
{% endif %}
{{ presenter.name }}
{% if presenter.pronouns != blank %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/schedule-session.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ <h3 class="event-title">{{ post.title }}</h3>
{% endif %}
{% if post.presenters %}
{% for presenter in post.presenters %}
<p class="event-byline">
<p class="mini-profile-byline">
{% if presenter.photo_url != blank %}
<img
class="avatar"
src="{{ presenter.photo_url }}"
alt="Photo of {{ presenter.presenters }}" />
alt="Photo of {{ presenter.name }}" />
{% endif %}
{{ presenter.name }}
{% if presenter.pronouns != blank %}
Expand Down
46 changes: 46 additions & 0 deletions _includes/styleguide/dates-example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<section class="section-pad">
<div class="row column xlarge-9">
<div class="date-card medium-4 column">
<div class="row collapse">
<div class="small-5 column">
<div class="dates">
<div class="month">Sept</div>
<div class="days">22</div>
</div>
</div>
<div class="small-7 column">
<h3 class="date-card-title">Tutorials</h3>
<p>One day, numerous tutorials</p>
</div>
</div>
</div>
<div class="date-card medium-4 column">
<div class="row collapse">
<div class="small-5 column">
<div class="dates">
<div class="month">Sept</div>
<div class="days">23-25</div>
</div>
</div>
<div class="small-7 column">
<h3 class="date-card-title">Talks</h3>
<p>Dozens of talks chosen by the community</p>
</div>
</div>
</div>
<div class="date-card medium-4 column">
<div class="row collapse">
<div class="small-5 column">
<div class="dates">
<div class="month">Sept</div>
<div class="days">26-27</div>
</div>
</div>
<div class="small-7 column">
<h3 class="date-card-title">Sprints</h3>
<p>Team up to work on Django!</p>
</div>
</div>
</div>
</div>
</section>
1 change: 1 addition & 0 deletions _includes/styleguide/icons-example1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="/static/img/globe.svg" alt="A globe" />
24 changes: 24 additions & 0 deletions _includes/styleguide/icons-example2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<img
src="/static/img/dollar.svg"
alt="A dollar symbol"
class="icon icon-small" />

<img
src="/static/img/dollar.svg"
alt="A dollar symbol"
class="icon icon-medium" />

<img
src="/static/img/dollar.svg"
alt="A dollar symbol"
class="icon icon-large" />

<img
src="/static/img/dollar.svg"
alt="A dollar symbol"
class="icon icon-xlarge" />

<img
src="/static/img/dollar.svg"
alt="A dollar symbol"
class="icon icon-jumbo" />
26 changes: 26 additions & 0 deletions _includes/styleguide/icons-example3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<div class="row">
<div class="column small-6 medium-4 large-3">
<img
src="/static/img/hands.svg"
alt="Hands"
class="icon" />
</div>
<div class="column small-6 medium-4 large-3">
<img
src="/static/img/heart.svg"
alt="Heart"
class="icon" />
</div>
<div class="column small-6 medium-4 large-3">
<img
src="/static/img/program.svg"
alt="Program"
class="icon" />
</div>
<div class="column small-6 medium-4 large-3">
<img
src="/static/img/people.svg"
alt="People"
class="icon" />
</div>
</div>
8 changes: 8 additions & 0 deletions _includes/styleguide/icons-example4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<section class="clearfix">
<img
src="/static/img/navigate.svg"
alt="Compass"
class="icon icon-xlarge float-left" />
<p>DjangoCon US is a six-day international conference for the community by the community about the Django web framework, held each year in North America.</p>
<p>DjangoCon US has something for everyone, from the person who develops Django applications for a living to the person who just tinkers in their spare time. You'll discover details about a range of diverse applications that people from all over the world are building with Django, get a deeper understanding of concepts you’re already familiar with and discover new ways to use them, and have a lot of fun!</p>
</section>
8 changes: 8 additions & 0 deletions _includes/styleguide/icons-example5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<section class="clearfix">
<img
src="/static/img/megaphone.svg"
alt="Megaphone"
class="icon icon-xlarge float-right" />
<p>DjangoCon US is a six-day international conference for the community by the community about the Django web framework, held each year in North America.</p>
<p>DjangoCon US has something for everyone, from the person who develops Django applications for a living to the person who just tinkers in their spare time. You'll discover details about a range of diverse applications that people from all over the world are building with Django, get a deeper understanding of concepts you’re already familiar with and discover new ways to use them, and have a lot of fun!</p>
</section>
10 changes: 10 additions & 0 deletions _includes/styleguide/photo-feature-example1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<section class="row v-pad-bottom">
<figure class="column small-12 medium-6">
<img src="/static/img/home-testimonial.jpg" alt="" />
</figure>

<div class="column small-12 medium-6">
<h3>Photo Feature Title</h3>
<p>A few lines of text. If you just want to put a photo or some text side-by-side you can use this format. This uses the standard Foundation grid. On smaller displays, the photo will be on top. You can change this by changing the order of the two <code>.column</code> nodes.</p>
</div>
</section>
9 changes: 9 additions & 0 deletions _includes/styleguide/photo-feature-example2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<section class="row medium-collapse v-pad-bottom">
<figure class="column small-12 medium-6">
<img src="/static/img/home-testimonial.jpg" alt="" />
</figure>

<div class="column small-12 medium-6">
<img src="/static/img/about.jpg" alt="" />
</div>
</section>
40 changes: 40 additions & 0 deletions _includes/styleguide/styleguide-building-blocks.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<h1>Building Blocks (Sections)</h1>

<p>Most sections of the site consist of block-like structures. These structures follow a similar format:</p>

{% highlight html %}<div class="section-pad">
<div class="row">
<div class="column">
<!-- content here -->
</div>
</div>
</div>{% endhighlight %}

<div class="ss-code-live">
<div class="section-pad">
<div class="row">
<div class="column">
&lt;!-- content here (but not really) --&gt;
</div>
</div>
</div>
</div>

<p>By default, this doesn't do much except setup a full width grid and a single column. To learn more about the grid system, please see Foundation's docs on the <a href="https://foundation.zurb.com/sites/docs/grid.html">Legacy Grid</a>. However, there are a few helpful tips to keep in mind:</p>

<ul>
<li>The website uses a 12 column grid</li>
<li>The maximum width (as of 2019) is 1200px.</li>
<li>Always start the column class list with <code>.column</code>.</li>
<li>You'll generally want to focus on small, medium, and large sizes. You can determine a column's width by using <code>.[size]-[column-width]</code>. So for example, <code>.medium-6</code> would create a 50% wide column on medium displays.</li>
<li>If you do not define a larger size, the previous size will be used. Example: <code>.small-12 .medium-3</code> results in a column that is 1/4 wide (as 1/4 of 12 columns is 3)</li>
</ul>

<p>These building blocks can be themed using the classes outlined under <a href="#themed-page-sections">Themed page sections</a>. As these building blocks are meant to stack, you'll want to alternate between section themes.</p>

<p>You can roll your own top and bottom padding by using the following classes:</p>

<ul>
<li><code>.v-pad-top</code> - Handles top padding for small and large displays.</li>
<li><code>.v-pad-bottom</code> - Handles bottom padding for small and large displays.</li>
</ul>
7 changes: 7 additions & 0 deletions _includes/styleguide/styleguide-dates-section.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<h1>Dates Section</h1>

{% highlight html %}{% include styleguide/dates-example.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/dates-example.html %}
</div>
52 changes: 52 additions & 0 deletions _includes/styleguide/styleguide-icons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<h1>Icons</h1>

<p>You can add icons in content by including them just like images. Because most icons are SVGs, they will likely expand to take up the full width available:</p>

{% highlight html %}{% include styleguide/icons-example1.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/icons-example1.html %}
</div>

<hr />

<h2>Sizing Icons</h2>

<p>Big, full width icons may not be preferred. There are two ways to size icons:</p>

<ul>
<li>Use the icon size classes: <code>icon-small</code>, <code>icon-medium</code>, <code>icon-large</code>, <code>icon-xlarge</code>, or <code>icon-jumbo</code>.</li>
<li>Put icons in the grid.</li>
</ul>

{% highlight html %}{% include styleguide/icons-example2.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/icons-example2.html %}
</div>

{% highlight html %}{% include styleguide/icons-example3.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/icons-example3.html %}
</div>

<hr />

<h2>Icons in Content</h2>

<p>You may wish to place an icon in or around content. Foundation provides some handy helpers for this: <code>.float-left</code> and <code>.float-right</code>. Because these use CSS floats, you'll need to wrap the float (or the container) in an element with the <code>.clearfix</code> class.</p>

<p><strong>NOTE:</strong> Blog posts have the <code>.clearfix</code> class added by default.</p>

{% highlight html %}{% include styleguide/icons-example4.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/icons-example4.html %}
</div>

{% highlight html %}{% include styleguide/icons-example5.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/icons-example5.html %}
</div>
19 changes: 16 additions & 3 deletions _includes/styleguide/styleguide-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,31 @@
<li class="tabs-title">
<a href="#logo-files">Logo files</a>
</li>
{% comment %}
<li class="tabs-title">
<a href="#icons">Icons</a>
<a href="#typography">Typography</a>
</li>
<li class="tabs-title">
<a href="#building-blocks">Building Blocks (Sections)</a>
</li>
{% endcomment %}
<li class="tabs-title">
<a href="#themed-page-sections">Themed page sections</a>
</li>
<li class="tabs-title">
<a href="#icons">Icons</a>
</li>
<li class="tabs-title">
<a href="#photo-hero-section">Photo hero section</a>
</li>
<li class="tabs-title">
<a href="#photo-feature">Photo feature</a>
</li>
<li class="tabs-title">
<a href="#profile-card">Profile card</a>
</li>
<li class="tabs-title">
<a href="#presenters">Presenters List</a>
</li>
<li class="tabs-title">
<a href="#dates-section">Dates Section</a>
</li>
</ul>
20 changes: 20 additions & 0 deletions _includes/styleguide/styleguide-photo-feature.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1>Photo Feature</h1>
<p>This component is always two columns, relying on the default Foundation grid.</p>

{% highlight html %}{% include styleguide/photo-feature-example1.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/photo-feature-example1.html %}
</div>

<hr />

<h2>Collapsed, Two Images</h2>

<p>The collapsed version simply removes gutters between the two columns, which is ideal if you want two images of similar size to touch.</p>

{% highlight html %}{% include styleguide/photo-feature-example2.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/photo-feature-example2.html %}
</div>
27 changes: 27 additions & 0 deletions _includes/styleguide/styleguide-presenters.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<h1>Presenters List</h1>

<p>The presenters list features a list of avatars and titles, meant for a list of speakers. Minimal information should be shown.</p>

{% highlight html %}<section class="section-pad mini-profile-block">
<div class="mini-profile-list">
<a href="#" class="mini-profile-byline">
<img class="avatar" src="https://placeimg.com/64/64/animals/1" alt="Presenter Name">Majorly Cute Animal
</a>

<!-- Repeat <a> as needed -->
</div>
</section>{% endhighlight %}

<section class="section-pad mini-profile-block">
<div class="mini-profile-list">
{% for i in (1..16) %}
{% assign adj = "Majorly Cute,Incredibly Cuddly,Awesomely Funny,Super Friendly" | split:"," %}
{% assign y = i | modulo: 4 %}
<a href="#" class="mini-profile-byline">
<img class="avatar" src="https://placeimg.com/64/64/animals/{{ i }}" alt="Presenter Name">
{{ adj[y] }}
Animal
</a>
{% endfor %}
</div>
</section>
9 changes: 9 additions & 0 deletions _includes/styleguide/styleguide-typography.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<h1>Typography</h1>

<p>Foundation provides <a href="https://foundation.zurb.com/sites/docs/typography-helpers.html">a series of typography helpers</a> that may be useful when laying out content. These include helpers for alignment, sizing, and number formatting.</p>

{% highlight html %}{% include styleguide/typography-example.html %}{% endhighlight %}

<div class="ss-code-live">
{% include styleguide/typography-example.html %}
</div>
24 changes: 24 additions & 0 deletions _includes/styleguide/typography-example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<h1>Heading Level 1</h1>
<h1>Heading Level 2</h1>
<h1>Heading Level 3</h1>
<h1>Heading Level 4</h1>
<h1>Heading Level 5</h1>
<h1>Heading Level 6</h1>

<p>DjangoCon US has something for everyone, from the person who develops Django applications for a <strong>living to the person</strong> who just tinkers in their spare time. You'll discover details about a range of diverse applications that people from all over the world are <em>building with Django</em>, get a deeper understanding of concepts you’re already familiar with and discover new ways to use them, and have a lot of fun!</p>

<p class="lead">DjangoCon US has something for everyone, from the person who develops Django applications for a <strong>living to the person</strong> who just tinkers in their spare time. You'll discover details about a range of diverse applications that people from all over the world are <em>building with Django</em>, get a deeper understanding of concepts you’re already familiar with and discover new ways to use them, and have a lot of fun!</p>

<ul>
<li>Unordered List item 1</li>
<li>Unordered List item 2</li>
<li>Unordered List item 3</li>
<li>Unordered List item 4</li>
</ul>

<ol>
<li>Ordered List item 1</li>
<li>Ordered List item 2</li>
<li>Ordered List item 3</li>
<li>Ordered List item 4</li>
</ol>
Loading