Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

partner pages ok

  • Loading branch information...
commit 5e1aa615f655290fb4b4d66d7221c91f133f915d 1 parent e28b264
@sylvinus sylvinus authored
View
23 partnerdata.json
@@ -1,8 +1,5 @@
{
"google": {
- "text": "
- <h3>About Google</h3>
- ",
"level": "platinum",
"order": 1,
"logo": "/partners/google.png",
@@ -10,9 +7,6 @@
"url": "http://google.com"
},
"microsoft": {
- "text": "
- <h3>About Microsoft</h3>
- ",
"order": 1,
"level": "gold",
"logo": "/partners/microsoft.png",
@@ -20,9 +14,6 @@
"url": "http://microsoft.com"
},
"enyojs": {
- "text": "
- <h3>About EnyoJS</h3>
- ",
"order": 2,
"level": "gold",
"logo": "/partners/enyojs.png",
@@ -58,7 +49,7 @@
"level": "silver",
"order": 2,
"logo": "/partners/aws.png",
- "name": "Amazon Web Services",
+ "name": "AWS",
"url": "http://aws.amazon.com"
},
"appsfuel": {
@@ -77,7 +68,6 @@
"name": "AppsFuel"
},
"sendgrid": {
- "text": "<h3>About Sendgrid</h3>",
"url": "http://sendgrid.com/",
"level": "silver",
"order": 5,
@@ -85,7 +75,6 @@
"name": "Sendgrid"
},
"realtime": {
- "text": "<h3>About Realtime</h3>",
"url": "http://realtime.co/",
"level": "silver",
"order": 4,
@@ -93,10 +82,6 @@
"name": "Realtime"
},
"typhon": {
- "text": "
- <h3>About Typhon</h3>
- <p>Typhon offers managed web hosting, cloud, high availability and scalability.</p>
- ",
"order": 1,
"level": "bronze",
"logo": "/partners/typhon.png",
@@ -120,9 +105,6 @@
"url": "http://jolicloud.com"
},
"nodejitsu": {
- "text": "
- <h3>About Nodejitsu</h3>
- ",
"order": 3,
"level": "bronze",
"logo": "/partners/nodejitsu.png",
@@ -130,9 +112,6 @@
"url": "http://nodejitsu.com"
},
"capitainetrain": {
- "text": "
- <h3>About Capitaine Train</h3>
- ",
"level": "bronze",
"order": 4,
"logo": "/partners/capitainetrain.jpeg",
View
BIN  public/partners/realtime.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
45 public/stylesheets/app.css
@@ -357,24 +357,33 @@ form.nice input.input-text {
}
#partners .logo-enyojs img {
- height: 300px;
+ height: 140px;
}
+#partners .logo-jolicloud img {
+ height: 110px;
+}
+
+
#partners a {
display: block;
margin: 10px auto;
}
-.gold-partner {
- width: 60%;
+.platinum-partner img {
+ max-height:150px;
+}
+
+.gold-partner img {
+ max-height:150px;
}
.silver-partner {
- width: 40%;
+ max-width:250px;
}
.bronze-partner {
- width: 20%;
+
}
#venue-text {
@@ -386,6 +395,31 @@ form.nice input.input-text {
padding-top: 30px;
}
+.page_name_partners {
+ background: #EEE;
+ padding:0px;
+}
+
+
+.page_name_partners h2 {
+ margin-top:40px;
+ color:#999;
+}
+
+.page_name_partners img {
+ padding:10px;
+}
+
+.page_name_partners p {
+ color:#333;
+ font-family: 'TitilliumText22LRegular', Arial, sans-serif;
+ font-size:19px;
+}
+
+.page_name_partners p a {
+ color:blue;
+}
+
#venue {
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
@@ -399,6 +433,7 @@ form.nice input.input-text {
#partner-sidebar h5 {
color: #BBB;
padding-top:10px;
+
}
View
18 routes/index.js
@@ -26,23 +26,23 @@ exports.index = function(req, res){
partnersSorted['silver'].sort(sortByOrder);
partnersSorted['bronze'].sort(sortByOrder);
- res.render('index', { title: 'The largest JavaScript conference in France', partners: partnersSorted });
+ res.render('index', { title: 'The largest JavaScript conference in France', name:"index", partners: partnersSorted });
};
exports.about = function(req, res){
- res.render('about', { title: 'About' });
+ res.render('about', { title: 'About', name:"about" });
};
exports.schedule = function(req, res){
- res.render('schedule', { title: 'Schedule' });
+ res.render('schedule', { title: 'Schedule', name:"schedule" });
};
exports.workshops = function(req, res){
- res.render('workshops', { title: 'Workshops' });
+ res.render('workshops', { title: 'Workshops', name:"workshops" });
};
exports.partners = function(req, res){
- res.render('partners', { title: 'Partners', partners: PARTNERDATA });
+ res.render('partners', { title: 'Partners', name:"partners", partners: PARTNERDATA });
};
exports.partner = function(req, res){
@@ -50,11 +50,15 @@ exports.partner = function(req, res){
return res.send(404);
}
- res.render('partner_detail', { title: 'Partner', partner: PARTNERDATA[req.params.name] });
+ if (!PARTNERDATA[req.params.name].text) {
+ return res.redirect(PARTNERDATA[req.params.name].url);
+ }
+
+ res.render('partner_detail', { title: 'Partner', name:"partner", partner: PARTNERDATA[req.params.name] });
};
exports.venue = function(req, res){
- res.render('venue', { title: 'Venue' });
+ res.render('venue', { title: 'Venue', name:"venue" });
};
exports.handleForm = function(req, res){
View
2  views/layout.ejs
@@ -52,7 +52,7 @@
</div>
</div>
</div>
- <div class="page">
+ <div class="page page_name_<%= name || "none" %>">
<%- body -%>
</div>
<div class="footer">
View
6 views/partner_detail.ejs
@@ -1,7 +1,9 @@
<div class="row padd">
<div class="three columns offset-by-one">
- <p><a href="<%= partner.url %>"><img style="max-width:100%" src="<%= partner.logo %>"></a></p>
- <p>Partner <strong><%= partner.level %></strong></p>
+ <p><a href="<%= partner.url %>"><img style="max-width:100%;<% if (partner.name=="10gen") { %>background:#BBB;padding:10px;<% } %>" src="<%= partner.logo %>"></a></p>
+ <p><a href="<%= partner.url %>"><%= partner.url %></a></p>
+
+ <p><strong><%= partner.level.substring(0,1).toUpperCase()+partner.level.substring(1) %></strong> partner </p>
</div>
<div class="seven columns">
<!--<h1><%= partner.name %></h1>-->
View
105 views/partners.ejs
@@ -1,30 +1,79 @@
- <div class="row padd">
- <div class="eight columns centered" id="partners">
- <h2>Platinum Partners</h2>
- <% for (var partner in partners) { %>
- <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'platinum') { %>
- <a class="platinum-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
- <% } %>
- <% } %>
- <h2>Gold Partners</h2>
- <% for (var partner in partners) { %>
- <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'gold') { %>
- <a class="gold-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
- <% } %>
- <% } %>
- <h2>Silver Partners</h2>
- <% for (var partner in partners) { %>
- <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'silver') { %>
+
+ <div class="row padd">
+ <div class="ten columns centered" id="partners">
+
+ <p>This event couldn't be organized without the help of our awesome partners. Check them out!</p>
+
+ <h2>Platinum Partner</h2>
+
+ <% for (var partner in partners) { %>
+ <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'platinum') { %>
+ <a class="platinum-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
+ <% } %>
+ <% } %>
+
+ <h2>Gold Partners</h2>
+
+ <div class="row">
+ <% for (var partner in partners) { %>
+ <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'gold') { %>
+ <div class="six columns">
+ <a class="gold-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
+ </div>
+ <% } %>
+ <% } %>
+ </div>
+
+
+ <h2>Silver Partners</h2>
+
+ <% var i = 0; %>
+
+ <div class="row">
+ <% for (var partner in partners) { %>
+ <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'silver' && i<3) { %>
+ <div class="four columns">
+ <a class="silver-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
+ </div>
+ <% i++ %>
+ <% } %>
+ <% } %>
+ </div>
+
+ <% var i = 0; %>
+
+ <div class="row">
+ <div class="one columns"></div>
+ <div class="ten columns">
+ <% for (var partner in partners) { %>
+ <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'silver') { %>
+ <% if (i>=3) { %>
+ <div class="six columns">
<a class="silver-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
- <% } %>
- <% } %>
- <h2>Bronze Partners</h2>
- <% for (var partner in partners) { %>
- <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'bronze') { %>
- <a class="bronze-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
- <% } %>
+ </div>
+ <% if (i==3) { %><div class="two columns"></div><% } %>
<% } %>
- <hr>
- <p>Partner packages are available on request: <a href="mailto:contact@dotjs.eu">contact@dotjs.eu</a>.</p>
- </div>
- </div>
+ <% i++ %>
+ <% } %>
+ <% } %>
+ </div>
+ <div class="one columns"></div>
+ </div>
+
+
+ <h2>Bronze Partners</h2>
+
+ <div class="row">
+ <% for (var partner in partners) { %>
+ <% if (partners.hasOwnProperty(partner) && partners[partner].level === 'bronze') { %>
+ <div class="three columns">
+ <a class="bronze-partner logo-<%= partners[partner].name.toLowerCase().replace(' ', '') %>" href="/partner/<%= partners[partner].name.toLowerCase().replace(' ', '') %>"><img src="<%= partners[partner].logo %>"></a>
+ </div>
+ <% } %>
+ <% } %>
+ </div>
+
+ <hr>
+ <p>Partner packages are available on request: <a href="mailto:contact@dotjs.eu">contact@dotjs.eu</a>.</p>
+ </div>
+ </div>
Please sign in to comment.
Something went wrong with that request. Please try again.