Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New intro page #1930

Merged
merged 89 commits into from
Apr 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
d9a2343
rewriting main pb file
lschatzkin Mar 6, 2018
4c28486
adding foundation to repo
lschatzkin Mar 6, 2018
3374b14
basic foundation 6 page build out
lschatzkin Mar 6, 2018
90f68a2
adding colors and share-links layout
lschatzkin Mar 7, 2018
77e1f52
adding share-links styles
lschatzkin Mar 7, 2018
8051b6c
adding donate link
lschatzkin Mar 7, 2018
e75fa72
adding chunkfive font
lschatzkin Mar 7, 2018
95f4120
added site images
lschatzkin Mar 7, 2018
15c1f6f
renaming logo images
lschatzkin Mar 8, 2018
51c2942
adding fonts
lschatzkin Mar 8, 2018
edfeb0c
building out base styles and font variables
lschatzkin Mar 8, 2018
8d87a1c
modifying default foundation font settings
lschatzkin Mar 8, 2018
a980364
adding images
lschatzkin Mar 8, 2018
ce742e7
adding imsages for share links
lschatzkin Mar 8, 2018
266c604
renaming content images
lschatzkin Mar 8, 2018
6fd78d1
laying out content, roughly
lschatzkin Mar 8, 2018
39c5737
swapped in social media icons with correct color
lschatzkin Mar 8, 2018
e47e367
added alt tags to images, refactoring some grid code
lschatzkin Mar 8, 2018
79c5192
changing base settings for large button
lschatzkin Mar 8, 2018
0edced7
adding some styles to button
lschatzkin Mar 8, 2018
4bb6b8e
accidentally removed fonts file, readding
lschatzkin Mar 8, 2018
ad6342d
adding background gradients for bottom sections
lschatzkin Mar 8, 2018
e265703
increased all fonts to be minimum of 0.9rem (14px) to pass accessbili…
lschatzkin Mar 8, 2018
9d531b7
increased button text to 1rem
lschatzkin Mar 8, 2018
237a493
changed caret icon name
lschatzkin Mar 8, 2018
5a73e37
moved share links down the page slightly
lschatzkin Mar 8, 2018
b5774d9
changed some #ids, moved help text under donate button
lschatzkin Mar 8, 2018
0abe450
added correct social media links
lschatzkin Mar 8, 2018
8b17b92
tweaks to header fonts, background sizes, column widths
lschatzkin Mar 8, 2018
852f424
some mobile styling
lschatzkin Mar 9, 2018
5d5051f
swapped in caret with correct color
lschatzkin Mar 9, 2018
088bafe
adding compiled css files
lschatzkin Mar 9, 2018
1cdb431
couldn't get foundation smooth scroll to work, using jquery
lschatzkin Mar 9, 2018
a89e30e
various tweaks throughout the page to better match design
lschatzkin Mar 9, 2018
7869b88
adding margin-bottom to bottom of page
lschatzkin Mar 9, 2018
6315414
Increase spacing above donate section
Mar 15, 2018
d9c6dfa
Increase spacing between graphic and text
Mar 15, 2018
78774df
Squeeze text on medium screens
Mar 15, 2018
db40c6f
Push text below graphic for mobile
Mar 15, 2018
bf6eb05
Make share links fixed position
Mar 16, 2018
e44099b
Remove text justify
Mar 16, 2018
a984e6a
Update text
Mar 16, 2018
18ef7f5
Remove css and js files no longer used for firstRun.html
Mar 21, 2018
73b1f70
Increase space above h3 titles for mobile
Mar 21, 2018
a1e5541
Center images on mobile
Mar 21, 2018
42cfd2e
Change h3 font size to 1.5rem
Mar 22, 2018
d3fa80b
Merge pull request #1 from lschatzkin/foundation
squiggy Mar 26, 2018
821c23d
moved jquery.smooth-scroll.js to src/lib/vendor, using jquery in that…
lschatzkin Mar 28, 2018
a7d596f
adding setSeenComic to pb.js
lschatzkin Mar 28, 2018
6b637ec
moved jquery files to src/lib/vendor
lschatzkin Mar 28, 2018
93c2e3a
moved smooth scroll file
lschatzkin Mar 28, 2018
d88db56
removing foundation js
lschatzkin Mar 28, 2018
643bcd5
cleaning up and commenting css file
lschatzkin Mar 29, 2018
d98f085
removing unused code for table, flex grid, media embeds
lschatzkin Mar 29, 2018
ef0d8fa
removing menu, many button styles
lschatzkin Mar 29, 2018
c764550
removed unnecessary line feed/spaces
lschatzkin Mar 29, 2018
61401ec
moved new css code to pb.css
lschatzkin Mar 29, 2018
b74cd40
renaming css and js back to firstRun, center text in bottom section o…
lschatzkin Mar 29, 2018
2653f20
removing spaces per travis errors
lschatzkin Mar 29, 2018
9cbbadd
removing unused file, foundation compiled css
lschatzkin Apr 2, 2018
d798142
removing unused grid code
lschatzkin Apr 2, 2018
60ce2c0
removing more unused xy grid code
lschatzkin Apr 2, 2018
dc20a36
removed excess foundation code
lschatzkin Apr 2, 2018
93b5192
removed adblock text
lschatzkin Apr 2, 2018
18283cf
removed scss folder
lschatzkin Apr 2, 2018
bd55416
removing old slideshow icons
lschatzkin Apr 2, 2018
3eab563
removing build files
lschatzkin Apr 2, 2018
d562ab7
refacting top-bar css
lschatzkin Apr 2, 2018
35efbcf
removing unused icons
lschatzkin Apr 2, 2018
a8a6f38
downsizing images using ImageOptim
lschatzkin Apr 3, 2018
90de9af
removing extra logo
lschatzkin Apr 3, 2018
22a3a0d
moving font licensing info, removing OpenSans-Regular.ttf
lschatzkin Apr 3, 2018
818a2c1
adding jquery smooth scroll credits to LICENSE file
lschatzkin Apr 3, 2018
8c2ac96
removing jcarousel, no longer using
lschatzkin Apr 3, 2018
c944ddf
removed after scroll function in smoothScroll, replaced with function…
lschatzkin Apr 4, 2018
b217d03
fixing lint errors (spacing)
lschatzkin Apr 4, 2018
7f96e0c
Merge branch 'master'.
ghostwords Apr 4, 2018
559ebe3
Update HTML indentation standard to two spaces.
ghostwords Apr 4, 2018
81a087b
Remove old intro locale strings.
ghostwords Apr 4, 2018
eaac02d
Tweak "Share on Google+" locale string.
ghostwords Apr 4, 2018
a95c35d
Add i18n helper lib to intro page.
ghostwords Apr 4, 2018
dc8bfb2
Reuse some existing locale strings on intro page.
ghostwords Apr 4, 2018
cb28749
Remove hardcoded lang attribute from intro page.
ghostwords Apr 4, 2018
1181ee3
Fix image alt attributes.
ghostwords Apr 4, 2018
e3fa70d
Localize all intro page messages.
ghostwords Apr 4, 2018
6ee8e67
darkening link color
lschatzkin Apr 4, 2018
79ab6d8
Open donation page in new tab.
ghostwords Apr 5, 2018
c9fc236
Update source locale to Transifex formatting.
ghostwords Apr 5, 2018
eb56172
Pull locales from Transifex to get the new strings
ghostwords Apr 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ indent_size = 4

[*.html]
indent_style = space
indent_size = 4
indent_size = 2

[*.js]
indent_style = space
Expand Down
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ http://iamceege.github.io/tooltipster/
Copyright (c) 2012,2016 Caleb Jacob and Louis Ameline
Licensed MIT

ChunkFive
https://www.theleagueofmoveabletype.com/
All fonts from The League of Moveable Type are subject to the Open Font License and are free and open-source.

OpenSans
https://www.apache.org/licenses/LICENSE-2.0

jQuery Smooth Scroll - v2.2.0 - 2017-05-05
https://github.com/kswedberg/jquery-smooth-scroll
Copyright (c) 2017 Karl Swedberg
Licensed MIT



TEXT OF GPLv3
=============
Expand Down
144 changes: 70 additions & 74 deletions src/_locales/bg/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/cs/messages.json

Large diffs are not rendered by default.

144 changes: 70 additions & 74 deletions src/_locales/da/messages.json

Large diffs are not rendered by default.

144 changes: 70 additions & 74 deletions src/_locales/de/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/en_US/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/eo/messages.json

Large diffs are not rendered by default.

144 changes: 70 additions & 74 deletions src/_locales/es/messages.json

Large diffs are not rendered by default.

144 changes: 70 additions & 74 deletions src/_locales/fr/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/it/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/nb_NO/messages.json

Large diffs are not rendered by default.

144 changes: 70 additions & 74 deletions src/_locales/nl/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/pl/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/ru/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/sr/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/sv/messages.json

Large diffs are not rendered by default.

144 changes: 70 additions & 74 deletions src/_locales/tr/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/uk/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/zh/messages.json

Large diffs are not rendered by default.

142 changes: 69 additions & 73 deletions src/_locales/zh_TW/messages.json

Large diffs are not rendered by default.

Binary file removed src/icons/PB-header-1.png
Binary file not shown.
Binary file removed src/icons/e.png
Binary file not shown.
Binary file removed src/icons/f.png
Binary file not shown.
Binary file removed src/icons/g.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-01.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-02.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-03.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-04.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-05.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-06.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-07.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-08.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-09.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-10.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-11.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-12.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-12a.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-13.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-14.png
Binary file not shown.
Binary file removed src/icons/slideshow/PB-layouts-15.png
Binary file not shown.
Binary file removed src/icons/t.png
Binary file not shown.
3 changes: 2 additions & 1 deletion src/lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ function loadI18nStrings() {
nodes[i][prop] = i18n.getMessage(stringName);
}

// also replace title and placeholder attributes
// also replace alt, placeholder and title attributes
const ATTRS = [
'alt',
'placeholder',
'title',
];
Expand Down
4 changes: 0 additions & 4 deletions src/lib/jquery.jcarousel-core.min.js

This file was deleted.

357 changes: 357 additions & 0 deletions src/lib/vendor/jquery.smooth-scroll.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,357 @@
/*!
* jQuery Smooth Scroll - v2.2.0 - 2017-05-05
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also credit Smooth Scroll (by including this header) in our existing LICENSE file?

* https://github.com/kswedberg/jquery-smooth-scroll
* Copyright (c) 2017 Karl Swedberg
* Licensed MIT
*/

(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function($) {

var version = '2.2.0';
var optionOverrides = {};
var defaults = {
exclude: [],
excludeWithin: [],
offset: 0,

// one of 'top' or 'left'
direction: 'top',

// if set, bind click events through delegation
// supported since jQuery 1.4.2
delegateSelector: null,

// jQuery set of elements you wish to scroll (for $.smoothScroll).
// if null (default), $('html, body').firstScrollable() is used.
scrollElement: null,

// only use if you want to override default behavior
scrollTarget: null,

// automatically focus the target element after scrolling to it
autoFocus: false,

// fn(opts) function to be called before scrolling occurs.
// `this` is the element(s) being scrolled
beforeScroll: function() {},

// fn(opts) function to be called after scrolling occurs.
// `this` is the triggering element
afterScroll: function() {},

// easing name. jQuery comes with "swing" and "linear." For others, you'll need an easing plugin
// from jQuery UI or elsewhere
easing: 'swing',

// speed can be a number or 'auto'
// if 'auto', the speed will be calculated based on the formula:
// (current scroll position - target scroll position) / autoCoeffic
speed: 400,

// coefficient for "auto" speed
autoCoefficient: 2,

// $.fn.smoothScroll only: whether to prevent the default click action
preventDefault: true
};

var getScrollable = function(opts) {
var scrollable = [];
var scrolled = false;
var dir = opts.dir && opts.dir === 'left' ? 'scrollLeft' : 'scrollTop';

this.each(function() {
var el = $(this);

if (this === document || this === window) {
return;
}

if (document.scrollingElement && (this === document.documentElement || this === document.body)) {
scrollable.push(document.scrollingElement);

return false;
}

if (el[dir]() > 0) {
scrollable.push(this);
} else {
// if scroll(Top|Left) === 0, nudge the element 1px and see if it moves
el[dir](1);
scrolled = el[dir]() > 0;

if (scrolled) {
scrollable.push(this);
}
// then put it back, of course
el[dir](0);
}
});

if (!scrollable.length) {
this.each(function() {
// If no scrollable elements and <html> has scroll-behavior:smooth because
// "When this property is specified on the root element, it applies to the viewport instead."
// and "The scroll-behavior property of the … body element is *not* propagated to the viewport."
// → https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior
if (this === document.documentElement && $(this).css('scrollBehavior') === 'smooth') {
scrollable = [this];
}

// If still no scrollable elements, fall back to <body>,
// if it's in the jQuery collection
// (doing this because Safari sets scrollTop async,
// so can't set it to 1 and immediately get the value.)
if (!scrollable.length && this.nodeName === 'BODY') {
scrollable = [this];
}
});
}

// Use the first scrollable element if we're calling firstScrollable()
if (opts.el === 'first' && scrollable.length > 1) {
scrollable = [scrollable[0]];
}

return scrollable;
};

var rRelative = /^([\-\+]=)(\d+)/;

$.fn.extend({
scrollable: function(dir) {
var scrl = getScrollable.call(this, {dir: dir});

return this.pushStack(scrl);
},
firstScrollable: function(dir) {
var scrl = getScrollable.call(this, {el: 'first', dir: dir});

return this.pushStack(scrl);
},

smoothScroll: function(options, extra) {
options = options || {};

if (options === 'options') {
if (!extra) {
return this.first().data('ssOpts');
}

return this.each(function() {
var $this = $(this);
var opts = $.extend($this.data('ssOpts') || {}, extra);

$(this).data('ssOpts', opts);
});
}

var opts = $.extend({}, $.fn.smoothScroll.defaults, options);

var clickHandler = function(event) {
var escapeSelector = function(str) {
return str.replace(/(:|\.|\/)/g, '\\$1');
};

var link = this;
var $link = $(this);
var thisOpts = $.extend({}, opts, $link.data('ssOpts') || {});
var exclude = opts.exclude;
var excludeWithin = thisOpts.excludeWithin;
var elCounter = 0;
var ewlCounter = 0;
var include = true;
var clickOpts = {};
var locationPath = $.smoothScroll.filterPath(location.pathname);
var linkPath = $.smoothScroll.filterPath(link.pathname);
var hostMatch = location.hostname === link.hostname || !link.hostname;
var pathMatch = thisOpts.scrollTarget || (linkPath === locationPath);
var thisHash = escapeSelector(link.hash);

if (thisHash && !$(thisHash).length) {
include = false;
}

if (!thisOpts.scrollTarget && (!hostMatch || !pathMatch || !thisHash)) {
include = false;
} else {
while (include && elCounter < exclude.length) {
if ($link.is(escapeSelector(exclude[elCounter++]))) {
include = false;
}
}

while (include && ewlCounter < excludeWithin.length) {
if ($link.closest(excludeWithin[ewlCounter++]).length) {
include = false;
}
}
}

if (include) {
if (thisOpts.preventDefault) {
event.preventDefault();
}

$.extend(clickOpts, thisOpts, {
scrollTarget: thisOpts.scrollTarget || thisHash,
link: link
});

$.smoothScroll(clickOpts);
}
};

if (options.delegateSelector !== null) {
this
.off('click.smoothscroll', options.delegateSelector)
.on('click.smoothscroll', options.delegateSelector, clickHandler);
} else {
this
.off('click.smoothscroll')
.on('click.smoothscroll', clickHandler);
}

return this;
}
});

var getExplicitOffset = function(val) {
var explicit = {relative: ''};
var parts = typeof val === 'string' && rRelative.exec(val);

if (typeof val === 'number') {
explicit.px = val;
} else if (parts) {
explicit.relative = parts[1];
explicit.px = parseFloat(parts[2]) || 0;
}

return explicit;
};

var onAfterScroll = function(opts) {
var $tgt = $(opts.scrollTarget);

if (opts.autoFocus && $tgt.length) {
$tgt[0].focus();

if (!$tgt.is(document.activeElement)) {
$tgt.prop({tabIndex: -1});
$tgt[0].focus();
}
}

opts.afterScroll.call(opts.link, opts);
};

$.smoothScroll = function(options, px) {
if (options === 'options' && typeof px === 'object') {
return $.extend(optionOverrides, px);
}
var opts, $scroller, speed, delta;
var explicitOffset = getExplicitOffset(options);
var scrollTargetOffset = {};
var scrollerOffset = 0;
var offPos = 'offset';
var scrollDir = 'scrollTop';
var aniProps = {};
var aniOpts = {};

if (explicitOffset.px) {
opts = $.extend({link: null}, $.fn.smoothScroll.defaults, optionOverrides);
} else {
opts = $.extend({link: null}, $.fn.smoothScroll.defaults, options || {}, optionOverrides);

if (opts.scrollElement) {
offPos = 'position';

if (opts.scrollElement.css('position') === 'static') {
opts.scrollElement.css('position', 'relative');
}
}

if (px) {
explicitOffset = getExplicitOffset(px);
}
}

scrollDir = opts.direction === 'left' ? 'scrollLeft' : scrollDir;

if (opts.scrollElement) {
$scroller = opts.scrollElement;

if (!explicitOffset.px && !(/^(?:HTML|BODY)$/).test($scroller[0].nodeName)) {
scrollerOffset = $scroller[scrollDir]();
}
} else {
$scroller = $('html, body').firstScrollable(opts.direction);
}

// beforeScroll callback function must fire before calculating offset
opts.beforeScroll.call($scroller, opts);

scrollTargetOffset = explicitOffset.px ? explicitOffset : {
relative: '',
px: ($(opts.scrollTarget)[offPos]() && $(opts.scrollTarget)[offPos]()[opts.direction]) || 0
};

aniProps[scrollDir] = scrollTargetOffset.relative + (scrollTargetOffset.px + scrollerOffset + opts.offset);

speed = opts.speed;

// automatically calculate the speed of the scroll based on distance / coefficient
if (speed === 'auto') {

// $scroller[scrollDir]() is position before scroll, aniProps[scrollDir] is position after
// When delta is greater, speed will be greater.
delta = Math.abs(aniProps[scrollDir] - $scroller[scrollDir]());

// Divide the delta by the coefficient
speed = delta / opts.autoCoefficient;
}

aniOpts = {
duration: speed,
easing: opts.easing,
complete: function() {
onAfterScroll(opts);
}
};

if (opts.step) {
aniOpts.step = opts.step;
}

if ($scroller.length) {
$scroller.stop().animate(aniProps, aniOpts);
} else {
onAfterScroll(opts);
}
};

$.smoothScroll.version = version;
$.smoothScroll.filterPath = function(string) {
string = string || '';

return string
.replace(/^\//, '')
.replace(/(?:index|default).[a-zA-Z]{3,4}$/, '')
.replace(/\/$/, '');
};

// default options
$.fn.smoothScroll.defaults = defaults;

}));
Loading