mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Adding basic layout of welcome page for new users
This commit is contained in:
49
app/assets/stylesheets/admin/welcome.css.sass
Normal file
49
app/assets/stylesheets/admin/welcome.css.sass
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
23
app/views/spree/layouts/bare_admin.html.haml
Normal file
23
app/views/spree/layouts/bare_admin.html.haml
Normal 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"}
|
||||
Reference in New Issue
Block a user