You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+49-38Lines changed: 49 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -815,6 +815,32 @@ <h2>Write some CSS</h2>
815
815
```
816
816
</section>
817
817
818
+
<sectionclass="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
+
818
844
<sectionclass="slide title" data-markdown>
819
845
#CSS & TYPOGRAPHY
820
846
</section>
@@ -849,33 +875,6 @@ <h2>Write some CSS</h2>
849
875
850
876
That's it!
851
877
</section>
852
-
853
-
<sectionclass="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
-
879
878
880
879
<sectionclass="slide">
881
880
<h2>CSS Font Styles</h2>
@@ -933,42 +932,54 @@ <h2>CSS Font Styles</h2>
933
932
934
933
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*.
935
934
</section>
936
-
935
+
936
+
<sectionclass="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 <ahref="https://www.google.com/fonts">Google Fonts</a> for the body text, header and highlighted text. Here’s a <ahref="/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: <ahref="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
+
<divclass="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>
937
951
<sectionclass="slide">
938
952
<h2>Exercise #4 - Typography (20 MINS)</h2>
939
953
<ol>
940
954
<li>
941
-
<p>Practice using <ahref="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 <ahref="https://www.google.com/fonts">Google Fonts</a>.
944
956
</li>
945
957
<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
+
947
960
<pre><code><title>Jane Smith | About Me</title>
<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.
954
967
<pre><code>body {
955
968
font-family: "Open Sans", sans-serif;
956
969
color: #333;
957
970
}
958
971
</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 & 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 & descendant elements.
960
973
</li>
961
974
<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>
964
976
<pre><code>h1 {
965
977
font-family: "Nixie One", serif;
966
978
}
967
979
</code></pre>
968
980
</li>
969
981
<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.
0 commit comments