daisy_devise 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12f639e41cb29ca020b280c2d367acbeb6cd738432147485fe7a96a14d6eab29
4
- data.tar.gz: 4c9c6dcffb3168a09f862bf73ea8d9022b5a9291bd16cb9609a72785e57fe122
3
+ metadata.gz: b5636d76bb923f85b3229d3d878d1795f2303df9550c2941622c1415a8699723
4
+ data.tar.gz: 3096fc4758bd967d95b7c687758971104d49dc73eda547738127ad09418b9fcf
5
5
  SHA512:
6
- metadata.gz: 21fbd44b8aea5e92964866ea97ee5de33d9f1c99ae25e6e165f4f1e26a0daa593ade60bb65a2e79b7307fd68647c2dd2e39d231f764d902006ab969243181687
7
- data.tar.gz: 4bd9f0dbe92fef939da66676f455f02f4922e2405789c4e2ff3aa19f833884e1c337bb28625fee260a2a171af1fbc2d3d9458cb9e9db463f2c56af06ec5f5328
6
+ metadata.gz: fcec79f70a580a600eb23fbde2b42af2b7ea5657ee7bcbe3a85e4eb24afe01e23e2f4928aa439dc3c0fd26d5abe91a7cc4d6708c5a627ba1a0297840aa939f71
7
+ data.tar.gz: 7c534486f6fde64b18495f5303fb3d939787058858f031199098fdb7c2d5cf8bafbdd2bcb4a6d60eed7dd6a769e040b01a8917c03ce71a8758e0c68e8427773b
@@ -1,37 +1,32 @@
1
1
  <div class="w-full min-h-[100vh] pt-24">
2
- <div class="max-w-xl w-full mx-auto shadow-lg bg-gray-200 rounded-lg py-8">
3
- <h2 class="text-xl mb-4 text-center">Sign up</h2>
2
+ <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-lg border p-4 mx-auto">
3
+ <legend class="fieldset-legend">Sign up</legend>
4
4
 
5
- <div class="w-3/4 mx-auto">
6
- <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
7
- <%= render "devise/shared/error_messages", resource: resource %>
5
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
6
+ <%= render "devise/shared/error_messages", resource: resource %>
8
7
 
9
- <div class="field mb-4">
10
- <%= f.label :email, class: "label" %><br />
11
- <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input" %>
12
- </div>
13
-
14
- <div class="field mb-4">
15
- <%= f.label :password, class: "label" %>
16
- <% if @minimum_password_length %>
17
- <em>(<%= @minimum_password_length %> characters minimum)</em>
18
- <% end %><br />
19
- <%= f.password_field :password, autocomplete: "new-password", class: "input" %>
20
- </div>
8
+ <div class="flex flex-col mb-6">
9
+ <%= f.label :email, class: "label" %><br />
10
+ <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input w-full" %>
11
+ </div>
21
12
 
22
- <div class="field mb-4">
23
- <%= f.label :password_confirmation, class: "label" %><br />
24
- <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input" %>
25
- </div>
13
+ <div class="flex flex-col mb-6">
14
+ <%= f.label :password, class: "label" %>
15
+ <%= f.password_field :password, autocomplete: "new-password", class: "input w-full" %>
16
+ </div>
26
17
 
27
- <div class="actions">
28
- <%= f.submit "Sign up", class: "btn btn-primary" %>
29
- </div>
30
- <% end %>
18
+ <div class="flex flex-col mb-6">
19
+ <%= f.label :password_confirmation, class: "label" %><br />
20
+ <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input w-full" %>
21
+ </div>
31
22
 
32
- <div class="flex flex-col items-center mt-4 gap-4">
33
- <%= render "devise/shared/links" %>
23
+ <div class="actions">
24
+ <%= f.submit "Sign up", class: "btn btn-primary" %>
34
25
  </div>
26
+ <% end %>
27
+
28
+ <div class="flex flex-col items-center mt-4 gap-4">
29
+ <%= render "devise/shared/links" %>
35
30
  </div>
36
31
  </div>
37
32
  </div>
@@ -1,33 +1,31 @@
1
- <div class="w-full min-h-[100vh] pt-24">
2
- <div class="max-w-xl w-full mx-auto shadow-lg bg-gray-200 rounded-lg py-8">
3
- <h2 class="text-xl mb-4 text-center">Log in</h2>
4
-
5
- <div class="w-3/4 mx-auto">
6
- <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
7
- <div class="field mb-4">
8
- <%= f.label :email, class: "label" %><br />
9
- <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input" %>
10
- </div>
11
-
12
- <div class="field mb-4">
13
- <%= f.label :password, class: "label" %><br />
14
- <%= f.password_field :password, autocomplete: "current-password", class: "input" %>
15
- </div>
16
-
17
- <% if devise_mapping.rememberable? %>
18
- <div class="field mb-4">
19
- <%= f.check_box :remember_me, class: "checkbox" %>
20
- <%= f.label :remember_me, class: "label" %>
21
- </div>
22
- <% end %>
1
+ <div class="w-full min-h-screen pt-24">
2
+ <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-lg border p-4 mx-auto">
3
+ <legend class="fieldset-legend">Login</legend>
4
+
5
+ <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
6
+ <div class="w-full flex flex-col mb-6">
7
+ <%= f.label :email, class: "label" %><br />
8
+ <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input w-full" %>
9
+ </div>
23
10
 
24
- <div class="actions w-full">
25
- <%= f.submit "Log in", class: "btn btn-primary" %>
11
+ <div class="w-full flex flex-col mb-6">
12
+ <%= f.label :password, class: "label" %><br />
13
+ <%= f.password_field :password, autocomplete: "current-password", class: "input w-full" %>
14
+ </div>
15
+
16
+ <% if devise_mapping.rememberable? %>
17
+ <div class="w-full flex gap-4 mb-6">
18
+ <%= f.check_box :remember_me, class: "checkbox" %>
19
+ <%= f.label :remember_me, class: "label" %>
26
20
  </div>
27
21
  <% end %>
28
- <div class="flex flex-col items-center mt-4 gap-4">
29
- <%= render "devise/shared/links" %>
22
+
23
+ <div class="actions w-full">
24
+ <%= f.submit "Log in", class: "btn btn-primary" %>
30
25
  </div>
26
+ <% end %>
27
+ <div class="flex flex-col items-center mt-4 gap-4">
28
+ <%= render "devise/shared/links" %>
31
29
  </div>
32
- </div>
30
+ </fieldset>
33
31
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daisy_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indigo