mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-09-22 11:30:05 +00:00
36 lines
1.4 KiB
Elixir
36 lines
1.4 KiB
Elixir
defmodule LiveBeatsWeb.SignInLive do
|
|
use LiveBeatsWeb, :live_view
|
|
|
|
def render(assigns) do
|
|
~H"""
|
|
<div class="min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8">
|
|
<div class="sm:mx-auto sm:w-full sm:max-w-md">
|
|
<img class="mx-auto h-12 w-auto" src="https://tailwindui.com/img/logos/workflow-mark-indigo-600.svg" alt="Workflow">
|
|
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
|
|
Sign in to your account
|
|
</h2>
|
|
<p class="mt-2 text-center text-sm text-gray-600">
|
|
Or
|
|
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">
|
|
listen now without signing in (TODO)
|
|
</a>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
|
|
<div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
|
|
<div class="space-y-6">
|
|
<a href={LiveBeats.Github.authorize_url()} class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
|
Sign in with GitHub
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
"""
|
|
end
|
|
|
|
def mount(_params, _session, socket) do
|
|
{:ok, socket}
|
|
end
|
|
end
|