Browse Source

update logo

master
Rich-Harris 8 years ago
parent
commit
ba7abfa9da
  1. 37
      .eslintrc
  2. 10
      src/app/main.js
  3. 78
      src/files/images/rollup_logomark.svg
  4. 4
      src/guide/98-faqs.md
  5. 8
      src/styles/header.css
  6. 4
      src/styles/typography.css

37
.eslintrc

@ -1,20 +1,21 @@
{
"rules": {
"indent": [ 2, "tab" ],
"quotes": [ 2, "single" ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ]
},
"env": {
"es6": true,
"browser": true
},
"extends": "eslint:recommended",
"ecmaFeatures": {
"modules": true
},
"plugins": [ "html" ],
"globals": {
"component": true
}
"rules": {
"indent": [ 2, "tab" ],
"quotes": [ 2, "single" ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ]
},
"env": {
"es6": true,
"browser": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6
},
"plugins": [ "html" ],
"globals": {
"component": true
}
}

10
src/app/main.js

@ -2,11 +2,11 @@ import Input from './Input/index.html';
import Output from './Output/index.html';
import Footer from './Footer.html';
import examples from './examples';
import { dirname, extname, resolve } from './utils/path';
import { dirname, resolve } from './utils/path';
import examplesMatch from './utils/examplesMatch';
import debounce from './utils/debounce';
const supported = !!window.Promise;
const supported = !!window.Promise && !!window.Map && !!window.Set;
if ( supported ) {
document.querySelector('header h1 small').innerHTML = `v${rollup.VERSION}`;
@ -130,7 +130,7 @@ if ( supported ) {
.then( () => {
updating = false;
});
}
};
input.observe( 'modules', debounce( update, 200 ) );
input.observe( 'selectedExample', update );
@ -140,11 +140,11 @@ if ( supported ) {
else {
document.querySelector( 'main' ).innerHTML = `
<div class='sorry'>
<p>The browser build of Rollup uses ES6 Promises, which aren't supported here. I <em>could</em> fix it, but then there'd probably be something else to fix, and frankly life is too short. Use Chrome or Firefox or a recent version of Safari or, hell, anything except what you're currently using.</p>
<p>The browser build of Rollup uses features that aren't supported here. I <em>could</em> fix it, but then there'd probably be something else to fix, and frankly life is too short. Use Chrome or Firefox or a recent version of Safari or, hell, anything except what you're currently using.</p>
<p>Sorry.</p>
</div>
`
`;
}
new Footer({

78
src/files/images/rollup_logomark.svg

@ -0,0 +1,78 @@
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px"
viewBox="0 0 1000 1000"
xml:space="preserve">
<style type="text/css">
.st0{fill:url(#XMLID_4_);}
.st1{fill:url(#XMLID_5_);}
.st2{fill:url(#XMLID_8_);}
.st3{fill:url(#XMLID_9_);}
.st4{fill:url(#XMLID_11_);}
.st5{opacity:0.3;fill:url(#XMLID_16_);}
</style>
<g id="XMLID_14_">
<linearGradient id="XMLID_4_" gradientUnits="userSpaceOnUse" x1="444.4687" y1="526.0508" x2="598.4686" y2="562.0508">
<stop offset="0" style="stop-color:#FF6533"/>
<stop offset="0.1573" style="stop-color:#FF5633"/>
<stop offset="0.4342" style="stop-color:#FF4333"/>
<stop offset="0.7142" style="stop-color:#FF3733"/>
<stop offset="1" style="stop-color:#FF3333"/>
</linearGradient>
<path id="XMLID_15_" class="st0" d="M721,410c0-33.6-8.8-65.1-24.3-92.4c-41.1-42.3-130.5-52.1-152.7-0.2
c-22.8,53.2,38.3,112.4,65,107.7c34-6-6-84-6-84c52,98,40,68-54,158S359,779,345,787c-0.6,0.4-1.2,0.7-1.9,1h368.7
c6.5,0,10.7-6.9,7.8-12.7l-96.4-190.8c-2.1-4.1-0.6-9.2,3.4-11.5C683,540.6,721,479.8,721,410z"/>
</g>
<g id="XMLID_2_">
<linearGradient id="XMLID_5_" gradientUnits="userSpaceOnUse" x1="420.3825" y1="475.002" x2="696.3825" y2="689.002">
<stop offset="0" style="stop-color:#BF3338"/>
<stop offset="1" style="stop-color:#FF3333"/>
</linearGradient>
<path id="XMLID_10_" class="st1" d="M721,410c0-33.6-8.8-65.1-24.3-92.4c-41.1-42.3-130.5-52.1-152.7-0.2
c-22.8,53.2,38.3,112.4,65,107.7c34-6-6-84-6-84c52,98,40,68-54,158S359,779,345,787c-0.6,0.4-1.2,0.7-1.9,1h368.7
c6.5,0,10.7-6.9,7.8-12.7l-96.4-190.8c-2.1-4.1-0.6-9.2,3.4-11.5C683,540.6,721,479.8,721,410z"/>
</g>
<linearGradient id="XMLID_8_" gradientUnits="userSpaceOnUse" x1="429.3864" y1="517.1558" x2="469.3864" y2="559.1558">
<stop offset="0" style="stop-color:#FF6533"/>
<stop offset="0.1573" style="stop-color:#FF5633"/>
<stop offset="0.4342" style="stop-color:#FF4333"/>
<stop offset="0.7142" style="stop-color:#FF3733"/>
<stop offset="1" style="stop-color:#FF3333"/>
</linearGradient>
<path id="XMLID_3_" class="st2" d="M345,787c14-8,110-198,204-288s106-60,54-158c0,0-199,279-271,417"/>
<g id="XMLID_7_">
<linearGradient id="XMLID_9_" gradientUnits="userSpaceOnUse" x1="502.1107" y1="589.4574" x2="490.1107" y2="417.4574">
<stop offset="0" style="stop-color:#FF6533"/>
<stop offset="0.1573" style="stop-color:#FF5633"/>
<stop offset="0.4342" style="stop-color:#FF4333"/>
<stop offset="0.7142" style="stop-color:#FF3733"/>
<stop offset="1" style="stop-color:#FF3333"/>
</linearGradient>
<path id="XMLID_12_" class="st3" d="M373,537c134.4-247.1,152-272,222-272c36.8,0,73.9,16.6,97.9,46.1c-32.7-52.7-90.6-88-156.9-89
v0H307.7c-4.8,0-8.7,3.9-8.7,8.7V412v186v93C312.6,655.9,335.7,605.7,373,537z"/>
</g>
<linearGradient id="XMLID_11_" gradientUnits="userSpaceOnUse" x1="450.1249" y1="514.2094" x2="506.9431" y2="552.8457">
<stop offset="0" style="stop-color:#FBB040"/>
<stop offset="1" style="stop-color:#FB8840"/>
</linearGradient>
<path id="XMLID_6_" class="st4" d="M549,499c-94,90-190,280-204,288s-37.5,9-50-5c-13.3-14.9-34-39,78-245
c134.4-247.1,152-272,222-272c36.8,0,73.9,16.6,97.9,46.1c1.3,2.1,2.6,4.3,3.9,6.5c-41.1-42.3-130.5-52.1-152.7-0.2
c-22.8,53.2,38.3,112.4,65,107.7c34-6-6-84-6-84C655,439,643,409,549,499z"/>
<linearGradient id="XMLID_16_" gradientUnits="userSpaceOnUse" x1="508.3334" y1="295.7576" x2="450.3334" y2="933.7576">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"/>
</linearGradient>
<path id="XMLID_13_" class="st5" d="M384,548c134.4-247.1,152-272,222-272c30.3,0,60.8,11.3,84,31.7c-24-27.4-59.6-42.7-95-42.7
c-70,0-87.6,24.9-222,272c-112,206-91.3,230.1-78,245c1.9,2.1,4.1,3.9,6.4,5.4C289.7,770.4,284.5,730.9,384,548z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

4
src/guide/98-faqs.md

@ -9,3 +9,7 @@ coming soon...
### Why are ES2015 modules better than AMD and CommonJS?
coming soon...
### Who made the Rollup logo? It's lovely.
I know! It was made by [Julian Lloyd.](https://twitter.com/jlmakes)

8
src/styles/header.css

File diff suppressed because one or more lines are too long

4
src/styles/typography.css

@ -40,10 +40,6 @@ h1, h2 {
color: #222;
}
h1 {
color: white;
}
h3, h4, h5, h6 {
font-family: 'Source Sans Pro';
font-weight: 500;

Loading…
Cancel
Save