|
1 | 1 | <div class="sidebar--wrapper"> |
2 | | - <card style="text-align: center;"> |
3 | | - <span>SNIPPET.IO</span> |
4 | | - </card> |
5 | 2 | <% if user_signed_in? %> |
6 | 3 | <card> |
| 4 | + <div style="text-align: center;"> |
| 5 | + <img src="https://media-exp1.licdn.com/dms/image/C4E03AQG0MUNjxFvBTw/profile-displayphoto-shrink_200_200/0?e=1593648000&v=beta&t=WnnJ_Q6MpQFur5Uev2iqeLAnoX6Rdb1Bv6RoAijK3tA" style="border-radius: 50%; display: block; margin: 0 auto;" width=80"> |
| 6 | + <h3 style="margin: 8px 0px 0px 0px;"><%= current_user.name %></h2> |
| 7 | + </div> |
| 8 | + <div class="horizontal-line"></div> |
7 | 9 | <div class="menu-button--wrapper"> |
8 | 10 | <%= link_to root_path, class: request.fullpath == root_path ? 'menu-button--item-active' : 'menu-button--item' do %> |
9 | | - <img src="/icons/home.svg" width="28"> |
10 | | - <span style="display: block; margin-top: 8px;">Home</span> |
11 | | - <% end %> |
12 | | - <%= link_to new_snippet_path, class: request.fullpath == new_snippet_path ? 'menu-button--item-active' : 'menu-button--item' do %> |
13 | | - <img src="/icons/edit.svg" width="28"> |
14 | | - <span style="display: block; margin-top: 8px;">New Snippet</span> |
| 11 | + <img class="menu-button--icon" src="/icons/home.svg" width="20"> |
| 12 | + <span class="menu-button--name">Home</span> |
15 | 13 | <% end %> |
16 | 14 | </div> |
17 | 15 | <div class="menu-button--wrapper"> |
18 | 16 | <%= link_to folders_path, class: request.fullpath == folders_path ? 'menu-button--item-active' : 'menu-button--item' do %> |
19 | | - <img src="/icons/folder-1.svg" width="28"> |
20 | | - <span style="display: block; margin-top: 8px;">Folders</span> |
| 17 | + <img class="menu-button--icon" src="/icons/folder-1.svg" width="20"> |
| 18 | + <span class="menu-button--name">Folders</span> |
21 | 19 | <% end %> |
| 20 | + </div> |
| 21 | + <div class="menu-button--wrapper"> |
22 | 22 | <%= link_to edit_user_registration_path, class: request.fullpath == edit_user_registration_path ? 'menu-button--item-active' : 'menu-button--item' do %> |
23 | | - <img src="/icons/settings.svg" width="28"> |
24 | | - <span style="display: block; margin-top: 8px;">Settings</span> |
| 23 | + <img class="menu-button--icon" src="/icons/settings.svg" width="20"> |
| 24 | + <span class="menu-button--name">Settings</span> |
25 | 25 | <% end %> |
26 | 26 | </div> |
27 | 27 | </card> |
28 | 28 | <card style="text-align: center;"> |
29 | | - <%= link_to('NEW SNIPPET', new_snippet_path, class: "button--cta-new") %> |
| 29 | + <%= link_to(new_snippet_path, class: 'sidebar--new-snippet') do %> |
| 30 | + <span>NEW SNIPPET</span> |
| 31 | + <% end %> |
30 | 32 | </card> |
31 | 33 | <% else %> |
32 | 34 | <%# temp fix for when user not signed in %> |
|
0 commit comments