Permalink
Browse files

code section. closes #9

  • Loading branch information...
1 parent 44d05b3 commit 1d971bcc3b1f968a3a6ef77bc9d89b8756213046 @adamcooke adamcooke committed Oct 29, 2013
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,17 @@
+<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
+<svg version="1.1"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ x="0px" y="0px" width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve">
+<defs>
+</defs>
+<g>
+ <path fill="#231F20" d="M16,0C7.162,0,0,7.162,0,16s7.162,16,16,16c8.838,0,16-7.162,16-16S24.838,0,16,0z M16,30
+ C8.28,30,2,23.72,2,16S8.28,2,16,2c7.72,0,14,6.28,14,14S23.72,30,16,30z"/>
+ <path fill="#231F20" d="M16,5C9.926,5,5,9.926,5,16s4.926,11,11,11c6.074,0,11-4.926,11-11S22.074,5,16,5z M16,25
+ c-4.963,0-9-4.037-9-9s4.037-9,9-9c4.963,0,9,4.037,9,9S20.963,25,16,25z"/>
+ <path fill="#231F20" d="M16,9.5c-3.587,0-6.5,2.912-6.5,6.5c0,3.587,2.913,6.5,6.5,6.5c3.587,0,6.5-2.913,6.5-6.5
+ C22.5,12.412,19.587,9.5,16,9.5z M16,20.5c-2.481,0-4.5-2.019-4.5-4.5s2.019-4.5,4.5-4.5c2.481,0,4.5,2.019,4.5,4.5
+ S18.481,20.5,16,20.5z"/>
+ <circle fill="#231F20" cx="16" cy="16" r="2"/>
+</g>
+</svg>
@@ -6,10 +6,10 @@
<defs>
</defs>
<g>
- <path fill="#FFFFFF" d="M12.612,21.639c-0.488,0.138-0.988,0.204-1.486,0.204c-1.822,0-3.625-0.892-4.784-2.451L5.511,20.01
+ <path fill="#333" d="M12.612,21.639c-0.488,0.138-0.988,0.204-1.486,0.204c-1.822,0-3.625-0.892-4.784-2.451L5.511,20.01
c1.356,1.825,3.473,2.869,5.619,2.869c0.591,0,1.184-0.08,1.764-0.243c3.012-0.85,4.984-3.696,4.796-6.922l-1.034,0.061
C16.815,18.511,15.152,20.922,12.612,21.639z"/>
- <path fill="#FFFFFF" d="M31.031,8.287c-0.008-0.006-0.455-0.275-1.12-0.693c0.662-0.499,1.147-0.88,1.292-0.995
+ <path fill="#333" d="M31.031,8.287c-0.008-0.006-0.455-0.275-1.12-0.693c0.662-0.499,1.147-0.88,1.292-0.995
c0.485-0.365,0.8-0.945,0.8-1.599c0-1.105-0.893-2-1.997-2H30H25.44c-1.384-1.877-3.608-3-6.069-3
c-4.147,0-7.521,3.388-7.521,7.552c0,1.2,0.281,2.356,0.806,3.392l-1.527,0.431l-7.089-0.907c-0.085-0.011-0.17-0.017-0.254-0.017
c-0.446,0-0.882,0.149-1.236,0.428c-0.421,0.331-0.691,0.817-0.751,1.351c-0.067,0.594-0.084,1.192-0.053,1.791
@@ -22,6 +22,6 @@
c-0.629,0.126-1.27,0.185-1.914,0.185c-4.487,0-9.165-2.9-11.086-6.748l1.16-0.529C2.807,17.3,2.512,16.646,2.3,15.942l1.658-0.467
c-0.218-0.967-0.289-1.984-0.173-3.024l7.493,0.959l3.6-1.015l1.081-0.508c-1.282-1.011-2.109-2.576-2.109-4.336
C13.85,4.503,16.321,2,19.37,2c2.178,0,4.055,1.168,4.953,3H30c0,0-1.794,1.429-3.627,2.675C28.206,8.92,30,10,30,10H24z"/>
- <circle fill="#FFFFFF" cx="20.999" cy="6" r="1"/>
+ <circle fill="#333" cx="20.999" cy="6" r="1"/>
</g>
</svg>
@@ -0,0 +1,16 @@
+<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
+<svg version="1.1"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ x="0px" y="0px" width="33.003px" height="32px" viewBox="0 0 33.003 32" enable-background="new 0 0 33.003 32"
+ xml:space="preserve">
+<defs>
+</defs>
+<path fill="#231F20" d="M33.003,5c0-1.105-0.894-2-1.998-2H31H9.505l-0.4-1.513C8.871,0.61,8.078,0,7.171,0H2C0.895,0,0,0.896,0,2v2
+ c0,1.104,0.895,2,2,2h2.03l4.647,17.513c0.057,0.21,0.144,0.405,0.258,0.58C8.347,24.912,8,25.917,8,27c0,2.757,2.243,5,5,5
+ c2.757,0,5-2.243,5-5c0-0.71-0.149-1.387-0.418-2h4.836C22.149,25.613,22,26.29,22,27c0,2.757,2.243,5,5,5c2.757,0,5-2.243,5-5
+ c0-0.912-0.245-1.767-0.673-2.503C31.74,24.13,32,23.595,32,23v-2c0-0.747-0.409-1.398-1.017-1.742l1.977-13.851
+ C32.988,5.276,33.003,5.14,33.003,5z M25,15h4.615L29,19h-4V15z M18,5h6v4h-6V5z M18,10h6v4h-6V10z M18,15h6v4h-6V15z M17,5v4
+ h-5.999l-0.912-4H17z M12.186,14l-0.91-4H17v4H12.186z M17,15v4h-3.626l-0.912-4H17z M13,30c-1.657,0-3-1.343-3-3s1.343-3,3-3
+ c1.657,0,3,1.343,3,3S14.657,30,13,30z M27,30c-1.657,0-3-1.343-3-3s1.343-3,3-3c1.657,0,3,1.343,3,3S28.657,30,27,30z M30,23H10.61
+ L5.569,4H2V2h5.171l5.039,19H30V23z M29.769,14H25v-4h5.23L29.769,14z M30.385,9H25V5h6L30.385,9z"/>
+</svg>
@@ -15,6 +15,7 @@
$font: 'proxima-nova', Arial, sans-serif;
html { font-family:$font; font-size:12px; background-color:#40454d; -webkit-font-smoothing:antialiased; }
+body { overflow-y:scroll;}
//
// The page inner container
@@ -56,6 +57,8 @@ nav.primary {
border-bottom:3px solid transparent;
&:hover, &.active { border-bottom-color:rgba(255,255,255,0.2)}
}
+ &.demo { float:right ; margin-left:40px; margin-right:0;}
+ &.demo a {background:#fff; padding-bottom:0; border-bottom:0; font-size:1.1em; color:#86A800; padding:4px 12px; border-radius:4px; }
}
}
}
@@ -8,6 +8,7 @@ header.page {
h1 a { background-image:image-url('logo.svg')}
ul li a { color:#000;}
ul li a:hover, ul li a.active { border-bottom-color:rgba(0,0,0,0.1)}
+ ul li.demo a { background:#86A800; color:#fff;}
}
}
@@ -37,7 +38,14 @@ section.page {
padding-top:190px;
background-image:image-url('backgrounds/supermarket.jpg');
}
-
+
+ //
+ // About banner
+ //
+ &.code {
+ padding-top:190px;
+ background-image:image-url('backgrounds/warehouse.jpg');
+ }
//
// Features banner
@@ -216,6 +224,18 @@ section.page {
width:25%;
float:right;
padding-top:25px;
+
+ p.own-mod {
+ background:image-url('icons/duck.svg') #efefef no-repeat 16px 16px;
+ background-size:26px;
+ font-size:1.1em;
+ padding:15px;
+ padding-left:53px;
+ line-height:1.5;
+ border-radius:6px;
+ a { color:#333;}
+ }
+
ul.largeButtons {
li {
margin-bottom:25px;
@@ -264,15 +284,32 @@ section.page {
h3 { font-size:2.0em; margin:20px 0; font-weight:600;}
p { margin:20px 0; font-size:1.3em; line-height:1.8;}
p a { color:#0096C9; text-decoration:none; border-bottom:1px solid #E7EFF2; font-weight:600;}
-
+ p.meta { font-size:1.1em; color:#999;}
div.license {
background:#f7f7f7;
border:1px solid #ccc;
font-family:Consolas, Monaco, 'Courier New', fixed;
font-size:0.9em;
padding:1px 15px;
}
-
+
+ ul.modules {
+ font-size:1.2em;
+ li {
+ margin-bottom:15px;
+ background:#f5fbfd;
+ border:1px solid #cfdde2;
+ padding:15px;
+ p { margin:0; font-size:1.0em;}
+ h4 { font-size:1.3em; font-weight:bold; }
+ h4 a { color:#28A6D1; text-decoration:none;}
+ p.desc { font-size:0.9em;}
+ p.buttons { float:right;}
+ p.buttons a { padding:3px 15px;}
+ }
+
+ }
+
section.iconed {
padding-left:50px;
margin:40px 0;
@@ -282,8 +319,13 @@ section.page {
&.contributing.design { background-image:image-url('icons/design.svg')}
&.contributing.documentation { background-image:image-url('icons/docs.svg')}
&.contributing.other { background-image:image-url('icons/question.svg')}
+ &.code.demo { background-image:image-url('icons/trolley.svg')}
+ &.code.core { background-image:image-url('icons/core.svg')}
}
+ p.badge { float:right; margin:0; margin-top:4px;}
+ p.badge a { border:0; padding:0;}
+
ul.list { margin-top:15px; line-height:1.8; font-size:1.3em; margin-left:35px;}
ul.list li { background:image-url('icons/pin.svg') no-repeat 0 4px; padding-left:30px; background-size:16px;}
@@ -303,6 +345,15 @@ section.page {
p.download { border-radius:7px; background:#f3f6ec;padding:25px 0; text-align:center; margin:30px 0;}
+ section.release-notes {
+ h3 { border-bottom:1px solid #333;}
+ ul {
+ li { font-size:1.2em; background:image-url('icons/pin.svg') no-repeat 0 5px; background-size:14px; padding-left:25px; margin-bottom:15px;line-height:2.0;}
+ p { font-size:1.0em; }
+ li code { background:#efefef; font-size:0.9em; padding:1px 3px; border:1px solid #ddd; border-radius:3px;}
+ }
+ }
+
p.buttons {
margin:30px 0;
a {
@@ -316,12 +367,27 @@ section.page {
background: -ms-linear-gradient(top, #fcfcfc 0%,#efefef 100%); /* IE10+ */
background: linear-gradient(to bottom, #fcfcfc 0%,#efefef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */
- font-size:0.9em;
+ font-size:0.85em;
font-weight:600;
- padding:4px 15px;
+ padding:3px 20px;
+ color:#333;
border:1px solid #ccc;
border-radius:4px;
margin-right:5px;
+ &:hover {
+ color:#666;
+ }
+ &:active {
+ background: #fcfcfc; /* Old browsers */
+ background: -moz-linear-gradient(top, #fcfcfc 0%, #ddd 100%); /* FF3.6+ */
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfcfc), color-stop(100%,#ddd)); /* Chrome,Safari4+ */
+ background: -webkit-linear-gradient(top, #fcfcfc 0%,#ddd 100%); /* Chrome10+,Safari5.1+ */
+ background: -o-linear-gradient(top, #fcfcfc 0%,#ddd 100%); /* Opera 11.10+ */
+ background: -ms-linear-gradient(top, #fcfcfc 0%,#ddd 100%); /* IE10+ */
+ background: linear-gradient(to bottom, #fcfcfc 0%,#ddd 100%); /* W3C */
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ddd',GradientType=0 ); /* IE6-9 */
+
+ }
}
}
@@ -4,4 +4,13 @@ def home
render :layout => 'home'
end
+ def release_notes
+ notes_path = Rails.root.join('db', 'CHANGELOG.md')
+ if File.exist?(notes_path)
+ @notes = File.read(notes_path)
+ else
+ @notes = ''
+ end
+ end
+
end
@@ -0,0 +1,28 @@
+- @active_nav = :code
+= content_for :banner do
+ .banner.code
+ %nav.page.four
+ .inner
+ %ul
+ %li
+ %a{:href => code_path}
+ %h4 Our repositories
+ %p Details of the main Shoppe Git repositories
+ - if action_name == 'code'
+ .arrow
+ %li
+ %a{:href => code_release_notes_path}
+ %h4 Release notes
+ %p Full details about changes in each version of Shoppe
+ - if action_name == 'release_notes'
+ .arrow
+ %li
+ %a{:href => 'https://github.com/tryshoppe/core/issues'}
+ %h4 Issue tracker
+ %p Browse all the existing bugs & feature requests submitted
+ %li
+ %a{:href => code_modules_path}
+ %h4 Modules
+ %p Details about the various modules which are available
+ - if action_name == 'modules'
+ .arrow
@@ -4,7 +4,6 @@
%section.content
.inner
.sub
-
.main
%h2 About Shoppe
%p
@@ -0,0 +1,38 @@
+- @page_title = "Code"
+= render 'code_nav'
+
+%section.content
+ .inner
+ .sub
+ .main
+ %h2 The Shoppe code repositories
+ %p
+ We have two main repositories which may be of interest to you. As Shoppe itself
+ is just an engine, it has it's own repository which can be included into any
+ Rails application through a RubyGem. Additionally, we also have a full Rails
+ application (our demo store) which can be used as a basis for any new store
+ if you don't wish to start from scratch.
+
+ %section.iconed.code.core
+ %p.badge= link_to image_tag("https://badge.fury.io/rb/shoppe.png"), "http://rubygems.org/gems/shoppe"
+ %h3 The core repository
+ %p
+ The core repository contains all the Shoppe models, admin UI and logic needed
+ to run your store. Unless your contributing to the core project, you won't
+ need make any changes to this. This repository is packed up as a RubyGem
+
+ %p.buttons
+ = link_to "Browse files", "https://github.com/tryshoppe/core"
+ = link_to "View commits", "https://github.com/tryshoppe/core/commits"
+ = link_to "Check out the RubyGem", "http://rubygems.org/gems/shoppe"
+
+ %section.iconed.code.demo
+ %h3 The example/demo site
+ %p
+ The example/demo Rails application provides a fully working, fully integrated,
+ Shoppe store which can be used as the basis for a new application.
+ %p.buttons
+ = link_to "Browse files", "https://github.com/tryshoppe/example-store"
+ = link_to "View commits", "https://github.com/tryshoppe/example-store/commits"
+ = link_to "See it in action", "http://demo.tryshoppe.com"
+
@@ -35,5 +35,4 @@
%li Additional payment gateways
%li Integrations with external accounting software
%li Integrations with drop shipping services
- %li Courier/Delivery service integrations and support
- %li
+ %li Courier/Delivery service integrations and support
@@ -0,0 +1,26 @@
+- @page_title = "Modules - Code"
+= render 'code_nav'
+
+%section.content
+ .inner
+ .sub
+ %p.own-mod
+ If you have developed a module and would like it listed either #{mail_to 'development@tryshoppe.com', 'contact us'}
+ or #{link_to 'fork the website repo', 'http://github.com/tryshoppe/website'} and submit a pull request.
+
+ .main
+ %h2 The module store
+ %p
+ This page lists all the modules which are available for Shoppe at the present time. At the moment,
+ we don't have too many of these so feel free to write some modules!
+
+ %h3 Payment Processors
+ %ul.modules
+
+ %li
+ %p.buttons
+ = link_to "Repository", "http://github.com/tryshoppe/stripe"
+ = link_to "Docs", "https://github.com/tryshoppe/stripe/blob/master/README.md"
+ %h4= link_to "Stripe"
+ %p.desc Integrate your Shoppe store with the Stripe payment processor.
+
@@ -0,0 +1,7 @@
+- @page_title = "Release Notes - Code"
+= render 'code_nav'
+%section.content
+ .inner
+ .main
+ %section.release-notes
+ = markdown @notes
@@ -1,10 +1,11 @@
%nav.primary
%h1= link_to 'Shoppe', root_path
%ul
+ %li.demo= link_to "Try the demo", "http://demo.tryshoppe.com"
%li= link_to "Home", root_path, :nav_item => :home
%li= link_to "Features", features_path, :nav_item => :features
- %li= link_to "Demo", "http://demo.tryshoppe.com"
%li= link_to "Docs & Tutorials", docs_path, :nav_item => :docs
+ %li= link_to "Code", code_path, :nav_item => :code
%li= link_to "Support", support_path, :nav_item => :support
%li= link_to "About", about_path, :nav_item => :about
View
@@ -1,12 +1,14 @@
ShoppeWebsite::Application.routes.draw do
get 'features' => 'pages#features'
- get 'code' => 'pages#code'
- get 'support' => 'pages#support'
-
+
get 'docs' => 'documentation#index'
get 'docs/*path' => 'documentation#page', :as => 'docs_page'
+ get 'code' => 'pages#code'
+ get 'code/release-notes' => 'pages#release_notes', :as => 'code_release_notes'
+ get 'code/modules' => 'pages#modules'
+
get 'support' => 'pages#support'
get 'support/involvement' => 'pages#involvement'
get 'support/commercial' => 'pages#commercial_support'

0 comments on commit 1d971bc

Please sign in to comment.