-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |