Skip to content

Commit 405b315

Browse files
committed
Add text About us and it's (not) for you
1 parent 51914d5 commit 405b315

File tree

1 file changed

+70
-7
lines changed

1 file changed

+70
-7
lines changed

app/views/pages/home.html.erb

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
How your Ruby knowledge helps you to mastering ES6
1515
</li>
1616
<li>
17-
How to use tools like sandboxing, dev tools and make it work in Rails
17+
How to use JavaScript specific tools and apply them to Rails
1818
</li>
1919

2020
</ul>
@@ -30,9 +30,10 @@
3030
<% end %>
3131
<% content_for :bonus do %>
3232
<ul>
33-
<li>The 10 Conventions for writing Clean JavaScript Code</li>
33+
<li>The 10 Conventions for writing Clean JavaScript Code, hand picked for Rails developers</li>
3434
<li>Cheatsheet ES6 for Ruby/Rails developers</li>
3535
<li>Checklist for importing JavaScript libraries in webpacker</li>
36+
<li>Javascript Code Sandbox Template for Rails work </li>
3637
</ul>
3738
<% end %>
3839
<% content_for :amsrb do %>
@@ -46,6 +47,35 @@
4647
If you can't afford to spent money, please please join us anyway.
4748
<% end %>
4849

50+
<% content_for :foryou do %>
51+
<div class="card-title">This course is for you if:</div>
52+
<div class="card-text">
53+
<ul>
54+
<li>
55+
You seek to be more confident about working with JavaScript code in your Rails app
56+
</li>
57+
<li>
58+
You are more comfortable in Rails than in JavaScript
59+
</li>
60+
<li>
61+
</li>
62+
</ul>
63+
</div>
64+
<% end %>
65+
66+
<% content_for :notforyou do %>
67+
This course is not for you if:
68+
<ul>
69+
<li>
70+
You know exactly what you're doing and why re: JavaScript in your Rails app
71+
</li>
72+
<li>
73+
You are looking for the next course: how to refactor JavaScript files into independent components (this will be a follow up course)
74+
</li>
75+
<li> </li>
76+
</ul>
77+
<% end %>
78+
4979
<section class="triangle">
5080
<div>
5181
<div class="hero-txt">
@@ -62,7 +92,7 @@
6292

6393
<section class="text-container">
6494
<div class="cards">
65-
<div class="card">
95+
<div class="card" id="course-content">
6696

6797
<div class="card-header">
6898
<!-- <div><%#= image_tag("learn-icon", size: 32, alt: "icon") %></div>-->
@@ -72,25 +102,25 @@
72102
<%= yield :learn %>
73103
</div>
74104
</div>
75-
<div class="card">
105+
<div class="card" id="goals">
76106
<div class="card-title course-appetite">What it means for your Rails app</div>
77107
<div class="card-text">
78108
<%= yield :harvest %>
79109
</div>
80110
</div>
81-
<div class="card">
111+
<div class="card" id="bonus">
82112
<div class="card-title course-appetite">Bonus Content</div>
83113
<div class="card-text">
84114
<%= yield :bonus %>
85115
</div>
86116
</div>
87-
<div class="card">
117+
<div class="card" id="amsrb">
88118
<div class="card-title course-around">Ams ruby workshop</div>
89119
<div class="card-text">
90120
<%= yield :amsrb %>
91121
</div>
92122
</div>
93-
<div class="card">
123+
<div class="card" id="pricing">
94124
<div class="card-title course-around">Corona Pricing</div>
95125
<div class="card-text">
96126
<%= yield :pricing %>
@@ -101,6 +131,39 @@
101131
<div style="color: orange">enroll now
102132
</div>
103133
</div>
134+
<div class="card">
135+
<div>
136+
<%= yield :foryou %>
137+
</div>
138+
</div>
139+
<div class="card">
140+
<div>
141+
<%= yield :notforyou %>
142+
</div>
143+
</div>
144+
<div class="card">
145+
<div>
146+
<%= yield :courseparts %>
147+
</div>
148+
</div>
149+
</div> <!--end cards grid-->
150+
</section>
151+
152+
<section>
153+
<div id="aboutus">
154+
155+
<div class="card-text">
156+
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.
157+
When I showed him a piece of my JavaScript in Rails code, and I started refactoring according to his opinions, I finally started to see
158+
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."
159+
DJ about Maud:
160+
</div>
161+
</div> <!--end cards grid-->
162+
</section>
163+
164+
<section>
165+
<div class="cards">
166+
<div class="card" id="aboutus">Nice blablabla about us</div>
104167
</div>
105168
</section>
106169

0 commit comments

Comments
 (0)