Permalink
Browse files

website; add app imgs

  • Loading branch information...
1 parent 78e5510 commit 4ee2624c1863bb958b238b6dd1f3ceb92b2e0a3a @aheckmann aheckmann committed Oct 20, 2012
View
21 docs/css/guide.css
@@ -10,6 +10,7 @@ html, body, #content {
.module {
min-height: 100%;
box-sizing: border-box;
+ overflow-x: hidden;
}
body {
background: #d8e2d8 url(/docs/images/square_bg.png) fixed;
@@ -60,6 +61,12 @@ pre code {
h2 {
margin-top: 0;
}
+h2 a {
+ font-size: 12px;
+ position: relative;
+ bottom: 3px;
+ font-weight: normal;
+}
h3 { padding-top: 35px; }
h3 code {
font-weight: normal;
@@ -213,6 +220,20 @@ li.guide ul {
padding-left: 16px;
}
+ul.inthewild {
+ margin: 30px 0 0 -30px;
+ padding: 0;
+ width: 125%;
+ max-width: 125%;
+}
+ul.inthewild li {
+ display: inline-block;
+ list-style: none;
+}
+ul.inthewild img {
+ width: 200px;
+}
+
@media only screen and (device-width: 768px) {
}
View
4 docs/css/style.css
@@ -6,16 +6,20 @@ body {
padding: 0;
margin: 0;
}
+
+/* location.hash */
:target::before {
content: ">>> ";
color: #1371C9;
font-weight: bold;
font-size: 20px;
}
+/* ignore home page hash */
#production:target::before {
content: "";
font-size: inherit;
}
+
a {
color: #800;
-webkit-transition-property: opacity, -webkit-transform, color, background-color, padding, -webkit-box-shadow;
View
BIN docs/images/apps/dashku.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/images/apps/firstimpression.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/images/apps/mcdonalds.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/images/apps/muffle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/images/apps/squadsheet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/images/apps/veriwalk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/images/apps/zootify.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
11 docs/production.jade
@@ -0,0 +1,11 @@
+extends layout
+
+block content
+ h2
+ | Mongoose In The Wild
+ a(href='mailto:aaronheckmann+github@gmail.com?subject=Please add my project to mongoosejs.com', title='add/remove your project') (add your project)
+ ul.inthewild
+ each img in images
+ li
+ a(href=img.url, title=img.title + ' ' + img.desc)
+ img(src="images/apps/" + img.src + ".png", alt=img.title + ' ' + img.desc)
View
12 docs/source/home.js
@@ -1,19 +1,7 @@
-var fs = require('fs')
var package = require('./../../package.json')
-var images = fs.readFileSync(__dirname + '/../images/apps/urls', 'utf-8').split('\n');
-
-var imgs = [];
-
-images.forEach(function (line) {
- line = line.trim();
- if (!line) return;
- line = line.split('|');
- imgs.push({ url: line[0], title: line[1], desc: line[2], src: line[1].toLowerCase().replace(/\s/g,'') });
-});
module.exports = {
package: package
- , images: imgs
, title: 'ODM'
}
View
1 docs/source/index.js
@@ -2,6 +2,7 @@
exports['index.jade'] = require('./home')
exports['docs/api.jade'] = require('./api')
exports['docs/index.jade'] = { title: 'Getting Started' }
+exports['docs/production.jade'] = require('./production')
exports['docs/prior.jade'] = require('./prior')
exports['docs/guide.jade'] = { guide: true, schema: true, title: 'Schemas' }
exports['docs/schematypes.jade'] = { guide: true, schema: true, title: 'SchemaTypes' }
View
17 docs/source/production.js
@@ -0,0 +1,17 @@
+
+var fs = require('fs')
+var images = fs.readFileSync(__dirname + '/../images/apps/urls', 'utf-8').split('\n');
+
+var imgs = [];
+
+images.forEach(function (line) {
+ line = line.trim();
+ if (!line) return;
+ line = line.split('|');
+ imgs.push({ url: line[0], title: line[1], desc: line[2], src: line[1].toLowerCase().replace(/\s/g,'') });
+});
+
+module.exports = {
+ images: imgs
+ , title: 'Production'
+}
View
2 index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Mongoose ODM v3.3.1</title><link href="http://fonts.googleapis.com/css?family=Anonymous+Pro:400,700|Droid+Sans+Mono|Open+Sans:400,700|Linden+Hill|Quattrocento:400,700|News+Cycle:400,700|Antic+Slab|Cabin+Condensed:400,700" rel="stylesheet" type="text/css"><link href="docs/css/default.css" rel="stylesheet"><link href="docs/css/style.css" rel="stylesheet"></head><body class="home"><a id="forkbanner" href="http://github.com/learnboost/mongoose"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a><div id="wrap"><div id="header"><h1><a href="https://github.com/learnboost/mongoose" target="blank"><div class="mongoose">Mongoose</div></a></h1></div><p class="tagline">Elegant <a href="http://www.mongodb.org/" target="blank">MongoDB</a> object modeling for <a href="http://nodejs.org/" target="blank">Node.js</a></p><div id="links"><ul><li><a href="docs/guide.html">Docs</a></li><li><a href="http://plugins.mongoosejs.com">Plugins</a></li></ul></div><p class="blurb"><a href="docs/middleware.html">Flexible</a>, <a href="docs/guide.html">schema based</a> and <a href="docs/queries.html">feature-rich</a>, mongoose solves common problems for <a href="#production">real-world</a> applications.</p><div id="example"><pre><code class="javascript"><span class="keyword">var</span> mongoose = require(<span class="string">'mongoose'</span>);
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Mongoose ODM v3.3.1</title><link href="http://fonts.googleapis.com/css?family=Anonymous+Pro:400,700|Droid+Sans+Mono|Open+Sans:400,700|Linden+Hill|Quattrocento:400,700|News+Cycle:400,700|Antic+Slab|Cabin+Condensed:400,700" rel="stylesheet" type="text/css"><link href="docs/css/default.css" rel="stylesheet"><link href="docs/css/style.css" rel="stylesheet"></head><body><a id="forkbanner" href="http://github.com/learnboost/mongoose"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a><div id="wrap"><div id="header"><h1><a href="https://github.com/learnboost/mongoose" target="blank"><div class="mongoose">Mongoose</div></a></h1></div><p class="tagline">Elegant <a href="http://www.mongodb.org/" target="blank">MongoDB</a> object modeling for <a href="http://nodejs.org/" target="blank">Node.js</a></p><div id="links"><ul><li><a href="docs/guide.html">Docs</a></li><li><a href="http://plugins.mongoosejs.com">Plugins</a></li></ul></div><p class="blurb"><a href="docs/middleware.html">Flexible</a>, <a href="docs/guide.html">schema based</a> and <a href="docs/queries.html">feature-rich</a>, mongoose solves common problems for <a href="#production">real-world</a> applications.</p><div id="example"><pre><code class="javascript"><span class="keyword">var</span> mongoose = require(<span class="string">'mongoose'</span>);
<span class="keyword">var</span> db = mongoose.createConnection(<span class="string">'localhost'</span>, <span class="string">'test'</span>);
<span class="keyword">var</span> schema = mongoose.Schema({ name: <span class="string">'string'</span> });

0 comments on commit 4ee2624

Please sign in to comment.