Skip to content

Commit 8b5efd3

Browse files
committed
Cleaning up styling, faux-404, usage note.
1 parent e9ff236 commit 8b5efd3

File tree

4 files changed

+39
-28
lines changed

4 files changed

+39
-28
lines changed

.nowignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.next
2+
README.md

now.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{
2222
"src": "/(.*)",
2323
"methods": ["GET"],
24-
"dest": "www/$1"
24+
"dest": "www/?slug=$1"
2525
}
2626
],
2727
"regions": ["gru1", "hnd1", "iad1", "sfo1"],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "A fine collection of hand-crafted example webpipes.",
55
"scripts": {
6+
"dev": "now dev",
67
"test": "echo \"Error: no test specified\" && exit 1"
78
},
89
"author": "Matthew Hudson",

www/pages/index.js

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ const Page = () => (
4949
</ul>
5050
<hr />
5151
<h3>Live WebPipes</h3>
52+
<div class='note'>
53+
<p>
54+
<strong>Remember:</strong> Only `OPTIONS` or `POST` are legal methods.
55+
WebPipes do not support `GET` requests.
56+
</p>
57+
</div>
5258
<ul>
5359
<li>
5460
<a href='https://webpip.es/scrape-url-html'>scrape-url-html</a>
@@ -76,54 +82,51 @@ const Page = () => (
7682
</a>
7783
</li>
7884
<li>
79-
<a href='calculate-square-root'>calculate-square-root</a>
85+
<a href='https://webpip.es/calculate-square-root'>
86+
calculate-square-root
87+
</a>
8088
</li>
8189
</ul>
8290
<hr />
8391
<h3>Client & Server Libraries</h3>
84-
<ul className='ml0 pl0 f5 dib'>
92+
<ul>
8593
<li>
86-
<a
87-
className='dib'
88-
href='https://www.github.com/webpipes/node-webpipe'>
94+
<a href='https://www.github.com/webpipes/node-webpipe'>
8995
Node/JavaScript Server
9096
</a>
9197
</li>
9298
<li>
93-
<a className='dib' href='https://github.com/webpipes/webpipe.js/'>
99+
<a href='https://github.com/webpipes/webpipe.js/'>
94100
JavaScript Client
95101
</a>
96102
</li>
97103
<li>
98-
<a className='dib' href='https://github.com/fkautz/golang-webpipes'>
99-
Go Server
100-
</a>
104+
<a href='https://github.com/ajvb/webpype'>Python Client</a>
101105
</li>
102106
<li>
103-
<a
104-
className='dib'
105-
href='https://github.com/matthewhudson/webpipe.php'>
106-
PHP Client
107-
</a>
107+
<a href='https://github.com/fkautz/golang-webpipes'>Go Server</a>
108+
</li>
109+
<li>
110+
<a href='https://github.com/matthewhudson/webpipe.php'>PHP Client</a>
108111
</li>
109112
</ul>
110113
<hr />
111114
<h3>Community</h3>
112-
<ul className='ml0 pl0'>
113-
<li className='dib'>
115+
<ul>
116+
<li>
114117
<a href='https://join.slack.com/t/webpipes/shared_invite/enQtNjgwMzUzMDk1NzAxLTUwNDE5ZTJmMTgyMWI4MjgxOGNjOWEzNzU3Yzc5MjM0M2E1MzJlYTI0OTY1Njc3YWJhODMxYzZkZjY2MzMyNDY'>
115118
Slack
116119
</a>
117120
</li>
118-
<li className='dib'>
121+
<li>
119122
<a href='https://www.github.com/webpipes'>GitHub</a>
120123
</li>
121-
<li className='dib'>
124+
<li>
122125
<a href='https://groups.google.com/forum/#!forum/webpipes'>
123126
Google Group
124127
</a>
125128
</li>
126-
<li className='dib'>
129+
<li>
127130
<a href='https://spectrum.chat/webpipes?tab=posts'>Spectrum</a>
128131
</li>
129132
</ul>
@@ -149,26 +152,32 @@ const Page = () => (
149152
}
150153
body {
151154
margin: 0;
152-
color: white;
155+
color: black;
153156
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
154157
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
155158
'Helvetica Neue', sans-serif;
156159
text-rendering: optimizeLegibility;
157160
-webkit-font-smoothing: antialiased;
158161
-moz-osx-font-smoothing: grayscale;
159-
background: radial-gradient(circle, #333, #333 1px, #000 1px, #000);
160-
background-size: 28px 28px;
161-
background-position: center;
162162
font-size: 18px;
163163
line-height: 1.6;
164164
font-weight: 400;
165165
}
166166
a {
167167
text-decoration: none;
168-
color: white;
168+
color: #0076ff;
169+
}
170+
.note {
171+
background: #fff3d4;
172+
border-color: #f6b73c;
173+
padding: 5px 15px;
174+
border-radius: 0.25em;
175+
}
176+
ul li {
177+
list-style-type: circle;
169178
}
170179
strong {
171-
color: white;
180+
color: black;
172181
font-weight: 600;
173182
}
174183
code {
@@ -183,11 +192,11 @@ const Page = () => (
183192
}
184193
::selection {
185194
background: #f81ce5;
186-
color: white;
195+
color: black;
187196
}
188197
::-moz-selection {
189198
background: #f81ce5;
190-
color: white;
199+
color: black;
191200
}
192201
.container {
193202
display: flex;

0 commit comments

Comments
 (0)