Skip to content

Commit

Permalink
Update heex file
Browse files Browse the repository at this point in the history
  • Loading branch information
yryuvraj committed Dec 17, 2023
1 parent 7955c14 commit f6b97b9
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions lib/elixir_gist_web/live/create_gist_live.html.heex
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
<div class="em-gradient flex items-center justify-center">
<h1 class="font-brand font-bold text-3xl text-white">
Share Elixir code, notes, and snippets.
Instantly share Elixir code, notes, and snippets.
</h1>
</div>
<.form for={@form}>
<div class="justify center px-28 w-full space-y-4 mb-10">
<.input field={@form[:description]} placeholder="Gist description..." autocomplete="off" />
<div>
<div class="flex p-2 items-center bg-emDark rounded-t-md border">
<div class="w-[300px] mb-2">
<.input field={@form[:name]} placeholder="Filename including extension.." autocomplete="off"/>
</div>
</div>
<%=textarea(@form, :markup_text,
class: "textarea w-full rounded-b-md",
placeholder: "Insert Code..",
spellcheck: "false",
autocomplete: "off")%>
</div>
<div class="flex justify-end">
<.button class="create_button">Create Gist</.button>
<.form for={@form} phx-submit="create" phx-change="validate">
<div class="justify-center px-28 w-full space-y-4 mb-10">
<.input
field={@form[:description]}
placeholder="Gist description.."
autocomplete="off"
phx-debounce="blur"
/>
<div>
<div class="flex p-2 items-center bg-emDark rounded-t-md border">
<div class="w-[300px] mb-2">
<.input
field={@form[:name]}
placeholder="Filename including extension..."
autocomplete="off"
phx-debounce="blur"
/>
</div>
</div>
<%= textarea(@form, :markup_text,
class: "textarea w-full rounded-b-md",
placeholder: "Insert code...",
spellcheck: "false",
autocomplete: "off",
phx_debounce: "blur"
) %>
</div>
<div class="flex justify-end">
<.button class="create_button" phx-disable-with="Creating...">Create gist</.button>
</div>

</.form>
</div>
</.form>

0 comments on commit f6b97b9

Please sign in to comment.