today_ai_weather/app/views/devise/confirmations/new.html.erb
songtianlun be1f76a76d feat: enhance devise views with new styling
- Updated confirmation, password, unlock, and session views to use a
  card-based layout for improved visual appeal.
- Added responsive design features to ensure compatibility across devices.
- Enhanced usability by providing clear placeholders in form fields.

These changes improve the user experience during account recovery and
management processes. The design promotes a modern interface while
maintaining functionality.
2025-02-11 16:43:05 +08:00

36 lines
1.4 KiB
Plaintext

<div class="min-h-screen flex items-center justify-center px-4">
<div class="card w-full max-w-md bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title text-2xl mb-4">Resend confirmation instructions</h2>
<p class="text-sm text-gray-600 mb-4">
Didn't receive confirmation instructions? Enter your email below to resend.
</p>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>
<div class="form-control">
<%= f.label :email, class: "label" %>
<%= f.email_field :email,
autofocus: true,
autocomplete: "email",
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email),
class: "input input-bordered w-full",
placeholder: "Enter your email" %>
</div>
<div class="form-control mt-6">
<%= f.submit "Resend confirmation instructions",
class: "btn btn-primary w-full" %>
</div>
<% end %>
<div class="divider"></div>
<div class="text-sm text-center">
<%= render "devise/shared/links" %>
</div>
</div>
</div>
</div>