Skip to content

Commit

Permalink
css tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Feb 21, 2023
1 parent e7c2493 commit b8d8610
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
14 changes: 13 additions & 1 deletion lib/rauversion_web/live/account_connect_live/existing_user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ defmodule RauversionWeb.AccountConnectLive.ExistingUser do
~H"""
<div class="space-y-4">
<%= if !@selected_artist do %>
<h2 class="mx-0 mt-0 mb-4 font-sans text-2xl font-bold leading-none">
<%= gettext("Existing artist") %>
</h2>
<p class="text-md">Please search for an existing artist.</p>
<form>
<div class="mt-1 flex rounded-md shadow-sm md:col-span-6">
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 dark:border-gray-700 bg-blue-gray-50 text-blue-gray-500 sm:text-sm">
Expand Down Expand Up @@ -99,7 +105,13 @@ defmodule RauversionWeb.AccountConnectLive.ExistingUser do
<% end %>
<div :if={@selected_artist} class="space-y-4">
<p>Selected! <%= @selected_artist.username %> Send the connect invitation to the artist</p>
<p class="text-xl font-bold">
<%= gettext("%{name} is selected", name: @selected_artist.username) %>
</p>
<p class="text-md">
<%= gettext("Please confirm in order to send the connect invitation request to the artist.") %>
</p>
<div class="flex items-center space-x-4">
<button
Expand Down
4 changes: 2 additions & 2 deletions lib/rauversion_web/live/account_connect_live/new.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule RauversionWeb.AccountConnectLive.New do
~H"""
<div phx-click={@action} class={if @selected, do: selected_class(), else: default_class()}>
<div class="flex justify-between">
<div class="font-medium text-slate-900 dark:text-slate-100">
<div class="text-lg font-medium text-slate-900 dark:text-slate-100">
<%= @label %>
</div>
<svg class="h-5 w-5 flex-none" fill="none">
Expand All @@ -47,7 +47,7 @@ defmodule RauversionWeb.AccountConnectLive.New do
</path>
</svg>
</div>
<div class="mt-1 text-slate-700 dark:text-slate-300">Last message sent an hour ago</div>
<div class="hidden mt-1 text-slate-700 dark:text-slate-300">Last message sent an hour ago</div>
<div class="hidden mt-6 font-medium text-slate-900 dark:text-slate-100">1200 users</div>
</div>
"""
Expand Down
13 changes: 3 additions & 10 deletions lib/rauversion_web/live/account_connect_live/new_user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ defmodule RauversionWeb.AccountConnectLive.NewUser do
def render(assigns) do
~H"""
<div>
<p>Please specify an account to add.</p>
Artist URL http://<%= Application.get_env(:rauversion, :domain) %>/jjj
,
Add via
Password
Request access from the artist
Hide artist
You can hide and unhide artists later, too.
<div>
<.form
:let={f}
Expand All @@ -68,9 +59,11 @@ defmodule RauversionWeb.AccountConnectLive.NewUser do
phx-submit="save"
>
<h2 class="mx-0 mt-0 mb-4 font-sans text-2xl font-bold leading-none">
<%= gettext("New user") %>
<%= gettext("New artist") %>
</h2>
<p class="text-md">Please specify an account to add.</p>
<div class="mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6">
<div class="mt-1 flex rounded-md shadow-sm md:col-span-6">
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 dark:border-gray-700 bg-blue-gray-50 text-blue-gray-500 sm:text-sm">
Expand Down

0 comments on commit b8d8610

Please sign in to comment.