2019-09-02 14:29:19 +03:00
|
|
|
<div class="pt-16"></div>
|
2020-03-06 12:11:38 +03:00
|
|
|
<div class="max-w-xl mx-auto flex flex-col sm:flex-row justify-between">
|
|
|
|
<h1 class="text-2xl font-black">My websites</h1>
|
2019-09-02 14:29:19 +03:00
|
|
|
<a href="/sites/new" class="button w-full my-2 sm:my-0 sm:w-auto">+ Add a website</a>
|
|
|
|
</div>
|
2020-03-06 12:11:38 +03:00
|
|
|
<div class="flex items-center justify-center w-full py-8 mb-16">
|
|
|
|
<div class="overflow-hidden bg-white rounded max-w-xl w-full shadow-md leading-normal">
|
2019-09-02 14:29:19 +03:00
|
|
|
<%= for site <- @sites do %>
|
|
|
|
<div class="w-full relative">
|
2020-03-26 15:22:48 +03:00
|
|
|
<a href="/<%= URI.encode_www_form(site.domain) %>" class="block hover:bg-gray-100 group p-4 border-b no-underline flex justify-between transition">
|
2020-03-06 12:11:38 +03:00
|
|
|
<p class="w-full font-bold text-lg mb-1 text-gray-800"><%= site.domain %></p>
|
2019-09-02 14:29:19 +03:00
|
|
|
</a>
|
2020-03-26 15:22:48 +03:00
|
|
|
<%= link(to: "/#{URI.encode_www_form(site.domain)}/settings", class: "flex absolute hover:bg-gray-100 transition rounded py-2 px-5", style: "top: 12px; right: 6px;") do %>
|
2019-09-02 14:29:19 +03:00
|
|
|
<div>
|
2020-03-06 12:11:38 +03:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings -mt-px"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
|
2019-09-02 14:29:19 +03:00
|
|
|
</div>
|
2020-03-06 12:11:38 +03:00
|
|
|
<p class="ml-1 text-gray-800 font-medium">Settings</p>
|
2019-09-02 14:29:19 +03:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|