mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Add basic sell page
Conflicts: config/routes.rb
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#system.pane
|
||||
background-color: white
|
||||
|
||||
#brand-story.pane, #cta.pane, #shops.pane
|
||||
#brand-story.pane, #cta.pane, #shops.pane, #sell.pane
|
||||
@include tiledPane
|
||||
|
||||
#connect.pane
|
||||
|
||||
@@ -9,4 +9,8 @@ class HomeController < BaseController
|
||||
@num_orders = Spree::Order.complete.count
|
||||
end
|
||||
end
|
||||
|
||||
def sell
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
32
app/views/home/sell.html.haml
Normal file
32
app/views/home/sell.html.haml
Normal file
@@ -0,0 +1,32 @@
|
||||
- content_for(:title) do
|
||||
= t :sell_title
|
||||
|
||||
#panes
|
||||
#sell.pane
|
||||
.row.header
|
||||
.small-12.medium-12.columns.text-center
|
||||
%h2
|
||||
= t :sell_headline
|
||||
.row.content
|
||||
.small-12.medium-6.medium-offset-3.columns.text-center
|
||||
%p.text-big
|
||||
= t :sell_motivation
|
||||
|
||||
.pane
|
||||
.row
|
||||
.small-12.medium-4.columns.text-center
|
||||
%h3= t :sell_producers
|
||||
%a.button.transparent{href: signup_producers_path}
|
||||
= t :register_title
|
||||
|
||||
.small-12.medium-4.columns.text-center
|
||||
%h3= t :sell_shops
|
||||
%a.button.transparent{href: signup_shops_path}
|
||||
= t :register_title
|
||||
|
||||
.small-12.medium-4.columns.text-center
|
||||
%h3= t :sell_groups
|
||||
%a.button.transparent{href: signup_groups_path}
|
||||
= t :register_title
|
||||
|
||||
= render "shared/footer"
|
||||
@@ -605,6 +605,13 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
|
||||
register_title: Register
|
||||
|
||||
sell_title: "Sell"
|
||||
sell_headline: "Sell food"
|
||||
sell_motivation: "Here's why"
|
||||
sell_producers: "Producers"
|
||||
sell_shops: "Shops"
|
||||
sell_groups: "Groups"
|
||||
|
||||
shops_title: Shops
|
||||
shops_headline: Shopping, transformed.
|
||||
shops_text: Food grows in cycles, farmers harvest in cycles, and we order food in cycles. If you find an order cycle closed, check back soon.
|
||||
|
||||
@@ -15,6 +15,7 @@ Openfoodnetwork::Application.routes.draw do
|
||||
get "/discourse/sso", to: "discourse_sso#sso"
|
||||
|
||||
get "/map", to: "map#index", as: :map
|
||||
get "/sell", to: "home#sell", as: :sell
|
||||
|
||||
get "/register", to: "registration#index", as: :registration
|
||||
get "/register/auth", to: "registration#authenticate", as: :registration_auth
|
||||
|
||||
Reference in New Issue
Block a user