Skip to content

Commit 3c761c5

Browse files
committed
Add content for the home page cards
1 parent 4136582 commit 3c761c5

File tree

3 files changed

+62
-12
lines changed

3 files changed

+62
-12
lines changed

app/assets/stylesheets/global.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ $DJSdark-text: darkslategrey;
1313
padding: 0;
1414
//don't do this, it will break the frontpage
1515
//background-color: $DJSwhite;
16-
list-style: none;
17-
1816
}
1917

2018
a {
@@ -24,3 +22,10 @@ a {
2422
}
2523
}
2624

25+
//ul {
26+
// list-style: none;
27+
//}
28+
////let screenreaders know there is a list, to fix list style none
29+
//ul li::before {
30+
// content: "\200B";
31+
//}

app/assets/stylesheets/home.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ hr.separator-line {
126126
justify-content: flex-start;
127127
}
128128
.card-title {
129-
//padding-left: 15px;
129+
padding-left: 1em;
130130
}
131131
.course-appetite {
132132
color: $DJSacqua;
@@ -137,6 +137,21 @@ hr.separator-line {
137137

138138
.card-text {
139139
font-size: smaller;
140-
}
141-
140+
line-height: initial;
141+
padding: 1em;
142+
}
143+
144+
ul {
145+
list-style: outside "\2043"+" ";
146+
//list-style: none;
147+
}
148+
//ul li::before {
149+
// content: "\2043"; //flat streepje
150+
// color: $DJSsunshine;
151+
// font-weight: bold;
152+
// display: inline-block;
153+
// width: 1em;
154+
// margin-left: -1em;
155+
//}
156+
//
142157

app/views/pages/home.html.erb

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,49 @@
11
<!--Text contents for the cards-->
22
<% content_for :learn do %>
3-
You will learn a LOT!
3+
<ul>
4+
<li>
5+
How to refactor JavaScript into clean code
6+
</li>
7+
<li>
8+
The 10 conventions that speed up reading and writing JavaScript for Rails
9+
</li>
10+
<li>
11+
How to organise JavaScript files (and why Webpacker is good fun)
12+
</li>
13+
<li>
14+
How your Ruby knowledge helps you to mastering ES6
15+
</li>
16+
<li>
17+
How to use tools like sandboxing, dev tools and make it work in Rails
18+
</li>
19+
20+
</ul>
421
<% end %>
522
<% content_for :harvest do %>
6-
It will change a LOT!
23+
<ul>
24+
<li>DRY, re-usable JavaScript features</li>
25+
<li>Change-able, extendable, maintainable JavaScript (that your future self understands)</li>
26+
<li>Faster development</li>
27+
<li>Easy to reason about JavaScript, less cognitive complexity</li>
28+
<li>Well organised files (with Webpacker or the asset pipeline)</li>
29+
</ul>
730
<% end %>
831
<% content_for :bonus do %>
9-
ES6, webpacker and more
32+
<ul>
33+
<li>The 10 Conventions for writing Clean JavaScript Code</li>
34+
<li>Cheatsheet ES6 for Ruby/Rails developers</li>
35+
<li>Checklist for importing JavaScript libraries in webpacker</li>
36+
</ul>
1037
<% end %>
1138
<% content_for :amsrb do %>
12-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aperiam distinctio dolor esse exercitationem,
13-
facilis inventore ipsa.
39+
Due to the Corona lockdown, we cancelled our plans for a workshop for the Amsterdam Ruby community.
40+
Instead, we turned the workshop into a full featured online course. And to be honest: we think
41+
it's even better than the workshop :-) Happy accidents.
42+
1443
<% end %>
1544
<% content_for :pricing do %>
16-
Corona pricing: pay if you can, join if you want
45+
If you have a job and can afford to pay, we kindly ask you for a contribution of <span style="white-space: nowrap">€ 35.</span>
46+
If you can't afford to spent money, please please join us anyway.
1747
<% end %>
1848

1949
<section class="triangle">
@@ -63,7 +93,7 @@
6393
<div class="card">
6494
<div class="card-title course-around">Corona Pricing</div>
6595
<div class="card-text">
66-
<%= yield :amsrb %>
96+
<%= yield :pricing %>
6797
</div>
6898

6999
</div>

0 commit comments

Comments
 (0)