Permalink
Browse files

partners

  • Loading branch information...
1 parent 2286331 commit f6a52c90dec9ccd745c0ee23678d3c001d8da756 @sylvinus sylvinus committed Oct 18, 2012
Showing with 124 additions and 9 deletions.
  1. +1 −0 app.js
  2. +103 −0 partnerdata.json
  3. BIN public/partners/typhon.png
  4. +1 −1 public/stylesheets/app.css
  5. +11 −1 routes/index.js
  6. +7 −7 views/layout.ejs
  7. +1 −0 views/partner_detail.ejs
View
1 app.js
@@ -32,6 +32,7 @@ app.get('/about', routes.about);
app.get('/schedule', routes.schedule);
app.get('/workshops', routes.workshops);
app.get('/partners', routes.partners);
+app.get('/partner/:name', routes.partner);
app.get('/venue', routes.venue);
app.post('/*', routes.handleForm);
View
@@ -0,0 +1,103 @@
+{
+
+
+ "jolicloud":{
+ "text":"HA
+ <h3>About Jolicloud</h3>
+
+ <p>Jolicloud was created in 2009 with the vision of combining the infinite power of the cloud with the most simple and elegant user interface. The journey started with Joli OS, a free operating system transforming the way people are using low cost computers. Today, Jolicloud is the most innovative platform to access our life online, from computers to mobile.</p>
+
+ <p>Founded by Tariq Krim and Romain Huet, Jolicloud is headquarted in Paris, France.</p>
+
+ <h3>Why we're partnering with dotJS</h3>
+
+ <p>At Jolicloud we strongly agree strongly with Brendan Eich when we famously said “Always bet on JavaScript”. We have been pushing JavaScript to its limits, both on the client-side and the server-side to create beautiful and disruptive products.</p>
+
+ <p>As a company that relies on and believes in JavaScript, we are delighted to be partners of DotJS. This is a great initiative for the both international and local JS community and we hope that it is just beginning of something bigger.</p>
+
+ <p>Be sure to come by and meet us at our smoothie & juice bar — the Smoothie Stack — at the venue on the 30th!</p>
+
+ ",
+
+ "level":"bronze",
+
+ "logo":"",
+ "name":"Jolicloud",
+ "url":"http://jolicloud.com"
+ },
+
+
+ "typhon":{
+
+
+ },
+
+
+ "10gen":{
+
+
+ "text":"
+
+ <h3>About 10gen</h3>
+
+ <p>Node.js and <a href='http://www.mongodb.org/'> MongoDB</a> are both gaining traction as the default tools for building the real-time web, from analytics systems to chat servers to location-based tracking services.</p>
+
+ <p>Working with Node.js JavaScript means that MongoDB documents get their most natural representation — as JSON — right in the application layer, making development an easy and seamless process.</p>
+
+ <p>Play around with MongoDB and Node.js through <a href='https://github.com/mongodb/node-mongodb-native'> the official driver</a> try out the <a href='https://github.com/learnboost/mongoose'>Mongoose ODM </a> for a richer data-model library.</p>
+
+ <p>For updates on MongoDB releases, tips, tricks and tools, <a href='http://www.10gen.com/signup'>sign up for the MongoDB newsletter</a>.</p>
+ ",
+
+ "level":"silver",
+
+ "logo":"",
+ "name":"10gen",
+ "url":"http://10gen.com"
+
+ },
+
+
+
+ "typhon":{
+
+
+ "text":"
+
+ <h3>About Typhon</h3>
+
+ <p>Typhon offers managed web hosting, cloud, high availability and scalability.</p>
+
+ ",
+
+ "level":"bronze",
+
+ "logo":"/partners/typhon.png",
+ "name":"Typhon",
+ "url":"http://typhon.com"
+
+ },
+
+
+
+ "enyojs":{
+
+
+ "text":"
+
+ <h3>About Typhon</h3>
+
+ <p>Typhon offers managed web hosting, cloud, high availability and scalability.</p>
+
+ ",
+
+ "level":"gold",
+
+ "logo":"/partners/typhon.png",
+ "name":"Typhon",
+ "url":"http://typhon.com"
+
+ }
+
+
+}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -52,7 +52,7 @@ acronym {
padding: 0 20px;
text-align: center;
font-family: 'TitilliumText22LBold', Arial, sans-serif;
- font-size: 18px;
+ font-size: 18px !important;
color: #fff;
text-transform: uppercase;
}
View
@@ -1,4 +1,5 @@
-
+var fs = require("fs"),
+ path = require("path");
/*
* GET home page.
*/
@@ -23,6 +24,15 @@ exports.partners = function(req, res){
res.render('partners', { title: 'Partners' });
};
+var PARTNERDATA = JSON.parse(fs.readFileSync(path.join(__dirname,"../partnerdata.json")).toString().replace(/\n/g,""));
+
+exports.partner = function(req, res){
+
+ if (!PARTNERDATA[req.params.name]) return res.send(404);
+
+ res.render('partner_detail', { title: 'Partner', partner:PARTNERDATA[req.params.name] });
+};
+
exports.venue = function(req, res){
res.render('venue', { title: 'Venue' });
};
View
@@ -20,13 +20,13 @@
<meta itemprop="image" content="http://www.dotjs.eu/images/logo.png">
<meta name="google-site-verification" content="XHuushjVYcLmHYucyo4K1dioGybxO_S6fTCc5wUg9D0">
<!-- Included CSS Files -->
- <link rel="stylesheet" href="stylesheets/foundation.css">
- <link rel="stylesheet" href="stylesheets/app.css">
- <link rel="stylesheet" href="stylesheets/TitilliumText-fontfacekit/stylesheet.css">
+ <link rel="stylesheet" href="/stylesheets/foundation.css">
+ <link rel="stylesheet" href="/stylesheets/app.css">
+ <link rel="stylesheet" href="/stylesheets/TitilliumText-fontfacekit/stylesheet.css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="stylesheets/ie.css">
<![endif]-->
- <script src="javascripts/modernizr.foundation.js"></script>
+ <script src="/javascripts/modernizr.foundation.js"></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -66,9 +66,9 @@
</div>
<!-- container -->
<!-- Included JS Files -->
- <script src="javascripts/jquery.min.js"></script>
- <script src="javascripts/foundation.js"></script>
- <script src="javascripts/app.js"></script>
+ <script src="/javascripts/jquery.min.js"></script>
+ <script src="/javascripts/foundation.js"></script>
+ <script src="/javascripts/app.js"></script>
<script src="http://d3js.org/d3.v2.js"></script>
<script>
var width = window.innerWidth,
View
@@ -0,0 +1 @@
+<%= partner.logo %>

0 comments on commit f6a52c9

Please sign in to comment.