Skip to content

Commit

Permalink
more content and stuff this is a terrible commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrignell committed Jun 16, 2017
1 parent 8c194df commit e6aa925
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 11 deletions.
4 changes: 3 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
{% endif %}
{% endfor %}
</nav>

{% if page.layout == "home" %}
<h1 style="font-size: 6em">Design Principles</h1>
{% endif %}
</div>

</header>
8 changes: 6 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

{% include head.html %}

<body>
<body class="home">

{% include header.html %}
<div class="page-content">
<div class="wrapper">
<header class="post-header">
<h1 class="post-title">{{ site.title }}</h1>
<h2>Recommended</h2>
</header>
{{ content }}
<div class="grid">
Expand All @@ -28,6 +28,10 @@ <h2><a href="{{example.link}}">{{example.title}}</a></h2>
Add your own
</div>
</div>
{% for post in site.example %}
{% capture post_count %} {{ post_count | plus: 1 }} {% endcapture %}
{% endfor %}
<p><a href="#">See all {{ post_count }} examples</a></p>
</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ body{
color: $text_color;
font-size: 16px;
line-height: 1.5;
font-family: $body-font;
}

.wrapper:before,
Expand Down
27 changes: 24 additions & 3 deletions _sass/_scratch.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
// Scratch styles
// ---------------------------------------/
body, html {
height: 100%;
}
body {background: $primary;}

a {text-decoration-skip: ink;}

body {background: #efefef;}
.site-header {
.site-title {
width: 80px;
height: 80px;
display: block;
background: black;
margin: 2em 0 1em 0;
color: white;
text-align: center;
}
.site-nav {
font-size: 2em;
}
body.home header.site-header {
background: yellow;
height: 100%;
}
div.grid {
display: grid;
Expand All @@ -14,10 +32,13 @@ div.grid {
.grid > div {
// border: 1px solid #3bc9db;
// display: flex; // not sure why this was here
background: #fff;
background: $white;
padding: 0.4em 1em;
// border-radius: 0.4em;
}
div.page-content {
background: $background;
}

ol.cards {
margin-left: -2.4em;
Expand Down
12 changes: 11 additions & 1 deletion _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ $max-width: 68em;
// Colors
$white: #fff;
$black: #333;
$primary: yellow;

$background: #ccc;

// Styles
$text_color: $black;

@font-face {
font-family: system;
font-style: normal;
font-weight: 300;
src: local(".SFNSText-Light"), local(".HelveticaNeueDeskInterface-Light"), local(".LucidaGrandeUI"), local("Ubuntu Light"), local("Segoe UI Light"), local("Roboto-Light"), local("DroidSans"), local("Tahoma");
}
// Font stack
$body-font: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol" !default;
$body-font: "system", sans-serif;


// The base body size
$body-font-size: 1em !default;
Expand Down
4 changes: 3 additions & 1 deletion about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
layout: page
title: About
---
About this stuff
principles.design is an open source resource designed to help you understand and create Design Principles.

It is managed by [Ben Brignell](https://twitter.com/benbrignell) and a [bunch of lovely contributors on GitHub](https://github.com/benbrignell/design-principles/graphs/contributors).
5 changes: 3 additions & 2 deletions css/main.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
---
// temporary styles while I figure out design ideas
@import "scratch";


// "Reset" styles and SCSS reusable components
@import "normalize";
Expand All @@ -14,3 +13,5 @@

// Layouts
@import "home";
// temporary styles while I figure out design ideas
@import "scratch";
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
layout: home
---
This is a site that will help you do stuff

0 comments on commit e6aa925

Please sign in to comment.