File tree Expand file tree Collapse file tree 6 files changed +65
-13
lines changed Expand file tree Collapse file tree 6 files changed +65
-13
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,24 @@ title: Joy of Rails
3
3
---
4
4
5
5
<% articles = Page.all.published.order(published_at: :desc) %>
6
- <section style =" min-height: 51vh " >
7
- < div class ="main-content container py-gap lg:py-3xl ">
8
- <% articles . take ( 3 ) . zip ( %w[ left right ] . cycle ) . each do | ( page , side ) | %>
9
- <%= render Pages :: Summary . from_page ( page , side : side ) % >
6
+ <%= render Pages::Header::Container.new do |c| % >
7
+ <div class ="hero ">
8
+ <%= c . title do %>
9
+ Experience the < br > < span class =" text-gradient " > Joy of Ruby on Rails </ span >
10
10
<% end %>
11
-
12
- < h3 class =" mt-16 " > More articles </ h3 >
13
- <%= render Pages :: List . new ( articles . drop ( 3 ) . take ( 6 ) ) % >
11
+ < p >
12
+ Interactive lessons to learn the framework that will make you fall in love with building web apps all over again 💜
13
+ </ p >
14
14
</ div >
15
- </ section >
15
+ <% end %>
16
+ < div class ="main-content container py-gap lg:py-3xl ">
17
+ <% articles . take ( 3 ) . zip ( %w[ left right ] . cycle ) . each do |( page , side ) | %>
18
+ <%= render Pages ::Summary . from_page ( page , side : side ) %>
19
+ <% end %>
20
+
21
+ < h3 class ="mt-16 "> More articles</ h3 >
22
+ <%= render Pages ::List . new ( articles . drop ( 3 ) . take ( 6 ) ) %>
23
+ </ div >
16
24
< section >
17
25
<%= render "users/newsletter_subscriptions/banner" %>
18
26
</ section >
Original file line number Diff line number Diff line change 8
8
& h6 {
9
9
color : var (--joy-text-heading );
10
10
margin-block-start : var (--space-xl );
11
+
12
+ & : first-child {
13
+ margin-block-start : 0 ;
14
+ }
11
15
}
12
16
13
17
& hr {
Original file line number Diff line number Diff line change 1
1
.page-header {
2
+ --gradient-from : rgb (86 55 251 / 85% );
3
+ --gradient-from : var (--joy-text-theme );
4
+ --gradient-to : rgb (255 0 0 / 85% );
5
+ --gradient-stops : var (--gradient-from ), var (--gradient-to );
6
+
2
7
background-color : var (--joy-background-header );
3
8
padding-block-start : var (--grid-gutter );
4
9
padding-block-end : var (--grid-gutter );
10
+
11
+ & .text-gradient {
12
+ color : var (--gradient-from );
13
+ }
14
+
15
+ & .hero {
16
+ max-width : 718px ;
17
+
18
+ & h1 {
19
+ font-family : var (--sans-serif-thick );
20
+ font-weight : normal;
21
+ font-size : var (--step-5 );
22
+ }
23
+
24
+ & p {
25
+ text-wrap : balance;
26
+ font-size : var (--step-1 );
27
+ font-weight : 300 ;
28
+ }
29
+ }
5
30
}
6
31
7
32
.extend-page-header-bg {
8
33
background-color : var (--joy-background-header );
9
34
}
35
+
36
+ @supports (background-clip : text) or (-webkit-background-clip : text) {
37
+ .page-header {
38
+ & .text-gradient {
39
+ background-clip : text;
40
+ -webkit-text-fill-color : rgba (0 , 0 , 0 , 0 );
41
+ background-image : linear-gradient (to right, var (--gradient-stops ));
42
+ }
43
+ }
44
+ }
Original file line number Diff line number Diff line change 123
123
--joy-text-subtle : var (--color-stone-700 );
124
124
--joy-text-heading : var (--joy-color-200 );
125
125
--joy-text-emphasis : var (--joy-color-500 );
126
- --joy-text-theme : var (--joy-text );
126
+ --joy-text-theme : var (--joy-color-500 );
127
127
128
128
--joy-link-primary : var (--joy-link-4 );
129
129
--joy-link-visited : var (--joy-link-3 );
Original file line number Diff line number Diff line change @@ -1139,3 +1139,8 @@ focus\:ring-0:focus {
1139
1139
.list-decimal {
1140
1140
list-style-type : decimal;
1141
1141
}
1142
+
1143
+ .bg-clip-text {
1144
+ -webkit-background-clip : text;
1145
+ background-clip : text;
1146
+ }
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def view_template(&)
26
26
end
27
27
end
28
28
29
- def title ( &)
30
- h1 ( class : "mb-4" , &)
29
+ def title ( ** attributes , &)
30
+ h1 ( ** mix ( attributes , class : "mb-4" ) , &)
31
31
end
32
32
33
- def description ( &)
34
- p ( class : "description" , &)
33
+ def description ( ** attributes , &)
34
+ p ( ** mix ( attributes , class : "description" ) , &)
35
35
end
36
36
37
37
def actions ( &)
You can’t perform that action at this time.
0 commit comments