Added link to 'About OFN' page (as well as the base for that page).

This commit is contained in:
alexs
2013-08-13 11:36:24 +10:00
parent 03b36bb14b
commit 215d6030d7
5 changed files with 49 additions and 30 deletions

View File

@@ -45,6 +45,18 @@
height: 100%;
}
a {
&:link {
color: #FFF;
}
&:visited {
color: #FFF;
}
&:hover {
color: $primary-color;
}
}
#home-page-nav
{
ul {
@@ -58,12 +70,6 @@
font-weight: bold;
color: #FFF;
a {
&:link {
color: #FFF;
}
}
&:before {
content: " | ";
}
@@ -91,4 +97,8 @@
.centered {
text-align: center;
}
#logo-container {
margin-bottom: emCalc(25);
}

View File

@@ -3,4 +3,7 @@ class HomeController < ApplicationController
def new_landing_page
end
def about_us
end
end

View File

@@ -0,0 +1,8 @@
.row
.large-12.columns
%h2 What is open food network
%p
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

View File

@@ -1,26 +1,23 @@
%span#image-url-container.hide{ "data-url" => "#{LandingPageImage.random.photo.url(:max_common_res)}" }
%section{ role: "main" }
.row
.large-10.large-centered.columns
#postcode_select_box
.row
= form_tag search_enterprises_path do
.large-10.columns
= text_field_tag :suburb_search, "",
data: { autocomplete_source: suburbs_path }, class: "right", placeholder: "Enter your suburb or postcode..."
= hidden_field_tag :suburb_id
.large-2.columns
= submit_tag "Search", class: "button-huge"
.row
.large-12.large-centered.columns
%p Open Food Web - fresh opportunities for farmers and eaters
.row.show-for-small
.large-12.large-centered.columns#home-page-nav
%ul
%li= link_to "DISTRIBUTORS", "#"
%li= link_to "FARMERS", "#"
%section#sidebar{ role: "complementary" }
= render "login"
.row
.large-10.large-centered.columns
#postcode_select_box
.row
= form_tag search_enterprises_path do
.large-10.columns
= text_field_tag :suburb_search, "",
data: { autocomplete_source: suburbs_path }, class: "right", placeholder: "Enter your suburb or postcode..."
= hidden_field_tag :suburb_id
.large-2.columns
= submit_tag "Search", class: "button-huge"
.row
.large-12.large-centered.columns
= link_to about_us_path do
%strong
%i What is open food network?
.row.show-for-small
.large-12.large-centered.columns#home-page-nav
%ul
%li= link_to "DISTRIBUTORS", "#"
%li= link_to "FARMERS", "#"

View File

@@ -24,6 +24,7 @@ Openfoodweb::Application.routes.draw do
end
get "new_landing_page", :controller => 'home', :action => "new_landing_page"
get "about_us", :controller => 'home', :action => "about_us"
namespace :open_food_web do
resources :cart