Skip to content

Commit c22aae1

Browse files
committed
WIP Add button Enroll
1 parent f9c564f commit c22aae1

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

app/assets/stylesheets/home.scss

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ hr.separator-line {
9696
display: flex;
9797
flex-direction: column;
9898
// box shadow
99-
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
100-
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
101-
}
99+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
100+
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
102101

103-
.card:hover {
104-
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
102+
&:hover {
103+
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
104+
}
105105
}
106106

107107
// CARD content
@@ -138,7 +138,28 @@ ul {
138138
}
139139

140140
.accented {
141-
//color: $DJSacqua;
142141
color: $DJSsunshine;
143-
//font-weight: bold;
144142
}
143+
144+
$w: 33vw;
145+
$h: 8vh;
146+
147+
.btn-enroll {
148+
width: $w;
149+
height: $h;
150+
background-color: $DJSsunshine;
151+
border-radius: .5*$h;
152+
//display:inline-block;
153+
cursor: pointer;
154+
color: whitesmoke;
155+
font-size: 1.5em;
156+
text-decoration: none;
157+
158+
&:hover {
159+
// do something
160+
}
161+
}
162+
163+
164+
165+

app/views/pages/home.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
</section>
114114

115115
<section class="text-container">
116+
<div class="intro">
117+
<%=button_tag "Enroll", class: 'btn-enroll' %>
118+
</div>
116119
<div class="intro">
117120
Plain ('vanilla') JavaScript goes a long way in adding interactivy and a nice, dynamic user interface in Rails apps.
118121
As a Rails developer, you don't need to be a JavaScript ninja to achieve some nice JavaScript sprinkles in your Rails views.

0 commit comments

Comments
 (0)