Skip to content

Commit 3576a96

Browse files
committed
Update more texts and links in navbar
1 parent 966809e commit 3576a96

File tree

4 files changed

+44
-23
lines changed

4 files changed

+44
-23
lines changed

app/assets/stylesheets/global.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ $DJSdark-text: darkslategrey;
1515
//background-color: $DJSwhite;
1616
}
1717

18+
1819
a {
1920
text-decoration: none;
2021
color: $DJSlavender;
2122
&:hover {
2223
color: $DJSsunshine;
2324
}
2425
}
26+
27+
h2 {
28+
color: $DJSlavender;
29+
}

app/assets/stylesheets/home.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ hr.separator-line {
124124
}
125125

126126
.card-text {
127-
font-size: smaller;
128127
line-height: initial;
129128
padding: 1em;
130129
}

app/views/layouts/_navbar.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class="logo">logo</div>
33
<nav>
44
<ul>
5-
<li><%=link_to "course content", root_path(anchor: "course-content") %></li>
6-
<li><%=link_to "goals", root_path(anchor: "goals") %></li>
5+
<li><%=link_to "About the Course", root_path(anchor: "course-content") %></li>
6+
<li><%=link_to "Is this for you?", root_path(anchor: "foryou") %></li>
77
<li><%=link_to "ams.rb workshop", root_path(anchor: "amsrb") %></li>
88
<li><%=link_to "About us", root_path(anchor: "aboutus") %></li>
99
</ul>

app/views/pages/home.html.erb

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
How to refactor JavaScript into clean code
66
</li>
77
<li>
8-
The 10 conventions that speed up reading and writing JavaScript for Rails
8+
The parts of JavaScript that are most useful for Rails developers
99
</li>
1010
<li>
11-
How to organise JavaScript files (and why Webpacker is good fun)
11+
How to organise JavaScript files (and what Webpacker has to do with it)
1212
</li>
1313
<li>
14-
How your Ruby knowledge helps you to mastering ES6
14+
How to leverage your Ruby knowledge to mastering ES6
1515
</li>
1616
<li>
1717
How to use JavaScript specific tools and apply them to Rails
@@ -37,7 +37,7 @@
3737
</ul>
3838
<% end %>
3939
<% content_for :amsrb do %>
40-
Due to the Corona lockdown, we cancelled our plans for a workshop for the Amsterdam Ruby community.
40+
The Corona lockdown counteracted the spring workshop for the Amsterdam Ruby community.
4141
Instead, we turned the workshop into a full featured online course. And to be honest: we think
4242
it's even better than the workshop :-) Collateral gains.
4343

@@ -52,35 +52,51 @@
5252
<div class="card-text">
5353
<ul>
5454
<li>
55-
You seek to be more confident about working with JavaScript code in your Rails app
55+
You seek to be more confident working with JavaScript code in your Rails app
5656
</li>
5757
<li>
58-
You are more comfortable in Rails than in JavaScript
58+
You are (far) more comfortable in Ruby and Rails than in JavaScript
5959
</li>
6060
<li>
61+
Learning a whole frontend framework is overkill and/or you're not a fan of Stimulus.
62+
</li>
63+
<li>
64+
You want to understand what Webpacker is all about, and how (not) to use it.
6165
</li>
6266
</ul>
6367
</div>
6468
<% end %>
6569

6670
<% content_for :notforyou do %>
67-
This course is not for you if:
71+
<div class="card-title">This course is not for you if:</div>
72+
<div class="card-text">
6873
<ul>
6974
<li>
70-
You know exactly what you're doing and why with regard to JavaScript in your Rails app
75+
You know exactly <em>what</em> you're doing and <em>why</em>, with regard to JavaScript in your Rails app
7176
</li>
7277
<li>
73-
You are looking for the next course: how to refactor JavaScript files into independent components (we are working on a follow up course, see ->)
78+
You are looking for the part DJ showed in his talk: how to refactor JavaScript into independent components. This will be addressed in Part 3, coming soon</li>
79+
</li>
80+
<li>
81+
You are (almost) as proficient in JavaScript as in Ruby
82+
</li>
83+
<li>
84+
You are looking for a starter course in Rails or JavaScript.
7485
</li>
75-
<li> </li>
7686
</ul>
87+
</div>
7788
<% end %>
7889

7990
<% content_for :courseparts do %>
80-
This is part 1 of 3.
81-
Part 1: JavaScript for interactive UI.
82-
Part 2: Exchanging data between Rails and JavaScript
83-
Part 3: Components
91+
The current course is the first in a series of 3.
92+
It lays the foundation for the following courses, by introducing the conventions maintainable, re-usable and testable JavaScript for Rails.
93+
The next courses build upon the conventions.
94+
95+
<ul>
96+
<li>Course 1: Clean JavaScript Code by following conventions.</li>
97+
<li>Course 2: Exchanging data between Rails and JavaScript</li>
98+
<li>Course 3: Components</li>
99+
</ul>
84100
<% end %>
85101

86102
<section class="triangle">
@@ -104,7 +120,7 @@
104120
And find that working with JavaScript in Rails apps can be fun after all.
105121
</div>
106122

107-
<h2 id="course-content">About the Course</h2>
123+
<h2 id="course-content" >About the Course</h2>
108124
<div class="cards">
109125
<div class="card">
110126

@@ -133,7 +149,7 @@
133149
<h2 id="amsrb">But what about the Ams.rb workshop?</h2>
134150
<div class="cards">
135151
<div class="card">
136-
<div class="card-title course-around">Ams ruby workshop</div>
152+
<!-- <div class="card-title course-around">Ams ruby workshop</div>-->
137153
<div class="card-text">
138154
<%= yield :amsrb %>
139155
</div>
@@ -154,7 +170,7 @@
154170
</div>
155171

156172

157-
<h2 id="foryou">This is for you...</h2>
173+
<h2 id="foryou" class="course-appetite">This is for you...</h2>
158174
<div class="cards">
159175
<div class="card">
160176
<div>
@@ -167,18 +183,19 @@
167183
</div>
168184
</div>
169185
</div>
186+
<div class="cards">
170187
<div class="card">
171-
<div>
188+
<div class="card-text">
172189
<%= yield :courseparts %>
173190
</div>
174191
</div>
175192
</div> <!--end cards grid-->
176193
</section>
177194

178-
<section>
195+
<section class="text-container">
179196
<div id="aboutus">
180197
<div class="intro">
181-
Maud about DJ: "I always wondered why DJ loved JavaScript so much. I know he loved Ruby, and <span class="accented">I didn't understand how one can love Ruby and JavaScript at the same time</span>.
198+
Maud about DJ: "I always wondered why DJ loved JavaScript so much. I know he loved Ruby, and I didn't understand how one can love Ruby and JavaScript at the same time.
182199
When I showed him a piece of my JavaScript in Rails code, and we started refactoring together, I finally started to see
183200
what JavaScript <em>could</em> be - but almost never is. I admire his ability to play with the differences between the languages. And it's good fun to work with him."
184201
</div>

0 commit comments

Comments
 (0)