|
1 | 1 | <%= link to: "/home", class: "w-1/5 flex justify-center" do %>
|
2 |
| -<button |
3 |
| - class="p-4<%= if @conn.request_path == "/home", do: " text-blue-500 italic italic"%>"> |
| 2 | +<button class="p-4<%= if @conn.request_path == "/home", do: " text-blue-500 italic italic"%>"> |
4 | 3 | <span class=" sr-only">Home</span>
|
5 |
| - <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" |
6 |
| - xmlns="http://www.w3.org/2000/svg"> |
| 4 | + <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
7 | 5 | <path
|
8 | 6 | d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z">
|
9 | 7 | </path>
|
10 | 8 | </svg>
|
11 |
| - <p class="pt-0.5">Home</p> |
| 9 | + <p class="pt-0.5">Office</p> |
12 | 10 | </button>
|
13 | 11 | <% end %>
|
14 | 12 | <%= link to: "/market", class: "w-1/5 flex justify-center" do %>
|
15 |
| -<button |
16 |
| - class="p-4<%= if @conn.request_path == "/market", do: " text-blue-500 italic"%>"> |
| 13 | +<button class="p-4<%= if @conn.request_path == "/market", do: " text-blue-500 italic"%>"> |
17 | 14 | <span class=" sr-only">Market</span>
|
18 |
| - <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" |
19 |
| - xmlns="http://www.w3.org/2000/svg"> |
| 15 | + <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
20 | 16 | <path
|
21 | 17 | d="M8.433 7.418c.155-.103.346-.196.567-.267v1.698a2.305 2.305 0 01-.567-.267C8.07 8.34 8 8.114 8 8c0-.114.07-.34.433-.582zM11 12.849v-1.698c.22.071.412.164.567.267.364.243.433.468.433.582 0 .114-.07.34-.433.582a2.305 2.305 0 01-.567.267z">
|
22 | 18 | </path>
|
|
30 | 26 | <% end %>
|
31 | 27 |
|
32 | 28 | <%= link to: "/home/posts/new", class: "w-1/5 flex justify-center" do %>
|
33 |
| -<button |
34 |
| - class="p-4<%= if @conn.request_path == "/home/posts/new", do: " text-blue-500 italic"%>"> |
| 29 | +<button class="p-4<%= if @conn.request_path == "/home/posts/new", do: " text-blue-500 italic"%>"> |
35 | 30 | <span class=" sr-only">Post</span>
|
36 | 31 | <!-- Heroicon name: Profile -->
|
37 |
| - <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" |
38 |
| - xmlns="http://www.w3.org/2000/svg"> |
39 |
| - <path |
40 |
| - d="M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"> |
| 32 | + <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
| 33 | + <path d="M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"> |
41 | 34 | </path>
|
42 | 35 | <path fill-rule="evenodd"
|
43 | 36 | d="M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"
|
|
48 | 41 | </button>
|
49 | 42 | <% end %>
|
50 | 43 | <%= link to: "/updates", class: "w-1/5 flex justify-center" do %>
|
51 |
| -<button |
52 |
| - class="p-4 relative<%= if @conn.request_path == "/updates", do: " text-blue-500 italic"%>"> |
| 44 | +<button class="p-4 relative<%= if @conn.request_path == "/updates", do: " text-blue-500 italic"%>"> |
53 | 45 | <span class=" sr-only">Updates</span>
|
54 | 46 | <%= if Shlinkedin.Profiles.get_last_read_notification_time(@profile) > @profile.last_checked_notifications do %>
|
55 |
| - <span |
56 |
| - class="text-xs absolute top-2 right-2 block h-4 w-4 rounded-full ring-2 ring-white bg-red-600 text-white"> |
| 47 | + <span class="text-xs absolute top-2 right-2 block h-4 w-4 rounded-full ring-2 ring-white bg-red-600 text-white"> |
57 | 48 | <%= Shlinkedin.Profiles.get_unread_notification_count(@profile) %>
|
58 | 49 | </span>
|
59 | 50 | <% end %>
|
60 |
| - <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" |
61 |
| - xmlns="http://www.w3.org/2000/svg"> |
| 51 | + <svg class="w-6 h-6 mx-auto" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
62 | 52 | <path
|
63 | 53 | d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z">
|
64 | 54 | </path>
|
|
0 commit comments