Skip to content

Commit f1b0ec0

Browse files
committed
Last few bits on c3s2
1 parent 0107300 commit f1b0ec0

File tree

6 files changed

+59
-71
lines changed

6 files changed

+59
-71
lines changed

_sessions/c3s2/3_deploying.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ After you push, heroku automatically updates the app and launches it for you. Yo
9999

100100
{% exercise %}
101101
Deploy your `sinatra_c3s2` app to Heroku:
102+
102103
1. Install your bundle to get a `Gemfile.lock`. In your `sintara_c3s2` directory run:
103104

104105
$ bundle install

_sessions/c3s2/6_truthy_falsey.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ x #=> 1
3232

3333
In the above block of code, as `5` is truthy, the variable `x` is set to `1`.
3434

35+
{% exercise %}
36+
Change your sinatra app into something more interesting:
37+
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.
42+
43+
{% endexercise %}

_sessions/c3s2/7_homework.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Homework
3+
---
4+
5+
{% exercise %}
6+
1. Finish the final exercise from class. Make your Sinatra app into something you can show people!
7+
2. Do the [Codecademy Ruby track](http://www.codecademy.com/tracks/ruby) Sections 3 and 4.
8+
{% endexercise %}

_sessions/c3s2/8_more_conditionals.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

_sessions/c3s2/9_project.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

css/main.css

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,44 @@ span.big {
4040
line-height: 40px;
4141
padding-left: 3px;
4242
padding-top: 10px;
43-
}
43+
}
44+
45+
46+
47+
.panel {
48+
margin-bottom: 20px;
49+
background-color: #fff;
50+
border: 1px solid transparent;
51+
border-radius: 4px;
52+
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.05);
53+
box-shadow: 0 1px 1px rgba(0,0,0,0.05);
54+
}
55+
56+
.panel-heading {
57+
padding: 10px 15px;
58+
border-bottom: 1px solid transparent;
59+
border-top-right-radius: 3px;
60+
border-top-left-radius: 3px;
61+
}
62+
63+
.panel-title {
64+
margin-top: 0;
65+
margin-bottom: 0;
66+
font-size: 16px;
67+
color: inherit;
68+
}
69+
70+
.panel-body {
71+
padding: 15px;
72+
}
73+
74+
.panel-primary {
75+
border-color: #428bca;
76+
}
77+
78+
79+
.panel-primary>.panel-heading {
80+
color: #fff;
81+
background-color: #428bca;
82+
border-color: #428bca;
83+
}

0 commit comments

Comments
 (0)