Skip to content

Commit

Permalink
Adding QuickTweets, Posts and Comments in Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishwas-py committed Aug 24, 2022
1 parent dc9fe4e commit dc469a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/application.tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
@apply dark:hover:text-blue-100 dark:text-neutral-50;
}
.line-bar {
@apply flex-row flex gap-5 mt-4;
@apply flex-row flex gap-5 mt-4 border-b;
}
.line-bar .line-tab {
@apply px-3 py-2;
@apply px-3 py-2 hover:border-b;
}
.line-bar .line-tab.active {
@apply border-b font-bold;
Expand Down
1 change: 0 additions & 1 deletion app/views/notification/_layer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<%= link_to "Read", read_notification_index_path, class: "line-tab #{is_active 'notification', 'read'}" %>
<%= link_to "Unread", unread_notification_index_path, class: "line-tab #{is_active 'notification', 'unread'}" %>
</div>
<hr/>
</div>
<%= yield %>

Expand Down
8 changes: 7 additions & 1 deletion app/views/profile/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
<div class="content-box">
<h1 class=""><%= @profile.get_name %></h1>
</div>
<h3 class="font-light text-lg px-1 border-b">
<h3 class="font-light text-lg px-1">
<%= @profile.bio %>
</h3>

</div>
<div class="line-bar p-0 m-0">
<%= link_to "All", notification_index_path, class: "line-tab #{is_active 'notification', 'index'}" %>
<%= link_to "Read", read_notification_index_path, class: "line-tab #{is_active 'notification', 'read'}" %>
<%= link_to "Unread", unread_notification_index_path, class: "line-tab #{is_active 'notification', 'unread'}" %>
</div>
<div class="lg:hidden">
<%= render "profile/profile", profile: @profile %>
Expand Down

0 comments on commit dc469a7

Please sign in to comment.