mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 06:15:44 -04:00
Merge pull request #4380 from Growstuff/community-garden-landing-page
feat: Add community garden landing page
This commit is contained in:
committed by
GitHub
parent
f1c2a2a7fb
commit
7457edf559
835
app/assets/images/girlwithvegetables-0038331hotifw.svg
Normal file
835
app/assets/images/girlwithvegetables-0038331hotifw.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 266 KiB |
@@ -33,4 +33,4 @@
|
||||
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
37
app/views/home/community_gardens.html.haml
Normal file
37
app/views/home/community_gardens.html.haml
Normal file
@@ -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%")
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -219,6 +219,18 @@ en:
|
||||
pwa_ios_steps_html: 1. Tap the <strong>Share</strong> button in Safari.<br>2. Scroll down and tap <strong>Add to Home Screen</strong>'.
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user