Skip to content

Commit 2705335

Browse files
committed
Updates to sessions c1s3, c1s4 and add ladies night to c3s2
1 parent 08328c7 commit 2705335

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

_sessions/c1s3/1_why_is_css_hard.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: What's hard about CSS?
44

55
You've seen quite a bit of CSS now; it all seems quite straightforward - you write some css, tweak it 'til it looks good and you're done! In theory this is exactly how CSS works and is why CSS is brilliant.
66

7+
<br>
78
<div style="display: block;margin-left: auto; margin-right: auto; width: 200px;">
89
<img src="/assets/cat_pic.jpg" class='img-polaroid' width='200px'>
910
</div>
11+
<br>
1012

1113
Unfortunately, the realities are not quite so straightforward. Different browsers will render CSS with subtle differences. Take a look at the cat picture above. The styling is relatively simple - all we've done is add a border and a shadow. The following CSS will probably do this in your browser:
1214

_sessions/c1s4/2_google_analytics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Google Analytics
33
---
44

5-
Google Analytics is an analytics service provided for free by Google. It allows you get an overview of how many people are visiting your site, where they come from, what they do, and much more.
5+
Google Analytics is an analytics service provided for free by Google. It allows you get an overview of how many people are visiting your site, where they come from, what they do on your site, and much more.
66

77
### Google Analytics vs. Mixpanel/Kissmetrics
88

_sessions/c1s4/5_homework.md

-10
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,3 @@ title: Homework
77
{% exercise %}
88
Add a form to collect the email address of people who visit your personal site. It should submit to a google form, which should then send you an email to let you know someone sent you their email address.
99
{% endexercise %}
10-
11-
### Start on the landing page project
12-
13-
For the final few weeks of the course you will be working on teams to design a landing page.
14-
15-
{% exercise %}
16-
1. Form teams of 2-3 to work together.
17-
2. Read [The Brief](/ocl_project), which directs you to build a landing page for the coding course. If you have a different idea that you'd rather work on, that's fine - it just needs to be a landing page for something integrated with a form to collect people's details.
18-
3. Make a start on your HTML, CSS and site copy. You'll have the next two homeworks to work on this, but the more you get done now the better!
19-
{% endexercise %}

_sessions/c3s2/6_truthy_falsey.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ x #=> 1
3333
In the above block of code, as `5` is truthy, the variable `x` is set to `1`.
3434

3535
{% exercise %}
36-
Change your sinatra app into something more interesting:
36+
The bar is trialling a new initiative: Tuesdays is ladies night at the pub - no men allowed and all drinks are 2-4-1! They want you to update Bouncer 2.0 appropriately.
3737

38-
- Add more options to the form.
39-
- Make the logic in the views more complicated, so that you're using a few boolean operations.
40-
- Change your app into a horoscope provider/career adviser/which-star-wars-character-are-you machine.
41-
- Make it look nice, deploy it and show your friends.
38+
1. Add select boxes for sex and day on the form.
39+
2. Add new templates to be shown on ladies night to (a) turn away a customer if he is male (b) give them an extra drink if they are female.
40+
3. Add the required logic to `app.rb` to make it all work.
4241

4342
{% endexercise %}

_sessions/c3s2/7_homework.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ title: Homework
33
---
44

55
{% exercise %}
6-
1. Finish the final exercise from class. Make your Sinatra app into something you can show people!
6+
1. Finish the final exercise from class. Spend a bit of time trying to make the app look more presentable and 'bouncer-like'.
77
2. Do the [Codecademy Ruby track](http://www.codecademy.com/tracks/ruby) Sections 3 and 4.
8+
{% endexercise %}
9+
10+
11+
### Extension
12+
13+
{% exercise %}
14+
Change your sinatra app into something more interesting:
15+
16+
- Add more options to the form.
17+
- Make the logic in the views more complicated, so that you're using a few boolean operations.
18+
- Change your app into a horoscope provider/career adviser/which-star-wars-character-are-you machine.
19+
- Make it look nice, deploy it and show your friends.
820
{% endexercise %}

0 commit comments

Comments
 (0)