Skip to content

Commit a296d8c

Browse files
committed
Update session 4
1 parent 1549ad4 commit a296d8c

13 files changed

+161
-365
lines changed

_sessions/c1s2/2_css.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ h3 {
4747
Note that you can specify multiple properties on one element. When you do this it's nice to lay them out on multiple lines as done above.
4848

4949
{% exercise %}
50-
2. Open `exercise1.html` in Sublime Text and in Chrome.
51-
3. Add some css in the `head` to make the `h1` turn red.
52-
5. Continue with the exercise until `exercise1.html` looks like `exercise1_solution.png`.
50+
<ol>
51+
<li>Open `exercise1.html` in Sublime Text and in Chrome.</li>
52+
<li>Add some css in the `head` to make the `h1` turn red.</li>
53+
<li>Continue with the exercise until `exercise1.html` looks like `exercise1_solution.png`.</li>
54+
</ol>
5355
{% endexercise %}

_sessions/c1s2/6_homework.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ title: Homework
66

77
{% exercise %}
88
Finish off both CSS exercises from class. Check your solutions online:
9-
* Find the HTML2 repository on Code61's github page.
10-
* In the `branch` dropdown (just above the list of files) select the `solution` branch.
11-
* Click on the files below to see the solution
9+
<ul>
10+
<li>Find the HTML2 repository on Code61's github page.</li>
11+
<li>In the `branch` dropdown (just above the list of files) select the `solution` branch.</li>
12+
<li>Click on the files below to see the solution</li>
13+
</ul>
1214
{% endexercise %}
1315

1416
### More HTML/CSS
1517

1618
{% exercise %}
17-
1. Complete the whole of Project 3 on the [General Assembly Dash](https://dash.generalassemb.ly/projects) site.
18-
2. Make some changes to your `first_site` based on what you've learnt. Make sure you add them to git, push them to github and check you can see them online.
19-
3. (Optional) Do the projects from the [Codecademy Web Track](http://www.codecademy.com/tracks/web) Sections 7, 8 &amp; 9.
20-
4. (Optional) Read [this article](https://www.inkling.com/read/dreamweaver-cs6-missing-manual-david-sawyer-mcfarland-1st/chapter-4/understanding-links) about absolute vs. relative links.
19+
<ol>
20+
<li>Complete the whole of Project 3 on the [General Assembly Dash](https://dash.generalassemb.ly/projects) site.</li>
21+
<li>Make some changes to your `first_site` based on what you've learnt. Make sure you add them to git, push them to github and check you can see them online.</li>
22+
<li>(Optional) Do the projects from the [Codecademy Web Track](http://www.codecademy.com/tracks/web) Sections 7, 8 &amp; 9.</li>
23+
<li>(Optional) Read [this article](https://www.inkling.com/read/dreamweaver-cs6-missing-manual-david-sawyer-mcfarland-1st/chapter-4/understanding-links) about absolute vs. relative links.</li>
24+
</ol>
2125
{% endexercise %}
2226

2327

_sessions/c1s3/0_recap.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: Recap from last time
3+
---
4+
5+
### Before you start: updating gitgit
6+
7+
There have been some updates and improvements to gitgit! To get these
8+
improvements open the command line and run:
9+
10+
gem update gitgit
11+
12+
To check it worked run
13+
14+
gitgit version
15+
16+
it should say '0.0.5' (or higher).
17+
18+
### Before you start: verifying github email address
19+
20+
Today we're going to be putting up your first site using [GitHub
21+
Pages](https://pages.github.com/) - a free hosting solution provided by
22+
GitHub.
23+
24+
In order for this to work you need to have **verified your email address
25+
with GitHub**.
26+
27+
{% exercise %}
28+
<ol>
29+
<li>Log into GitHub.</li>
30+
<li>If you see a warning at the top that you haven't verified your
31+
email address, follow the instructions to do that now.</li>
32+
<li>If not, you're good to go!</li>
33+
</ol>
34+
{% endexercise %}
35+
36+
### Review exercise
37+
38+
{% exercise %}
39+
<ol>
40+
<li>Open the comand line</li>
41+
<li>Navigate to your 'first_site' folder (cd/ls)</li>
42+
<li>Open 'first_site/index.html' in Sublime Text</li>
43+
<li>Make a change to the file</li>
44+
<li>Save the changes and push to github ("gitgit save", "gitgit
45+
push")</li>
46+
<li>Log into github and check you can see your changes</li>
47+
</ol>
48+
49+
{% endexercise %}
50+
51+
### Something new: publishing site using GitHub pages
52+
53+
You're now going to publish your 'first_site' using [GitHub Pages](https://pages.github.com/).
54+
55+
To do this you need to push your website up to a branch called
56+
'gh-pages'. You don't know about branches yet, but you can see them on
57+
github. Right now you'll just see a single branch called 'master'.
58+
59+
You don't actually need to understand anything about branches at the
60+
moment, as gitgit makes it really easy to publish as a github page. Just
61+
run
62+
63+
gitgit publish
64+
65+
When you go to github you should now see a 'gh-pages' option in the
66+
branches dropdown.
67+
68+
The 'gh-pages' branch is a signal to github that you want your code to
69+
be deployed as a website. You can find the url of your website by
70+
looking in your repository settings on GitHub.

_sessions/c1s3/2_twitter_bootstrap.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ The aim of the rest of this session will be to create the website for ["Sam's Sa
7171

7272
<ol markdown="1">
7373
<li markdown="1">
74-
Clone down the repository for the bootstrap exercise: [https://github.com/code61/bootstrap_exercise.git](https://github.com/code61/bootstrap_exercise.git)
74+
Clone down the repository for the [bootstrap exercise](https://github.com/code61/bootstrap_exercise.git) **into your coding_course folder**:
75+
76+
git clone https://github.com/code61/bootstrap_exercise.git
77+
7578
</li>
7679
<li markdown="1">
7780
Open `bootstrap_exercise/index.html` in your browser.
@@ -106,4 +109,4 @@ Add the following line to the `head` section:
106109
as suggested in the `CSS / Overview` section of the [Bootstrap docs](http://getbootstrap.com/css/#overview-mobile).
107110
</li>
108111
</ol>
109-
{% endexercise %}
112+
{% endexercise %}

_sessions/c1s3/6_homework.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ Finish off the bootstrap_exercise from class
1414
Continue work on your personal site. You might want to think about using Twitter Bootstrap!
1515
{% endexercise %}
1616

17-
### Get a Google Account
18-
19-
{% exercise %}
20-
If you don't already have a google account (e.g. via a gmail address), you need to sign up for one: [https://accounts.google.com/SignUp](https://accounts.google.com/SignUp). You'll need it in class next week!
21-
{% endexercise %}
22-
2317
### Further reading on CSS
2418

2519
{% exercise %}
2620
1. (Optional) Read [this article](http://coding.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/) which explains about CSS Specificity (and more).
2721
2. (Optional) Read [this article](http://css-tricks.com/attribute-selectors/) on CSS selectors.
28-
{% endexercise %}
22+
{% endexercise %}

_sessions/c1s4/1_recap.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Recap
3+
---
4+
5+
{% exercise %}
6+
1. Open the command line.
7+
2. Navigate to your `first_site` folder.
8+
3. Make a change to index.html.
9+
4. Save the change.
10+
5. Push it to github.
11+
6. Deploy it to github pages.
12+
{% endexercise %}
13+
14+
### CSS
15+
16+
We're now going to add a separate CSS file to your first_site. (If you
17+
already have one, that's fine - just add another one.)
18+
19+
{% exercise %}
20+
1. Create a new file in sublime text and save it as `main.css` in your
21+
first_site folder.
22+
2. Put a CSS rule in that file (e.g. 'h1 {color: red}')
23+
3. Put a link to the file from the head section of your index.html file.
24+
4. Make sure you can see the style when you open index.html in chrome.
25+
5. Save, push and deploy your changes.
26+
{% endexercise %}

_sessions/c1s4/2_domain_name.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Wiring up your domain
3+
---
4+
5+
### Getting your domain name to point to your GitHub Page
6+
7+
The point of this exercise is to set up your domain name to point towards your new GitHub pages site.
8+
9+
As GitHub hosts many different pages at their IP address, it isn't quite as simple as pointing your domain address towards that IP address. There are two things you need to do to get your domain name working with your GitHub pages site:
10+
11+
1. Tell your domain registrar (e.g 123-reg or godaddy) to point your domain name towards GitHub's IP address.
12+
2. Tell GitHub that requests to your domain name should come to your site.
13+
14+
Github explains this [here](https://help.github.com/articles/setting-up-a-custom-domain-with-pages).
15+
16+
### Pointing your domain name towards GitHub
17+
18+
For the first bit you need to log in to your domain registrar and change the DNS settings. You want an *A-record* pointing to `204.232.175.78` (which is github.com). Note that it can take up to a couple of days for DNS changes to propagate.
19+
20+
If you're using 123-reg, your should log in, select your domain from the list, and click "Manage". You should then go to "Manage DNS".
21+
22+
![123-reg DNS Settings](/assets/dns_settings.png)
23+
24+
(The @ dns entry stands for the root or bare domain.)
25+
26+
{% exercise %}
27+
Log in to your domain registrar and set an A-record to point towards GitHub.
28+
{% endexercise %}
29+
30+
Your changes won't take effect immediately.
31+
32+
### Tell github to expect requests for your domain name
33+
34+
{% exercise %}
35+
1. Open Sublime Text and create a new file.
36+
2. Write your domain name on the first line of the new file e.g:
37+
38+
mydomain.com
39+
40+
3. Save that file as `CNAME` (uppercase, with no extension) in your `first_site` folder
41+
4. Commit your change and then push to github.
42+
{% endexercise %}

_sessions/c1s4/2_forms.md

-43
This file was deleted.

_sessions/c1s4/3_form_submissions.md

-93
This file was deleted.

0 commit comments

Comments
 (0)