Skip to content

Commit 4f0ea1d

Browse files
committed
Add Intro text and styling
1 parent b5df603 commit 4f0ea1d

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

app/assets/stylesheets/home.scss

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ body {
2929
transform: translateX(-50%) translateY(100%);
3030
}
3131

32-
3332
.hero-txt {
3433
justify-content: center;
3534
text-align: center;
@@ -40,12 +39,11 @@ body {
4039
}
4140

4241
.hero-title {
43-
font-size: 1.8rem;
42+
font-size: 2.5rem;
4443
}
4544

4645
.hero-over-title {
4746
text-transform: uppercase;
48-
font-size: smaller;
4947
padding-bottom: 1rem;
5048
}
5149

@@ -63,19 +61,28 @@ hr.separator-line {
6361
}
6462

6563
//// CONTENT THINGS
64+
// text-container -> intro + 3 card chapters + about us
6665
// cards (grid) -> card (flex) -> card Content (See below)
6766

6867
.text-container {
69-
margin-top: 20vh;
68+
max-width: 80%;
69+
margin: 15vh auto;
70+
//margin: auto;
71+
}
72+
73+
.intro {
74+
padding: 0 19vw 15vh 20vw;
75+
font-size: larger;
76+
//padding-bottom: 15vh;
7077
}
7178

7279
.cards {
73-
max-width: 80%;
74-
margin: 2vw auto;
80+
//@include content-layout;
7581
display: grid;
7682
grid-gap: 1rem;
7783
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
7884
// ^ make it responsive without mediaqueries:
85+
margin-bottom: 15vh;
7986
}
8087

8188
.card {
@@ -104,9 +111,11 @@ hr.separator-line {
104111
align-items: center;
105112
justify-content: flex-start;
106113
}
114+
107115
.card-title {
108116
padding-left: 1em;
109117
}
118+
110119
.course-appetite {
111120
color: $DJSacqua;
112121
}
@@ -120,6 +129,14 @@ hr.separator-line {
120129
padding: 1em;
121130
}
122131

132+
//styling elements
133+
123134
ul {
124135
list-style: outside "\2043"+" ";
125136
}
137+
138+
.accented {
139+
//color: $DJSacqua;
140+
color: $DJSsunshine;
141+
//font-weight: bold;
142+
}

app/views/pages/home.html.erb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@
9090
</section>
9191

9292
<section class="text-container">
93+
<div class="intro">
94+
Plain ('vanilla') JavaScript goes a long way in adding interactivy and a nice, dynamic user interface in Rails apps.
95+
As a Rails developer, you don't need to be a JavaScript ninja to achieve some nice JavaScript sprinkles in your Rails views.
96+
Just learn the few <span class="accented">most useful parts of JavaScript for Rails development</span>. Follow some tried-and-true conventions.
97+
And find that working with JavaScript in Rails apps can be fun after all.
98+
</div>
99+
100+
<h2 id="course-content">About the Course</h2>
93101
<div class="cards">
94102
<div class="card" id="course-content">
95103

@@ -124,7 +132,6 @@
124132
<div class="card-text">
125133
<%= yield :pricing %>
126134
</div>
127-
128135
</div>
129136
<div class="card">
130137
<div style="color: orange">enroll now

0 commit comments

Comments
 (0)