jekyll-theme-eventually 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
data/assets/main.js ADDED
@@ -0,0 +1,137 @@
1
+ /*
2
+ Eventually by HTML5 UP
3
+ html5up.net | @ajlkn
4
+ Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
5
+ */
6
+
7
+ (function() {
8
+
9
+ "use strict";
10
+
11
+ var $body = document.querySelector('body');
12
+
13
+ // Methods/polyfills.
14
+
15
+ // classList | (c) @remy | github.com/remy/polyfills | rem.mit-license.org
16
+ !function(){function t(t){this.el=t;for(var n=t.className.replace(/^\s+|\s+$/g,"").split(/\s+/),i=0;i<n.length;i++)e.call(this,n[i])}function n(t,n,i){Object.defineProperty?Object.defineProperty(t,n,{get:i}):t.__defineGetter__(n,i)}if(!("undefined"==typeof window.Element||"classList"in document.documentElement)){var i=Array.prototype,e=i.push,s=i.splice,o=i.join;t.prototype={add:function(t){this.contains(t)||(e.call(this,t),this.el.className=this.toString())},contains:function(t){return-1!=this.el.className.indexOf(t)},item:function(t){return this[t]||null},remove:function(t){if(this.contains(t)){for(var n=0;n<this.length&&this[n]!=t;n++);s.call(this,n,1),this.el.className=this.toString()}},toString:function(){return o.call(this," ")},toggle:function(t){return this.contains(t)?this.remove(t):this.add(t),this.contains(t)}},window.DOMTokenList=t,n(Element.prototype,"classList",function(){return new t(this)})}}();
17
+
18
+ // canUse
19
+ window.canUse=function(p){if(!window._canUse)window._canUse=document.createElement("div");var e=window._canUse.style,up=p.charAt(0).toUpperCase()+p.slice(1);return p in e||"Moz"+up in e||"Webkit"+up in e||"O"+up in e||"ms"+up in e};
20
+
21
+ // window.addEventListener
22
+ (function(){if("addEventListener"in window)return;window.addEventListener=function(type,f){window.attachEvent("on"+type,f)}})();
23
+
24
+ // Play initial animations on page load.
25
+ window.addEventListener('load', function() {
26
+ window.setTimeout(function() {
27
+ $body.classList.remove('is-preload');
28
+ }, 100);
29
+ });
30
+
31
+ // Slideshow Background.
32
+ (function() {
33
+
34
+ // Settings.
35
+ var settings = {
36
+
37
+ // Images (in the format of 'url': 'alignment').
38
+ images: {
39
+ '/assets/images/bg01.jpg': 'center',
40
+ '/assets/images/bg02.jpg': 'center',
41
+ '/assets/images/bg03.jpg': 'center'
42
+ },
43
+
44
+ // Delay.
45
+ delay: 6000
46
+
47
+ };
48
+
49
+ // Vars.
50
+ var pos = 0, lastPos = 0,
51
+ $wrapper, $bgs = [], $bg,
52
+ k, v;
53
+
54
+ // Create BG wrapper, BGs.
55
+ $wrapper = document.createElement('div');
56
+ $wrapper.id = 'bg';
57
+ $body.appendChild($wrapper);
58
+
59
+ for (k in settings.images) {
60
+
61
+ // Create BG.
62
+ $bg = document.createElement('div');
63
+ $bg.style.backgroundImage = 'url("' + k + '")';
64
+ $bg.style.backgroundPosition = settings.images[k];
65
+ $wrapper.appendChild($bg);
66
+
67
+ // Add it to array.
68
+ $bgs.push($bg);
69
+
70
+ }
71
+
72
+ // Main loop.
73
+ $bgs[pos].classList.add('visible');
74
+ $bgs[pos].classList.add('top');
75
+
76
+ // Bail if we only have a single BG or the client doesn't support transitions.
77
+ if ($bgs.length == 1
78
+ || !canUse('transition'))
79
+ return;
80
+
81
+ window.setInterval(function() {
82
+
83
+ lastPos = pos;
84
+ pos++;
85
+
86
+ // Wrap to beginning if necessary.
87
+ if (pos >= $bgs.length)
88
+ pos = 0;
89
+
90
+ // Swap top images.
91
+ $bgs[lastPos].classList.remove('top');
92
+ $bgs[pos].classList.add('visible');
93
+ $bgs[pos].classList.add('top');
94
+
95
+ // Hide last image after a short delay.
96
+ window.setTimeout(function() {
97
+ $bgs[lastPos].classList.remove('visible');
98
+ }, settings.delay / 2);
99
+
100
+ }, settings.delay);
101
+
102
+ })();
103
+
104
+ // Signup Form.
105
+ (function() {
106
+
107
+ // Vars.
108
+ var $form = document.querySelectorAll('#signup-form')[0],
109
+ $submit = document.querySelectorAll('#signup-form input[type="submit"]')[0],
110
+ $message;
111
+
112
+ // Bail if addEventListener isn't supported.
113
+ if (!('addEventListener' in $form))
114
+ return;
115
+
116
+ // Message.
117
+ $message = document.createElement('span');
118
+ $message.classList.add('message');
119
+ $form.appendChild($message);
120
+
121
+ $message._show = function(type, text) {
122
+
123
+ $message.innerHTML = text;
124
+ $message.classList.add(type);
125
+ $message.classList.add('visible');
126
+
127
+ window.setTimeout(function() {
128
+ $message._hide();
129
+ }, 3000);
130
+
131
+ };
132
+
133
+ $message._hide = function() {
134
+ $message.classList.remove('visible');
135
+ };
136
+ })();
137
+ })();
data/assets/main.scss ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "eventually";
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-eventually
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Terence Ponce
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - terenceponce@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/footer.html
65
+ - _includes/head.html
66
+ - _includes/header.html
67
+ - _includes/signup-form.html
68
+ - _layouts/default.html
69
+ - _sass/base/_bg.scss
70
+ - _sass/base/_page.scss
71
+ - _sass/base/_reset.scss
72
+ - _sass/base/_typography.scss
73
+ - _sass/components/_button.scss
74
+ - _sass/components/_form.scss
75
+ - _sass/components/_icon.scss
76
+ - _sass/components/_icons.scss
77
+ - _sass/components/_list.scss
78
+ - _sass/components/_section.scss
79
+ - _sass/eventually.scss
80
+ - _sass/layout/_footer.scss
81
+ - _sass/layout/_header.scss
82
+ - _sass/layout/_signup-form.scss
83
+ - _sass/libs/_breakpoints.scss
84
+ - _sass/libs/_functions.scss
85
+ - _sass/libs/_mixins.scss
86
+ - _sass/libs/_vars.scss
87
+ - _sass/libs/_vendor.scss
88
+ - assets/font-awesome.min.css
89
+ - assets/fonts/FontAwesome.otf
90
+ - assets/fonts/fontawesome-webfont.eot
91
+ - assets/fonts/fontawesome-webfont.svg
92
+ - assets/fonts/fontawesome-webfont.ttf
93
+ - assets/fonts/fontawesome-webfont.woff
94
+ - assets/fonts/fontawesome-webfont.woff2
95
+ - assets/images/bg01.jpg
96
+ - assets/images/bg02.jpg
97
+ - assets/images/bg03.jpg
98
+ - assets/main.js
99
+ - assets/main.scss
100
+ homepage: https://github.com/terenceponce/jekyll-theme-eventually
101
+ licenses:
102
+ - MIT
103
+ metadata: {}
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 2.7.6
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: Jekyll integration of Eventually theme by HTML5 UP.
124
+ test_files: []