Skip to content

Commit

Permalink
Initial commit based on 2015.
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed Oct 15, 2016
1 parent 46cea62 commit 7d6e8c7
Show file tree
Hide file tree
Showing 2,368 changed files with 512,698 additions and 52 deletions.
122 changes: 122 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
// Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dev: {
options: {
http_path: '/',
imagesDir: 'img',
sassDir: 'sass',
cssDir: 'stylesheets',
environment: 'development'
}
},
prod: {
options: {
http_path: '/',
imagesDir: 'img',
sassDir: 'sass',
cssDir: 'stylesheets',
environment: 'production'
}
}
},

shell: {
jekyllServe: {
command: "LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' jekyll serve --safe --trace --baseurl ''"
},
jekyllBuild: {
command: "LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' jekyll build --safe --trace"
}
},

// watches sass and jekyll
watch: {
compass: {
files: [
'sass/*.{scss,sass}',
'sass/imports/*.{scss,sass}'
],
tasks: ['compass:dev'],
options: {
atBegin: true
}
},
autoprefix: {
files: [
'stylesheets/screen-unprefixed.css'
],
tasks: ['autoprefixer:target'],
options: {
atBegin: true
}
},
site: {
files: [
'_includes/*.{html,md}',
'_layouts/*.{html,md}',
'_posts/*.{html,md,markdown}',
'_config.yml',
'img/*.{jpg,gif,png,svg}',
'js/*.js',
'stylesheets/*.css',
'speakers/*.{html,md}',
'sponsors/*.{html,md}',
'speakers/posts/*.{html,md}',
'sponsors/posts/*.{html,md}',
'*.{html,md}',
],
tasks: ['shell:jekyllBuild'],
options: {
interrupt: true,
atBegin: true
}
}
},
svgstore: {
options: {
prefix: 'svg-',
svg: {
style: 'display: none;'
},
symbol: {
fill: 'currentColor',
}
},
default : {
files: {
'_includes/svg-sprite.svg': ['svg/*.svg'],
}
}
},
autoprefixer: {
target: {
src: 'stylesheets/screen-unprefixed.css',
dest: 'stylesheets/screen.css'
}
},
concurrent: {
target: {
tasks: ['shell:jekyllServe', 'watch:site', 'watch:compass', 'watch:autoprefix'],
options: {
logConcurrentOutput: true,
limit: 5
}
}
}
});

grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-svgstore');
grunt.loadNpmTasks('grunt-autoprefixer');

grunt.registerTask('default', ['svgstore', 'concurrent']);

grunt.registerTask('release', ['svgstore', 'compass:prod', 'autoprefixer:target', 'shell:jekyllBuild']);

};
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# 2017.jsconf.eu
Website for JSConf EU 2017
2015.jsconf.eu
==============

### Develop
grunt

### Deploy
compass clean
grunt release
14 changes: 14 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exclude: [config.rb, sass, Gruntfile.js, node_modules, Makefile, package.json, svg]
safe: true
lsi: false
name: JSconf.eu
url: http://2015.jsconf.eu
twitter_username: jsconfeu
baseurl:

speaker_map_base_url: "http://maps.googleapis.com/maps/api/staticmap?style=hue:0xfe006b&size=640x163&scale=2&sensor=false&zoom=5&visual_refresh=1&markers=color:"
speaker_index_base_url: "http://maps.googleapis.com/maps/api/staticmap?style=hue:0xfe006b&size=514x324&sensor=false&visual_refresh=1&markers=color:"
news_map_base_url: "http://maps.googleapis.com/maps/api/staticmap?size=640x390&sensor=false&visual_refresh=1&markers=color:"
schedule_url: "https://docs.google.com/spreadsheet/pub?key=0AoIOxKkr6fGqdGtHdWJqZFBJUnF1bEt3RVBsQUxINVE&single=true&gid=1&output=html"

permalink: pretty
6 changes: 6 additions & 0 deletions _includes/cta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- <a href="#" class="btn {{ include.class }}" title="Buy Tickets for JSconf EU 2015">Buy Ticket</a> -->
<!-- <a href="/news/2015/08/05/late-bird-tickets/" class="btn {{ include.class }}" title="Final ticket sale this Sunday">Buy Ticket</a> -->

<!-- a href="https://ti.to/jsconfeu/jsconf-eu-2015" target="_blank" class="btn {{ include.class }}" title="Ticket Sale starts February 1st">Buy Ticket</a-->

<a href="/sponsors" class="btn {{ include.class }}" title="Sponsoring">Sponsoring</a>
9 changes: 9 additions & 0 deletions _includes/debug.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div style="position: fixed; z-index: 9999; background-color: rgba(255,255,0,.8); font-size: 10px; padding: 7px; line-height: 1; display: none;">
<i>site url:</i>{{ site.url }}<br>
<i>page url:</i>{{ page.url }}<br>
<i>page id:</i>{{ page.id }}<br>
<i>page date:</i>{{ page.date }}<br>
<i>node url:</i>{{ node.url }}<br>
<i>twitter name:</i> {{ site.twitter_username }}<br>
<i>page pattern:</i> {{ page.pattern }}<br>
</div>
21 changes: 21 additions & 0 deletions _includes/facepile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% assign speaker_list = speakers | reverse %}
<div class="facepile">
{% for post in speaker_list %}
<a href="{{ site.baseurl }}/speakers/#{{ post.id }}" title="{{ post.speaker }}">
{% if post.image %}
<img src="{{ site.baseurl }}{{ post.image.filename }}" alt="{{ post.speaker }}" height="80"
{% comment %}Jekyll needs the .000000001 (probably coercing the value into a float or whatever) or otherwise will fail to do the devision in certain cases.{% endcomment %}
{% if post.image.width > 0 %}{% if post.image.height > 0 %}width="{{ post.image.width | times:80.000000001 | divided_by:post.image.height }}"{%endif%}{%endif%}
/>
{% else %}
<img src="{{ site.baseurl }}/img/js.eu.png" width="80" height="80" alt="{{ post.speaker }}" />
{% endif %}
{% if post.image2 %}
<img src="{{ site.baseurl }}{{ post.image2.filename }}" alt="{{ post.speaker }}" height="80"
{% if post.image.width > 0 %}{% if post.image.height > 0 %}width="{{ post.image.width | times:80 | divided_by:post.image.height }}"{%endif%}{%endif%}
/>
{% endif %}
</a>
{% endfor %}
</div>

45 changes: 45 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% assign current = page.url | downcase | split: '/' %}


<footer class="site-footer">
<div class="wrapper">
<div class="item-87-5">
<p class="links-light">
JSConf EU welcomes everyone, and defends you from harassment.
<br class="show-mobile">
<a href="{{ site.baseurl }}/code-of-conduct">Code of Conduct</a> | <a href="http://wwwtf.berlin/">Part of wwwtf.berlin</a> | <a href="{{ site.baseurl }}/accessibility">Accessibility</a> | <a href="{{ site.baseurl }}/press">Press</a> | <a href="{{ site.baseurl }}/impressum">Impressum</a>
</p>
</div>
<div class="item-12-5">
<a href="{{ site.baseurl }}/" class='{% if current[1] == nil %}nav-active{% endif %} icon icon-footer'>
<svg><use xlink:href="#svg-jsconfeu-logomark" /></svg>
</a>
</div>
</div>
</footer>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="{{ site.baseurl }}/js/app.js"></script>

<script>
var _gaq = _gaq || [];_gaq.push(['_setAccount', 'UA-4656061-2']);
_gaq.push(['_setDomainName', 'jsconf.eu']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '50570251f5a1f57282000003');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
47 changes: 47 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<head>
<meta charset="utf-8" />
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="canonical" href="http://2015.jsconf.eu{{ page.url | replace:'index.html','' }}" />
<link rel="stylesheet" href="{{ site.baseurl }}/stylesheets/screen.css" type="text/css" media="screen, projection" />
<script src="//use.typekit.net/ekp1paj.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

<link rel="shortcut icon" href="/favicon.ico" />
<meta name="google-site-verification" content="H6VZ353SM0CfTqymvhQPM0eLyWffpeRfyRjFlXLwNn0" />
{% if page.image %}
<meta name="twitter:card" content="summary_large_image">
{% else %}
<meta name="twitter:card" content="summary">
{% endif %}
<meta name="twitter:site" content="@jsconfeu">
{% if page.video %}
<meta property="og:video" content="http://www.youtube.com/v/{{ page.video }}">
{% endif %}
{% assign image_filename="/img/js.eu.png" %}
{% if page.image %}
{% assign image_filename=page.image %}
{% if page.image.filename %}
{% assign image_filename=page.image.filename %}
{% endif %}
{% endif %}
<meta itemprop="image" content="http://2015.jsconf.eu{{ image_filename }}">
<meta name="twitter:image" content="http://2015.jsconf.eu{{ image_filename }}">
<meta property="og:image" content="http://2015.jsconf.eu{{ image_filename }}"/>

{% if page.twitter %}
<meta name="twitter:creator" content="@{{ page.twitter | split:'/' | last }}">
{% else %}
<meta name="twitter:creator" content="@jsconfeu">
{% endif %}
<meta itemprop="name" content="{{ page.title }}">
<meta name="twitter:title" content="{{ page.title }}">
<meta property="og:title" content="{{ page.title }}" />
{% if page.description %}
<meta name="description" itemprop="description" content="{{page.description | truncatewords:50}}">
<meta name="twitter:description" content="{{page.description | truncatewords:50}}">
<meta property="og:description" content="{{page.description | truncatewords:50}}">
{% else %}
<meta name="twitter:description" content="{{page.excerpt | strip_html | strip_newlines | truncatewords:50}}">
{% endif %}
</head>
56 changes: 56 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{% if startpage %}

<header class="site-header bg-blue-pat bg-blue-pat-header">

<div class="wrapper wrapper-logo wrapper-space-between">
<div class="item-50">
<div class="site-logo">
<a href="{{ site.baseurl }}/" title="Home">
<svg><use xlink:href="#svg-jsconfeu-logo" /></svg>
<img src="/img/js.eu.png" class="backup-logo">
</a>
</div>
</div>
<div class="item-25">
<aside class="site-aside font-bernina">
<p>
Sept 25 &amp; 27 2015 <br>
Berlin, Germany
</p>
<p>
{% include cta.html %}
</p>
</aside>
</div>
</div>

<div class="js-sticky-nav js-sticky-nav-blue">
<div class="wrapper">
<div class="item-50">
{% include nav.html %}
</div>

<div class="item-25 hide-mobile">
{% include nav-social.html %}
</div>
</div>
</div>

</header>

{% else %}
<header class="site-header bg-blue-pat bg-blue-pat-header nav-fixed">

<div class="wrapper">
<div class="item-50">
{% include nav.html %}
</div>

<div class="item-25 hide-mobile">
{% include cta.html class="btn-nav hide-mobile" %}
<!-- {% include nav-social.html %} -->
</div>
</div>

</header>
{% endif %}
9 changes: 9 additions & 0 deletions _includes/image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{% comment %}
Provide variables called image_url & image_alt
{% endcomment %}
<div class="embed_container">
<a href="{{ image_url }}" target="_blank"><img width="560" height="420"
src="{{ image_url }}"
alt="{{ image_alt }}"></a>
</div>
16 changes: 16 additions & 0 deletions _includes/location.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% assign map_url="https://maps.google.com/maps?q=Radialsystem+V,+Holzmarktstra%C3%9Fe+33,+Berlin,+Germany&amp;hl=en&amp;ie=UTF8&amp;ll=52.510527,13.428726&amp;spn=0.036671,0.077677&amp;sll=52.510893,13.428555&amp;sspn=0.073341,0.155354&amp;hq=Radialsystem+V,+Holzmarktstra%C3%9Fe+33,+Berlin,+Germany&amp;t=m&amp;z=14" %}


<address itemprop="address" itemscope="" itemtype="http://schema.org/EventVenue">
<strong itemprop="name"><a href="{{ map_url }}">Radialsystem V</a></strong>,
<span itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress">
<a href="{{ map_url }}">
<span itemprop="streetAddress">Holzmarktstraße 33</span>,
<span itemprop="postalCode">10243</span> <span itemprop="addressLocality">Berlin</span>,
<span itemprop="addressCountry">Germany</span>
</a>
</span>
</address>

{% assign map_center="52.51057,13.42873" %}
{% include map_image.md %}
9 changes: 9 additions & 0 deletions _includes/map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{% comment %}
Make a variable called map_url. Just copy the normal GMaps share
link.
{% endcomment %}
<div class="embed_container">
<iframe width="560" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{{ map_url }}&amp;output=embed&amp;iwloc=end">
</iframe>
</div>
9 changes: 9 additions & 0 deletions _includes/map_image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% comment %}
Make variables called map_url and map_center (coords). Just copy the normal GMaps share
link.
{% endcomment %}
<div class="embed_container">
<a href="{{ map_url }}" target="_blank">
<img width="560" height="315" src="http://maps.googleapis.com/maps/api/staticmap?center={{ map_center }}&amp;zoom=13&amp;size=601x368&amp;sensor=false&amp;markers=color:0xE10079%7C{{ map_center }}&amp;visual_refresh=1">
</a>
</div>
5 changes: 5 additions & 0 deletions _includes/nav-social.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<nav class="social-nav">
<a href="https://twitter.com/jsconfeu" rel="me" class="icon"><svg><use xlink:href="#svg-jsconfeu-twitter" /></svg></a>
<a href="https://www.youtube.com/user/jsconfeu" rel="me" class="icon"><svg><use xlink:href="#svg-jsconfeu-youtube" /></svg></a>
<a href="https://google.com/+JSConfEU" rel="publisher me" class="icon"><svg><use xlink:href="#svg-jsconfeu-googleplus" /></svg></a>
</nav>
Loading

0 comments on commit 7d6e8c7

Please sign in to comment.