Add basic sell page

Conflicts:
	config/routes.rb
This commit is contained in:
Rohan Mitchell
2016-07-07 14:58:07 +10:00
parent 1054fd2d05
commit 0830a5bd85
5 changed files with 45 additions and 1 deletions

View File

@@ -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

View File

@@ -9,4 +9,8 @@ class HomeController < BaseController
@num_orders = Spree::Order.complete.count
end
end
def sell
end
end

View 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"

View File

@@ -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.

View File

@@ -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