mirror of
https://github.com/ClaperCo/Claper.git
synced 2026-02-24 12:09:59 +01:00
commit e5905358dc20cea2fcc41b3580c4985e8ac53217 Author: Alex Lion <dev@alexandrelion.com> Date: Mon Jul 7 22:56:14 2025 +0200 chore: update changelog commit 2696a29ffdc6deb930b8ffb6f92cae21b176e853 Author: Alex Lion <dev@alexandrelion.com> Date: Mon Jul 7 22:52:11 2025 +0200 Change js file to css and migrate css classes commit 19093360ed2404f956d799c0a9ec1656c9fa1a74 Author: Alex Lion <dev@alexandrelion.com> Date: Sat Jul 5 19:28:34 2025 +0200 chore: upgrade to tailwind 4+ commit 75312e8b3d3c9fd25137189e7020994640a0f901 Author: Alex Lion <dev@alexandrelion.com> Date: Thu Jul 3 16:59:58 2025 +0200 chore: remove useless files
118 lines
4.4 KiB
Plaintext
118 lines
4.4 KiB
Plaintext
<style>
|
|
body {
|
|
background: linear-gradient(-45deg, #2C033A, #21033A, #053138, #053138);
|
|
background-size: 400% 400%;
|
|
animation: gradient 15s ease infinite;
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
|
|
<div class="lg:overflow-hidden">
|
|
<div
|
|
x-data="{open: false}"
|
|
id="menu"
|
|
class="w-full h-24 py-4 text-right md:px-5 relative z-20"
|
|
phx-update="ignore"
|
|
>
|
|
<div
|
|
x-show="open"
|
|
x-transition
|
|
class="absolute h-24 bg-white w-full top-0 md:hidden px-5 py-3 flex flex-col items-center justify-center space-y-2"
|
|
@click.away="open = false"
|
|
>
|
|
<a href="https://get.claper.co/" class="text-sm font-semibold text-black">
|
|
{gettext("About")}
|
|
</a>
|
|
<%= if @current_user do %>
|
|
<.link
|
|
href={~p"/events"}
|
|
class="relative inline-flex items-center px-4 py-1 text-base font-sm rounded-md text-white bg-linear-to-tl from-primary-500 to-secondary-500 bg-size-[200%_200%] bg-position-[0%_0%] hover:bg-position-[100%_100%] transition-all duration-500"
|
|
>
|
|
{gettext("Dashboard")}
|
|
</.link>
|
|
<% else %>
|
|
<.link
|
|
href={~p"/users/log_in"}
|
|
class="relative inline-flex items-center px-4 py-1 text-base font-sm rounded-md text-white bg-linear-to-tl from-primary-500 to-secondary-500 bg-size-[200%_200%] bg-position-[0%_0%] hover:bg-position-[100%_100%] transition-all duration-500"
|
|
>
|
|
{gettext("Login")}
|
|
</.link>
|
|
<% end %>
|
|
</div>
|
|
<button @click="open = true" class="md:hidden">
|
|
<img src="/images/icons/menu-outline.svg" class="h-9" />
|
|
</button>
|
|
<div class="hidden md:block">
|
|
<a href="https://get.claper.co/" class="text-sm text-white font-semibold mr-3">
|
|
{gettext("About")}
|
|
</a>
|
|
<%= if @current_user do %>
|
|
<.link
|
|
href={~p"/events"}
|
|
class="relative inline-flex items-center px-4 py-1 text-base font-sm rounded-md text-white bg-linear-to-tl from-primary-500 to-secondary-500 bg-size-[200%_200%] bg-position-[0%_0%] hover:bg-position-[100%_100%] transition-all duration-500"
|
|
>
|
|
{gettext("Dashboard")}
|
|
</.link>
|
|
<% else %>
|
|
<.link
|
|
href={~p"/users/log_in"}
|
|
class="relative inline-flex items-center px-4 py-1 text-base font-sm rounded-md text-white bg-linear-to-tl from-primary-500 to-secondary-500 bg-size-[200%_200%] bg-position-[0%_0%] hover:bg-position-[100%_100%] transition-all duration-500"
|
|
>
|
|
{gettext("Login")}
|
|
</.link>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="px-5 lg:w-1/3 lg:mx-auto">
|
|
<div class="mt-10 ">
|
|
<img src="/images/logo.svg" class="h-12 mx-auto mb-16" />
|
|
</div>
|
|
|
|
<%= form_for :event, ~p"/join", ["phx-submit": "join", "phx-hook": "JoinEvent", id: "form"], fn f -> %>
|
|
<div class="relative">
|
|
{text_input(f, :code,
|
|
required: true,
|
|
autofocus: true,
|
|
id: "input",
|
|
class:
|
|
"transition-all bg-transparent tracking-widest w-full uppercase text-white text-2xl px-3 border-b border-gray-200 focus:border-b-2 pt-5 pl-12 pb-3 outline-hidden"
|
|
)}
|
|
<img
|
|
class="icon absolute top-5 left-2 transition-all duration-100"
|
|
src="/images/icons/hashtag-white.svg"
|
|
alt="code"
|
|
/>
|
|
</div>
|
|
|
|
<div class="mt-10">
|
|
<button
|
|
type="submit"
|
|
id="submit"
|
|
class="w-full flex justify-center text-white p-4 rounded-full tracking-wide font-bold outline-hidden focus:shadow-outline shadow-lg bg-linear-to-tl from-primary-500 to-secondary-500 bg-size-[200%_200%] bg-position-[0%_0%] hover:bg-position-[100%_100%] transition-all duration-500"
|
|
>
|
|
{gettext("Join")}
|
|
</button>
|
|
<img src="/images/loading.gif" id="loading" class="hidden h-12 mx-auto" />
|
|
</div>
|
|
|
|
<%= if @last_event do %>
|
|
<.link href={~p"/e/#{@last_event.code}"}>
|
|
<div class="rounded-md bg-gray-600/50 p-4 mt-8">
|
|
<div class="flex justify-center items-center">
|
|
<p class="text-sm text-white">
|
|
{gettext("Return to your last event")} ({@last_event.name})
|
|
</p>
|
|
<p class="text-base ml-3 mt-1">
|
|
<a href="#" class="whitespace-nowrap font-medium text-white">
|
|
<span aria-hidden="true">→</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</.link>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|