Skip to content

Commit

Permalink
about
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Apr 15, 2024
1 parent 1b80599 commit 2d2d16b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
15 changes: 9 additions & 6 deletions app/views/users/about.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<div class="sm:max-w-lg py-5">
<h1 class="text-4xl font-bold tracking-tight text-default sm:text-6xl">
<%= @user.username %>
<%= link_to @user.username, user_path(@user.username) %>
</h1>
<p class="text-muted">
<%= @user.country %>, <%= @user.city %>
Expand All @@ -53,11 +53,14 @@

</div>

<div class="flex justify-end">
<%= link_to new_photo_path, class: "button-sm-outline", data: {turbo_frame: "modal"} do %>
New Image
<% end %>
</div>
<% if @user.id == current_user&.id %>
<div class="flex justify-start">
<%= link_to new_photo_path, class: "button-sm-outline", data: {turbo_frame: "modal"} do %>
<%= heroicon :plus %>
New Image
<% end %>
</div>
<% end %>

<div class="grid grid-cols-2 md:grid-cols-3 gap-4 my-6">
<% current_user.photos.each do |image| %>
Expand Down
6 changes: 5 additions & 1 deletion app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@
</div>
</div>
</div>
<p class="font-normal text-sm"> <%= @user.bio %> </p>
<p class="font-normal text-sm text-subtle mb-2"> <%= @user.bio %> </p>

<div class="flex justify-end">
<%= link_to "more", "/#{@user.username}/about", class: "mr-2 btn-xs outline rounded-sm p-1" %>
</div>
<!--
<section aria-labelledby="who-to-follow-heading">
<section aria-labelledby="who-to-follow-heading">
Expand Down

0 comments on commit 2d2d16b

Please sign in to comment.