From 7457edf5590d5d83f360dd77071bd6d2819a879a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 18:20:40 +1030 Subject: [PATCH] Merge pull request #4380 from Growstuff/community-garden-landing-page feat: Add community garden landing page --- .../girlwithvegetables-0038331hotifw.svg | 835 ++++++++++++++++++ app/assets/stylesheets/application.scss | 2 +- app/controllers/home_controller.rb | 2 + app/views/home/community_gardens.html.haml | 37 + app/views/layouts/_menu.haml | 1 + config/locales/en.yml | 13 + config/routes.rb | 1 + 7 files changed, 890 insertions(+), 1 deletion(-) create mode 100644 app/assets/images/girlwithvegetables-0038331hotifw.svg create mode 100644 app/views/home/community_gardens.html.haml diff --git a/app/assets/images/girlwithvegetables-0038331hotifw.svg b/app/assets/images/girlwithvegetables-0038331hotifw.svg new file mode 100644 index 000000000..c5c523554 --- /dev/null +++ b/app/assets/images/girlwithvegetables-0038331hotifw.svg @@ -0,0 +1,835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index d8d75004d..eeab02610 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -33,4 +33,4 @@ @view-transition { navigation: auto; -} \ No newline at end of file +} diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index e5ff4d06b..29fb49445 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -10,4 +10,6 @@ class HomeController < ApplicationController # the relevant class methods directly in the view, so that fragment # caching will be effective. end + + def community_gardens; end end diff --git a/app/views/home/community_gardens.html.haml b/app/views/home/community_gardens.html.haml new file mode 100644 index 000000000..b974c770f --- /dev/null +++ b/app/views/home/community_gardens.html.haml @@ -0,0 +1,37 @@ +- content_for :title do + = t('community_gardens.title') +- content_for :meta_description do + = t('community_gardens.meta_description') + + + +.container.mt-5 + + .row + .col-lg-6.col-sm-12 + .row + %h1.display-4= t('community_gardens.header') + %p.lead= t('community_gardens.lead') + .row + %h2= t('community_gardens.features_title') + %ul + %li Track all your plantings and harvests + %li Keep notes your community's progress + %li Add collaborators to your garden plots + %li See what other community gardens are growing + %li Get advice and support from our community of gardeners + + .row + %h2= t('community_gardens.get_started') + %p= t('community_gardens.get_started_text') + %p + = link_to t('.sign_up'), new_member_registration_path, class: 'btn btn-success btn-lg' + .row + %h2= t('community_gardens.collaborate') + %p= t('community_gardens.collaborate_text') + %p + = link_to t('community_gardens.learn_more'), gardens_path, class: 'btn btn-info btn-lg' + + .col-lg-6.d-lg-block.d-xs-none + .container + =image_tag("girlwithvegetables-0038331hotifw.svg", width: "100%") \ No newline at end of file diff --git a/app/views/layouts/_menu.haml b/app/views/layouts/_menu.haml index 17a70150d..c93c34097 100644 --- a/app/views/layouts/_menu.haml +++ b/app/views/layouts/_menu.haml @@ -52,6 +52,7 @@ .dropdown-menu{"aria-labelledby" => "navbarDropdown"} = link_to t('.community_map'), places_path, class: 'dropdown-item' = link_to t('.browse_members'), members_path, class: 'dropdown-item' + = link_to t('.community_gardens'), community_gardens_path, class: 'dropdown-item' = link_to t('.posts'), posts_path, class: 'dropdown-item' = link_to t('.forums'), forums_path, class: 'dropdown-item' diff --git a/config/locales/en.yml b/config/locales/en.yml index 355add24e..d0a141d10 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -219,6 +219,18 @@ en: pwa_ios_steps_html: 1. Tap the Share button in Safari.
2. Scroll down and tap Add to Home Screen'. pwa_ios_title: For iOS (iPhone/iPad) pwa_title: Want to install Growstuff on your phone? + community_gardens: + title: Community Gardens on Growstuff + meta_description: Manage your community garden, track your plantings, and collaborate with other gardeners. + header: Community Gardens + lead: Growstuff is open source and the perfect place to manage your community garden. Track your plantings, celebrate your harvests, and collaborate with your fellow gardeners, all in one place. + get_started: Get Started Today + get_started_text: Signing up for Growstuff is free and easy. Create an account to start tracking your garden today. + sign_up: Sign up for free + collaborate: Collaborate with Your Team + collaborate_text: Invite other gardeners to collaborate on your garden plots. Share the work, share the harvest, and grow together as a community. + learn_more: Learn more about gardens + features_title: Features for Community Gardens label: days_until_harvest: "%{number} days" weeks_until_harvest: "%{number} weeks until harvest" @@ -235,6 +247,7 @@ en: browse_members: Browse Members community: Community community_map: Community Map + community_gardens: Community Gardens garden_type: Garden Type garden_types: Garden Types crop_wrangling: Crop Wrangling diff --git a/config/routes.rb b/config/routes.rb index 64266b4f8..343226f46 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -23,6 +23,7 @@ Rails.application.routes.draw do resources :authentications, only: %i(create destroy) get "home/index" + get '/community-gardens', to: 'home#community_gardens' root to: 'home#index' concern :has_photos do