Skip to content

Commit 104d32d

Browse files
Small updates, added lunchtime exercise and presenter notes.
1 parent 4ba82de commit 104d32d

1 file changed

Lines changed: 49 additions & 38 deletions

File tree

index.html

Lines changed: 49 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,32 @@ <h2>Write some CSS</h2>
815815
```
816816
</section>
817817

818+
<section class="slide" data-markdown>
819+
##CSS colour values
820+
821+
**keywords** - use the actual name for most basic colours (red, green, blue, pink, etc) as well as a few fancy ones like "papayaWhip" and "paleGoldenrod".
822+
823+
**RGB (red-green-blue)** - Uses *three* numerical values from 0-255. 0 represents black, 255 represents white. See below for syntax.
824+
825+
**hex code** - Made up of the number sign (`#`) followed by six hexadecimal characters (0-9, A-F).
826+
827+
```
828+
/* These are all the same colour */
829+
p {
830+
background: firebrick;
831+
background: #B22222;
832+
background: rgb(178,34,34);
833+
}
834+
```
835+
836+
**Colour resources:**
837+
http://colours.neilorangepeel.com
838+
http://www.colorpicker.com
839+
http://www.colourlovers.com
840+
http://flatuicolors.com
841+
http://color.hailpixel.com
842+
</section>
843+
818844
<section class="slide title" data-markdown>
819845
#CSS & TYPOGRAPHY
820846
</section>
@@ -849,33 +875,6 @@ <h2>Write some CSS</h2>
849875

850876
That's it!
851877
</section>
852-
853-
<section class="slide" data-markdown>
854-
##CSS colour values
855-
856-
**keywords** - use the actual name for most basic colours (red, green, blue, pink, etc) as well as a few fancy ones like "papayaWhip" and "paleGoldenrod".
857-
858-
**RGB (red-green-blue)** - Uses *three* numerical values from 0-255. 0 represents black, 255 represents white. See below for syntax.
859-
860-
**hex code** - Made up of the number sign (`#`) followed by six hexadecimal characters (0-9, A-F).
861-
862-
```
863-
/* These are all the same colour */
864-
p {
865-
background: firebrick;
866-
background: #B22222;
867-
background: rgb(178,34,34);
868-
}
869-
```
870-
871-
**Colour resources:**
872-
http://colours.neilorangepeel.com
873-
http://www.colorpicker.com
874-
http://www.colourlovers.com
875-
http://flatuicolors.com
876-
http://color.hailpixel.com
877-
</section>
878-
879878

880879
<section class="slide">
881880
<h2>CSS Font Styles</h2>
@@ -933,42 +932,54 @@ <h2>CSS Font Styles</h2>
933932

934933
In the above example, the CSS properties in the body selector is inherited by the children and descendants so all the text would be blue and display the Helvetica font. However, when a more specific selector is used (`h1`), it overrides the inherited values because it's more *specific*.
935934
</section>
936-
935+
936+
<section class="slide">
937+
<h2>Lunchtime exercise!</h2>
938+
939+
<p>Picking fonts is hard. Prepare for the post-lunch exercise by picking 2-3 fonts from <a href="https://www.google.com/fonts">Google Fonts</a> for the body text, header and highlighted text. Here’s a <a href="/project/final/">the final project</a> for reference.</p>
940+
941+
<p>Need some help? Try Source Sans Pro, Quicksand, Merriweather or Codystar. The example project uses Open Sans (light), Nixie One and Pacifico.</p>
942+
943+
<p>Here’s some inspiration: <a href="http://hellohappy.org/beautiful-web-type/">http://hellohappy.org/beautiful-web-type/</a></p>
944+
945+
<p>Feel free to peek at the next exercise ;)</p>
946+
947+
<div class="presenter-notes">
948+
<p>Aim to get to lunch by 12:30-1:00pm. A 45min lunch is recommended. Let the learners know this is optional but most people tend to enjoy continuing with a bit of exercises over the break and this will help speed up the next exercise.</p>
949+
</div>
950+
</section>
937951
<section class="slide">
938952
<h2>Exercise #4 - Typography (20 MINS)</h2>
939953
<ol>
940954
<li>
941-
<p>Practice using <a href="https://www.google.com/fonts">Google Fonts</a>. Find 2-3 fonts to be used for the body text, header and highlighted text.</p>
942-
943-
<p>Picking fonts is hard. Need some help? Try Source Sans Pro, Quicksand, Merriweather or Codystar. The example project uses Open Sans (light), Nixie One and Pacifico.</p>
955+
Pick 3 fonts from <a href="https://www.google.com/fonts">Google Fonts</a>.
944956
</li>
945957
<li>
946-
<p>Add the Google font stylesheet to the of all three documents so the font files will load and can be accessed. Put it before your CSS file.</p>
958+
Add the Google font stylesheet to the of all three documents so the font files will load and can be accessed. Put it before your CSS file.
959+
947960
<pre><code>&lt;title&gt;Jane Smith | About Me&lt;/title&gt;
948961
&lt;link href='http://fonts.googleapis.com/css?family=Nixie+One|Open+Sans:300|Pacifico' rel='stylesheet' type='text/css'&gt;
949962
&lt;link rel="stylesheet" href="css/styles.css"&gt;
950963
</code></pre>
951964
</li>
952965
<li>
953-
<p>In the sample project, most of site uses the same font and color except for the h1 and a couple of accented blocks of text. Add the main font styles using the body selector.</p>
966+
In the sample project, most of site uses the same font and color except for the <code>h1</code> and a couple of accented blocks of text. Add the main font styles using the body selector.
954967
<pre><code>body {
955968
font-family: "Open Sans", sans-serif;
956969
color: #333;
957970
}
958971
</code></pre>
959-
<p>Remember the family tree? Since body is the ancestor of all the elements nested within, these styles are inherited by the child &amp; descendant elements.</p>
972+
Remember the family tree? Since <code>body</code> is the ancestor of all the elements nested within, these styles are inherited by the child &amp; descendant elements.
960973
</li>
961974
<li>
962-
<p>Let’s make the main heading (your name) a different font to set it apart from the rest of the headings. Since this style is going to be applied only to the main heading, use h1 as the selector.</p>
963-
975+
<p>Let’s make the main heading (your name) a different font to set it apart from the rest of the headings. Since this style is going to be applied only to the main heading, use <code>h1</code> as the selector.</p>
964976
<pre><code>h1 {
965977
font-family: "Nixie One", serif;
966978
}
967979
</code></pre>
968980
</li>
969981
<li>
970-
<p>Both h1 and h2 share similar styles. They both are styled with uppercase letters and don’t use the default bold styles of headings. When multiple elements share the same styles, we can combine selectors to apply the styles in one declaration block. Combine selectors by separating them with a comma.</p>
971-
982+
Both <code>h1</code> and <code>h2</code> share similar styles. They both have uppercase letters and don’t use the default bold styles of headings. When multiple elements share the same styles, we can <strong>combine selectors</strong> to apply the styles in one declaration block. Combine selectors by separating them with a comma.
972983
<pre><code>h1, h2 {
973984
font-weight: 300;
974985
text-transform: uppercase;

0 commit comments

Comments
 (0)