Adding basic layout of welcome page for new users

This commit is contained in:
Rob Harrington
2014-10-22 18:26:18 +11:00
parent 7113875a45
commit fef97314cb
4 changed files with 133 additions and 2 deletions

View File

@@ -0,0 +1,49 @@
#welcome_page
color: #000000
h1, h2, h3, h4, h5, h6
color: #000000
.plain_text
font-size: 16px
#welcome
text-align: center
margin: 50px 0px
h1
margin-bottom: 10px
#next_steps
text-align: center
margin-bottom: 50px
h1
margin-bottom: 10px
.options
.option
.selector
border: 3px solid black
border-radius: 12px 12px 0px 0px
text-align: center
margin-bottom: 20px
.top
min-height: 113px
padding: 15px 8px
h2
margin-bottom: 10px
.bottom
border-top: 3px solid black
padding: 8px 0px
&.disabled
color: #b0b0b0
.selector
border-color: #b0b0b0
h1, h2, h3, h4, h5, h6
color: #b0b0b0
.bottom
border-top-color: #b0b0b0
.description
font-size: 16px
text-align: justify

View File

@@ -8,7 +8,7 @@ Spree::Admin::OverviewController.class_eval do
if spree_current_user.manages_one_enterprise?
@enterprise = @enterprises.first
if @enterprise.sells == "unspecified"
render "welcome"
render "welcome", layout: "spree/layouts/bare_admin"
else
render "single_enterprise_dashboard"
end

View File

@@ -1 +1,60 @@
Welcome
#welcome_page.sixteen.columns.alpha{ ng: { controller: 'WelcomeCtrl' } }
#welcome
%h1 Welcome to the Open Food Network!
%h6= "You have successfully created a#{" producer" if @enterprise.is_primary_producer} profile"
#next_steps
%h1 Next Steps
.plain_text
Choose how you would like to use
%br/
the Open Food Network
.options.sixteen.columns.alpha
- if @enterprise.is_primary_producer
.basic_producer.option.one-third.column.alpha
.selector
.top
%h2 Basic Producer
.plain_text Supply only
.bottom
%h5 ALWAYS FREE
.description
You want to use OFN as a place for people to find and contact you.
You can also add your products, allowing customers to see your product range and allowing you to act as a supplier to other shopfronts.
.producer_shop.option.one-third.column
.selector
.top
%h2 Producer with Shop
.plain_text Sell your products through an OFN shopfront
.bottom
%h5 30 DAY TRIAL
.description
Test out having your own shopfront with full access to all Shopfront features for 30 days.
After your trial expires you can keep your Shopfront for a subscription cost of $50 per month.
.full_hub.option.one-third.column.omega.disabled
.selector
.top.center
%h2 Full Hub
.plain_text Sell other producers' products through an OFN shopfront
.bottom.center
%h5 COMING SOON
.description
You want to offer other producers' products for sale as well as your own, establish and coodinate trading relationships with other enterprises and
A full hub subscription gives you access to our complete suite of features for managing your food enterprise.
- else
.shop_profile.option.one-third.column.alpha
.button
.top.center
%h2 Shop Profile
.plain_text Get a listing
.bottom.center
%h5 ALWAYS FREE
.description
You want to use OFN as a place for people to find and contact you.
// Coming soon - Full Hub
// Email us if you want this option

View File

@@ -0,0 +1,23 @@
%html{ lang: "en" }
%head{"data-hook" => "admin_inside_head"}= render :partial => 'spree/admin/shared/head'
%body.admin{"data-ajax-root-path" => spree.root_path}
#wrapper{"data-hook" => ""}
- if flash[:error]
.flash.error= flash[:error]
- if notice
.flash.notice= notice
- if flash[:success]
.flash.success= flash[:success]
#progress
.wrapper
#spinner
.progress-message
= t(:loading)
\...
= render :partial => 'spree/admin/shared/alert', :collection => session[:alerts]
.container
.row
#content{"data-hook" => ""}
%div{:class => "sixteen columns"}
= yield
%div{"data-hook" => "admin_footer_scripts"}