Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedsoupe committed May 29, 2024
1 parent 8579a47 commit e636d1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
16 changes: 12 additions & 4 deletions lib/pescarte_web/design_system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -308,19 +308,27 @@ defmodule PescarteWeb.DesignSystem do
<label :if={@label} for={@name}>
<.text size="h4"><%= @label %></.text>
</label>
<div class="input-space">
<div class="input-space">
<input
id={@id}
name={@name}
value={@value}
type={@type}
placeholder={@placeholder}
data-inputmask={if @mask, do: "mask: #{@mask}"}
class={["input", if(@type == "password", do: "password-toggle", else: ""), text_input_state(@valid)]}
class={[
"input",
if(@type == "password", do: "password-toggle", else: ""),
text_input_state(@valid)
]}
{@rest}
/>
<button class="eye-button" :if={@type == "password"} phx-click={JS.toggle_attribute({"type", "password", "text"}, to: ".password-toggle")}>
<Lucideicons.eye />
<button
:if={@type == "password"}
class="eye-button"
phx-click={JS.toggle_attribute({"type", "password", "text"}, to: ".password-toggle")}
>
<Lucideicons.eye />
</button>
</div>
<span :if={!is_nil(@valid)} class="dot">
Expand Down
5 changes: 4 additions & 1 deletion lib/pescarte_web/templates/landing_html/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@
fortalecer e emancipar economicamente esses guardiões do mar por meio de um programa estruturado em seis fases
cuidadosamente planejadas ao longo de 14 anos.
</.text>
<DesignSystem.link href="https://drive.google.com/drive/folders/13m7ePo1-3ShtUd1plEndrMbEkIxfOyMs?usp=sharing" class="text-sm font-semibold">
<DesignSystem.link
href="https://drive.google.com/drive/folders/13m7ePo1-3ShtUd1plEndrMbEkIxfOyMs?usp=sharing"
class="text-sm font-semibold"
>
<.button style="primary" click="hello">
<.text size="base" color="text-white-100">Acesse Nossas Memórias</.text>
</.button>
Expand Down

0 comments on commit e636d1b

Please sign in to comment.