Files
growstuff/app/views/home/_blurb.html.haml
T
Brenda Wallace ca7fd81439 Tidy/login signup (#4958)
* Add authentication dialogs for sign in and sign up

- Implemented AuthDialog component to manage sign in and sign up modals.
- Created SignInModal and SignUpModal components for handling respective authentication processes.
- Added AuthFields component for reusable form fields and error handling.
- Updated various views to utilize the new authentication dialogs instead of traditional links.
- Enhanced user experience by allowing sign in and sign up actions to occur without full page reloads.
- Added feature specs for testing the functionality of the new dialogs.

* Refactor modals and input fields for improved accessibility and styling; adjust button sizes and text formatting

* Refactor authentication forms and modals for improved usability and accessibility; integrate reCAPTCHA handling and enhance error messaging

* Refactor SignUpModal layout for improved responsiveness and accessibility; organize fields into rows and enhance styling

* Refactor session view spec to streamline field checks; remove redundant test and retain essential content expectations
2026-10-17 09:26:39 +10:30

19 lines
952 B
Plaintext

- planting = Planting.homepage_records(6).detect { |candidate| candidate.thumbnail_url.present? }
.home-hero
.home-hero-text
%p.home-hero-badge= t('.badge')
%h1= t('.headline_html')
%p.home-hero-intro= t('.intro', site_name: ENV['GROWSTUFF_SITE_NAME'])
.home-hero-actions
= link_to(t('.sign_up'), new_member_registration_path, data: { auth_dialog: 'sign_up' }, class: 'btn btn-warning btn-lg')
= link_to(t('.sign_in_linktext'), new_member_session_path, data: { auth_dialog: 'sign_in' }, class: 'home-hero-signin')
%p.home-hero-note= t('.public_note')
- if planting
= link_to planting_path(slug: planting.slug), class: 'home-hero-photo' do
= image_tag planting.thumbnail_url, alt: "Image of #{planting.display_name} by #{planting.owner_login_name}"
%span.home-hero-photo-caption
= planting.display_name
%br
%i= t('.photo_by', login: planting.owner_login_name)
= render 'stats'