Skip to content

Commit 51914d5

Browse files
committed
Add anchors and update related css
1 parent e23d754 commit 51914d5

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

app/assets/stylesheets/global.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $DJSdark-text: darkslategrey;
1717

1818
a {
1919
text-decoration: none;
20+
color: $DJSlavender;
2021
&:hover {
2122
color: $DJSsunshine;
2223
}

app/assets/stylesheets/home.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,12 @@ hr.separator-line {
6666
// cards (grid) -> card (flex) -> card Content (See below)
6767

6868
.text-container {
69-
margin: 2vw;
70-
margin-top: 15vh;
69+
margin-top: 20vh;
7170
}
7271

7372
.cards {
7473
max-width: 80%;
75-
margin: 0 auto;
74+
margin: 2vw auto;
7675
display: grid;
7776
grid-gap: 1rem;
7877
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
@@ -82,7 +81,7 @@ hr.separator-line {
8281
.card {
8382
background-color: $DJSbackground_grey;
8483
padding: 1rem;
85-
height: fit-content;
84+
height: auto;
8685
border-radius: 2px;
8786
display: flex;
8887
flex-direction: column;

app/assets/stylesheets/navbar.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,3 @@ nav ul li {
3434
display: inline-block;
3535
padding: 20px;
3636
}
37-
38-
.account a {
39-
color: whitesmoke;
40-
}

app/views/layouts/_navbar.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<nav>
44
<ul>
55
<li><%=link_to "course content", root_path(anchor: "course-content") %></li>
6-
<li>goals</li>
7-
<li>ams.rb workshop</li>
8-
<li>about us</li>
6+
<li><%=link_to "goals", root_path(anchor: "goals") %></li>
7+
<li><%=link_to "ams.rb workshop", root_path(anchor: "amsrb") %></li>
8+
<li><%=link_to "About us", root_path(anchor: "aboutus") %></li>
99
</ul>
1010
</nav>
1111
<div class="account">

0 commit comments

Comments
 (0)