Skip to content

Commit 3707ede

Browse files
mlwzrdVitaliy
andauthored
move workshop link to top navbar (#135)
* move workshop link to top navbar * move resources to top bar * Revert "move resources to top bar" This reverts commit 02327b4. --------- Co-authored-by: Vitaliy <[email protected]>
1 parent fd85c3e commit 3707ede

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

app/assets/stylesheets/components/_header.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@
7070
}
7171
}
7272

73+
.navbar-link {
74+
display: flex;
75+
align-items: center;
76+
font-size: 20px;
77+
a {
78+
text-decoration: none;
79+
}
80+
}
81+
7382
.navbar-text {
7483
cursor: pointer;
7584
padding: 0;
@@ -95,10 +104,9 @@
95104
}
96105

97106
@include full_desktop {
98-
border-left: 1px solid white;
99107
margin: -6px 0;
100108
padding-top: 0;
101-
padding-left: 5px;
109+
padding-left: 20px;
102110
}
103111

104112
.dropdown,

app/views/shared/_header.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
<%= image_tag("logo-color.png", class:"colored-logo") %>
1212
<% end %>
1313

14+
<div class="navbar-text navbar-link">
15+
<%= link_to workshops_path do %>
16+
Workshops
17+
<% end %>
18+
</div>
19+
1420
<% if user_signed_in? %>
1521
<div class="navbar-text pull-right container-fluid">
1622
<div class="dropdown">

app/views/shared/_side_nav.html.erb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
<span>Dashboard</span>
1111
</li>
1212
<% end %>
13-
<%= link_to workshops_path do %>
14-
<li class="nav-item js-search">
15-
<i class="icon icon-search"></i>
16-
<span>Search Curriculum</span>
17-
</li>
18-
<% end %>
1913

2014
<% # Submit Report %>
2115

0 commit comments

Comments
 (0)