-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
44 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
<div class="flex flex-col items-center bg-gray-8 relative min-h-screen justify-between "> | ||
<div class="flex flex-col items-center bg-cover bg-bottom bg-no-repeat max-h-[430px] w-full pt-6 px-5 pb-12 max-w-screen-sm" style="background-image: url(<%= asset_path 'background_design.svg' %>)"> | ||
<div class="flex flex-col items-start z-10"> | ||
<div class="flex flex-row items-center"> | ||
<% if @profile.image.attached? %> | ||
<div class="flex flex-col items-center justify-center relative w-[120px] h-[120px] rounded-full"> | ||
<%= image_tag url_for(@profile.image), class: "absolute" %> | ||
</div> | ||
<% else %> | ||
<div class="w-[120px] h-[120px] rounded-full bg-slate-300 p-5 flex flex-row items-center justify-center"> | ||
<%= image_tag url_for("user_avatar.svg") %> | ||
</div> | ||
<% end %> | ||
<div class="flex flex-col items-start ml-5"> | ||
<div class="text-red text-xl font-black"> <%= @profile.name.presence || "Anonymous" %> </div> | ||
<% if @profile.location.present? %> | ||
<div class="text-lg"><%= @profile.location %></div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<% if @profile.bio.present? %> | ||
<p class="text-base font-medium mt-6"><%= @profile.bio %></p> | ||
<% end %> | ||
<div class="flex flex-row items-center justify-center gap-4"> | ||
<% if @profile.github_url.present? %> | ||
<a href="<%= @profile.github_url %>" class="flex flex-row items-center justify-center w-28 h-14 rounded-lg bg-red mt-6"> | ||
<img src="<%= asset_path 'github.svg' %>" alt="github" class="w-6 h-6"> | ||
</a> | ||
<% end %> | ||
<% if @profile.linkedin_url.present? %> | ||
<a href="<%= @profile.linkedin_url %>" class="flex flex-row items-center justify-center w-28 h-14 rounded-lg bg-red mt-6"> | ||
<img src="<%= asset_path 'linkedin.svg' %>" alt="linkedin" class="w-6 h-6"> | ||
</a> | ||
<% end %> | ||
<% if @profile.twitter_url.present? %> | ||
<a href="<%= @profile.twitter_url %>" class="flex flex-row items-center justify-center w-28 h-14 rounded-lg bg-red mt-6"> | ||
<img src="<%= asset_path 'twitter.svg' %>" alt="twitter" class="w-6 h-6"> | ||
</a> | ||
<% end %> | ||
</div> | ||
<div class="flex flex-col items-center bg-cover bg-bottom bg-no-repeat max-h-[430px] w-full pt-6 px-5 pb-12 max-w-screen-sm" style="background-image: url(<%= asset_path 'background_design.svg' %>)"> | ||
<div class="flex flex-col items-start z-10"> | ||
<div class="flex flex-row items-center"> | ||
<% if @profile.image.attached? %> | ||
<div class="flex flex-col items-center justify-center relative w-[120px] h-[120px] rounded-full"> | ||
<%= image_tag url_for(@profile.image), class: "absolute" %> | ||
</div> | ||
<% else %> | ||
<div class="w-[120px] h-[120px] rounded-full bg-slate-300 p-5 flex flex-row items-center justify-center"> | ||
<%= image_tag url_for("user_avatar.svg") %> | ||
</div> | ||
<% end %> | ||
<div class="flex flex-col items-start ml-5"> | ||
<div class="text-red text-xl font-black italic"> <%= @profile.name.presence || "Anonymous" %> </div> | ||
<% if @profile.location.present? %> | ||
<div class="text-lg"><%= @profile.location %></div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<% if @profile.bio.present? %> | ||
<p class="text-base font-medium mt-6"><%= @profile.bio %></p> | ||
<% end %> | ||
<div class="flex flex-row items-center justify-center gap-4"> | ||
<% if @profile.github_url.present? %> | ||
<a href="<%= @profile.github_url %>" class="flex flex-row items-center justify-center w-28 h-14 rounded-lg bg-red mt-6"> | ||
<img src="<%= asset_path 'github.svg' %>" alt="github" class="w-6 h-6"> | ||
</a> | ||
<% end %> | ||
<% if @profile.linkedin_url.present? %> | ||
<a href="<%= @profile.linkedin_url %>" class="flex flex-row items-center justify-center w-28 h-14 rounded-lg bg-red mt-6"> | ||
<img src="<%= asset_path 'linkedin.svg' %>" alt="linkedin" class="w-6 h-6"> | ||
</a> | ||
<% end %> | ||
<% if @profile.twitter_url.present? %> | ||
<a href="<%= @profile.twitter_url %>" class="flex flex-row items-center justify-center w-28 h-14 rounded-lg bg-red mt-6"> | ||
<img src="<%= asset_path 'twitter.svg' %>" alt="twitter" class="w-6 h-6"> | ||
</a> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="p-4 flex flex-col items-center gap-4 w-full"> | ||
<%= link_to 'Edit Profile', edit_profile_path, class: "text-red font-bold rounded-sm underline italic text-lg" %> | ||
</div> | ||
</div> | ||
<div class="p-4 flex flex-col items-center gap-4 w-full"> | ||
<%= link_to 'Edit Profile', edit_profile_path, class: "text-red font-bold rounded-sm underline italic text-lg" %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters