From c75a32c60aa92e3649fc270ca4e746ba73b8baf1 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Sat, 12 Jan 2019 21:30:59 -0800 Subject: [PATCH] Small tweaks --- modules/client/main.js | 4 --- modules/client/main/App.js | 60 ++++++++++++++++++++++---------------- 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/modules/client/main.js b/modules/client/main.js index 9f70648..a61f6de 100644 --- a/modules/client/main.js +++ b/modules/client/main.js @@ -27,10 +27,6 @@ const globalStyles = css` color: rebeccapurple; } - h3 { - font-size: 1.6em; - } - dd, ul { margin-left: 0; diff --git a/modules/client/main/App.js b/modules/client/main/App.js index cc1620d..d78ff9c 100644 --- a/modules/client/main/App.js +++ b/modules/client/main/App.js @@ -10,6 +10,24 @@ import formatPercent from '../utils/formatPercent'; import cloudflareLogo from './CloudflareLogo.png'; import herokuLogo from './HerokuLogo.png'; +const styles = { + heading: { + margin: 0, + textTransform: 'uppercase', + textAlign: 'center', + fontSize: '5em' + }, + subheading: { + fontSize: '1.6em' + }, + example: { + textAlign: 'center', + backgroundColor: '#eee', + margin: '2em 0', + padding: '5px 0' + } +}; + function AboutLogo({ children }) { return (
@@ -67,16 +85,7 @@ export default class App extends React.Component { return (
-

- unpkg -

+

unpkg

unpkg is a fast, global{' '} @@ -88,21 +97,14 @@ export default class App extends React.Component { like:

-
- unpkg.com/:package@:version/:file -
+
unpkg.com/:package@:version/:file
{stats && }
-

Examples

+

+ Examples +

Using a fixed version:

@@ -173,7 +175,9 @@ export default class App extends React.Component { -

Query Parameters

+

+ Query Parameters +

@@ -197,7 +201,9 @@ export default class App extends React.Component {
-

Cache Behavior

+

+ Cache Behavior +

The CDN caches files based on their permanent URL, which includes the @@ -217,7 +223,9 @@ export default class App extends React.Component { cache assets for 1 year.

-

About

+

+ About +

unpkg is an open source project @@ -254,7 +262,9 @@ export default class App extends React.Component {

-

Workflow

+

+ Workflow +

For npm package authors, unpkg relieves the burden of publishing your