Step 1 in converting to a Backbone-based website

This commit is contained in:
Andrew Miner
2014-12-22 16:36:04 -08:00
parent dc9fd0de07
commit 16832e02dd
95 changed files with 41866 additions and 17 deletions
+33
View File
@@ -0,0 +1,33 @@
//-
//- Crafting Guide - _footer.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
.view__footer
.divider.top
.left
h2: p About
p Crafting Guide shows you what materials you need to craft even the most complex items, including all the tools
| you'd need (from a crafting table to an industrial centrifuge).
p If you have any questions, comments or requests, feel free to
| <a href="https://github.com/andrewminer/crafting-guide/issues/new">create an issue</a> on GitHub or
| <a href="mailto:andrewminer-at-mac.com">email me</a>.</p>
.center
h2: p Donate
p Crafting Guide is free for all, but if you find it helpful, donations in any amount are gratefully accepted.
form(action="https://www.paypal.com/cgi-bin/webscr", class="centered", method="post", target="_top")
input(type="hidden", name="cmd", value="_s-xclick")
input(type="hidden", name="hosted_button_id", value="GCB2TYZJYLAE6")
input(type="image", src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif", border="0",
name="submit" alt="PayPal - The safer, easier way to pay online!")
img(src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif", width="1", height="1")
.right
h2: p Get Involved
p Crafting Guide is completely open-source, and you can help! Whether you want to write a recipe book (all
| simple JSON), or implement new features, just head over to GitHub to get started.
.centered
iframe(src="http://ghbtns.com/github-btn.html?user=andrewminer&repo=crafting-guide&type=fork&size=large",
allowtransparency="true", frameborder="0", scrolling="0", width="100", height="32")
.divider.bottom
+15
View File
@@ -0,0 +1,15 @@
//-
//- Crafting Guide - _google_analytics.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
script.
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5871323-4', 'crafting-guide.com');
ga('send', 'pageview');
+12
View File
@@ -0,0 +1,12 @@
//-
//- Crafting Guide - _header.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
.view__header
h1
img(src="images/workbench_front.png")
p Crafting Guide
.divider.bottom
+15
View File
@@ -0,0 +1,15 @@
//-
//- Crafting Guide - index.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
extends ./layouts/basic
block content
.page
append scripts
script(src="/js/main.js")
include ./includes/_google_analytics.jade
+33
View File
@@ -0,0 +1,33 @@
//-
//- Crafting Guide - basic.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
block basic-vars
- var pageTitle = 'Crafting Guide'
doctype html
html
head
title= pageTitle
meta(charset="UTF-8")
block styles
link(rel="stylesheet", type="text/css", href="css/main.css")
body
.content
include ../includes/_header.jade
block content
include ../includes/_footer.jade
block scripts
script(src="/js/underscore.js")
script(src="/js/jquery.js")
script(src="/js/backbone.js")
script(src="/js/jade.js")
script(src="/js/when.js")
+20
View File
@@ -0,0 +1,20 @@
//-
//- Crafting Guide - test.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
extend ./layouts/basic
append styles
link(rel="stylesheet", type="text/css", href="css/mocha.css")
style #mocha-stats { position: absolute; top: 9em; }
block content
#mocha
append scripts
script(src="/js/mocha.js")
script(src="/js/chai.js")
script(src="/js/test.js")