forked from andybrewer/mvp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
358 lines (350 loc) · 18.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="./img/brand.png">
<link rel="stylesheet" href="./mvp.css">
<meta charset="utf-8">
<meta name="description" content="MVP.css - No classes, no framework. Just semantic HTML and you're done.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MVP.css - Minimalist stylesheet for HTML elements</title>
</head>
<body>
<header>
<nav>
<a href="https://andybrewer.github.io/mvp/"><img src="./img/logo.png" height="70"></a>
<ul>
<li>Home</li>
<li><a href="#docs">Docs</a></li>
<li><a href="#faq">FAQ</a></li>
<li><a href="https://www.github.com/andybrewer/mvp/" target="_blank">GitHub ↗</a></li>
</ul>
</nav>
<h1>A <u>minimalist</u> stylesheet for HTML elements</h1>
<p><b>No class names, no frameworks,</b> just <em>semantic</em> HTML and <mark>you're done</mark>.</p>
<br>
<p><a href="./quickstart.html.txt" target="_blank"><i>Quickstart Template ↗</i></a><a href="./mvp.css"
target="_blank"><b>Download MVP (6kb) ↗</b></a></p>
</header>
<main>
<hr>
<section>
<header>
<h2>Simple, reusable components</h2>
<p>For a clean looking design that doesn't get in the way</p>
</header>
<aside>
<img src="./img/html.svg" height="150">
<h3>HTML and You're Done</h3>
<p>MVP styles your root HTML elements, so you don't need to learn a new CSS framework or naming
conventions.</p>
<p><a href="https://www.w3schools.com/TAGS/ref_byfunc.asp" target="_blank"><em>HTML Guide
↗</em></a></p>
</aside>
<aside>
<img src="./img/mobile.svg" height="150">
<h3>Mobile-friendly UI</h3>
<p>MVP is designed to look great on all browsers and devices out of the box for rapid prototyping.
</p>
<p>It's like an amped up CSS reset that you can toss into any project to get decent styling.</p>
</aside>
<aside>
<img src="./img/license.svg" height="150">
<h3>MIT License</h3>
<p>MVP is released under the permissive MIT license so you can freely use it however you'd like.</p>
<p>That means personal projects, commercial ventures, remixes and more are all welcome.</p>
</aside>
</section>
<hr>
<section id="testimonials">
<blockquote>
<img src="./img/icon-quote.svg" height="80"><br>
"By far the easiest stylesheet I've ever used. It integrates easily into <s>one</s> all of my
startup projects."
<footer><img src="./img/brand.png" height="36"><br><br><i>- Andy Brewer, Author of MVP.css</i></footer>
</blockquote>
</section>
<hr>
<section id="features">
<header>
<h2>Flexibility without complexity</h2>
<p>A few, clean styling options without all the bells and whistles</p>
</header>
<table>
<thead>
<tr>
<th></th>
<th>MVP.css</th>
<th>No CSS</th>
<th>Custom CSS</th>
</tr>
</thead>
<tr>
<td>Mobile friendly</td>
<td><b>✓</b></td>
<td>✓</td>
<td>✓</td>
</tr>
<tr>
<td>Works out of the box</td>
<td><b>✓</b></td>
<td>✓</td>
<td>∅</td>
</tr>
<tr>
<td>Easy to customize</td>
<td><b>✓</b></td>
<td>✓</td>
<td>∅</td>
</tr>
<tr>
<td>Only semantic HTML</td>
<td><b>✓</b></td>
<td>✓</td>
<td>∅</td>
</tr>
<tr>
<td>No class names</td>
<td><b>✓</b></td>
<td>✓</td>
<td>∅</td>
</tr>
<tr>
<td>Perfect for an MVP</td>
<td><b>✓</b></td>
<td>∅</td>
<td>∅</td>
</tr>
</table>
</section>
<hr>
<div id="figure">
<header>
<h2>A decent MVP in no time</h2>
<p>Cross design off your list and get back to working on the hard stuff</p>
</header>
<figure>
<img src="./img/stock.jpg" alt="Stock photo" width="100%">
<figcaption><i>"Uber for X" brainstorming session</i></figcaption>
</figure>
</div>
<hr>
<article id="docs">
<h2>Docs</h2>
<h3 id="html">HTML Reference</h3>
<aside>
<p>For a showcase of each styled element, check out the <a href="./quickstart.html.txt"
target="_blank">quickstart template
↗</a>.</p>
</aside><br>
<p>MVP.css automatically styles the following HTML elements:</p>
<ul>
<li><code><a></code> <small>— text links</small></li>
<ul>
<li><code><a><b></code>, <code><a><strong></code> <small>— solid link
buttons</small>
</li>
<li><code><a><em></code>, <code><a><i></code> <small>— outlined link
buttons</small>
</li>
</ul>
<li><code><article></code> <small>— content area with normal styling</small></li>
<ul>
<li><code><article><aside></code> <small>— text callout</small>
</li>
</ul>
<li><code><blockquote></code> <small>— quote callout</small></li>
<ul>
<li><code><blockquote><footer></code> <small>— quote attribution</small>
</li>
</ul>
<li><code><body></code> <small>— default parent element</small></li>
<li><code><button></code> <small>— form buttons</small></li>
<li><code><code></code> <small>— inline code highlighting</small></li>
<li><code><figure></code> <small>— image callouts</small></li>
<ul>
<li><code><figure><figcaption></code> <small>— image callout captions</small></li>
</ul>
<li><code><footer></code> <small>— footer area</small></li>
<li><code><form></code> <small>— small form area</small></li>
<ul>
<li><code><form><input></code> <small>— short input field</small></li>
<li><code><form><label></code> <small>— form field labels</small></li>
<li><code><form><select></code> <small>— dropdown options container</small></li>
<ul>
<li><code><form><select><option></code> <small>— dropdown option
items</small></li>
</ul>
<li><code><form><textarea></code> <small>— large input field</small></li>
</ul>
<li><code><header></code> <small>— content area with centered styling</small></li>
<li><code><h1></code>, <code><h2></code>, <code><h3></code>, <code><h4></code>,
<code><h5></code>, <code><h6></code> <small>— headings</small></li>
<li><code><hr></code> <small>— horizontal rule (divider)</small></li>
<li><code><main></code> <small>— main content area</small></li>
<li><code><mark></code> <small>— text highlighting</small></li>
<li><code><nav></code> <small>— top navigation</small></li>
<ul>
<li><code><nav><ul></code> <small>— nav list container</small></li>
<li><code><nav><ul><li></code> <small>— nav list items</small></li>
</ul>
<li><code><ol></code> <small>— numbered list container</small></li>
<ul>
<li><code><ol><li></code> <small>— numbered list items</small></li>
</ul>
<li><code><p></code> <small>— paragraph tag</small></li>
<li><code><samp></code> <small>— large code blocks</small></li>
<li><code><section></code> <small>— content area for centered / special content</small></li>
<ul>
<li><code><section><aside></code> <small>— content card</small></li>
</ul>
<li><code><small></code> <small>— smaller text</small></li>
<li><code><sup></code> <small>— raised text (notification bubbles)</small></li>
<li><code><table></code> <small>— data table</small></li>
<ul>
<li><code><table><td></code> <small>— data table cell</small></li>
<li><code><table><th></code> <small>— data table header cell</small></li>
<li><code><table><thead></code> <small>— data table header section</small></li>
<li><code><table><tr></code> <small>— data table row</small></li>
</ul>
<li><code><ul></code> <small>— unordered list container</small></li>
<ul>
<li><code><ul><li></code> <small>— unordered list item</small></li>
</ul>
</ul><br>
<p><code><div></code> tags are left unstyled.</p>
<br>
<h3 id="variables">Modifying the CSS variables</h3>
<p>MVP.css includes a list of CSS variables. Editing these variables will change the styles globally.</p>
<samp>
:root {<br>
--border-radius: 5px;<br>
--box-shadow: 2px 2px 10px;<br>
--color: #1536F1;<br>
--color-bg: #fff;<br>
--color-bg-secondary: #e9e9e9;<br>
--color-secondary: #920DE9;<br>
--color-shadow: #f4f4f4;<br>
--color-text: #000;<br>
--color-text-secondary: #999;<br>
--hover-brightness-button: 1.4;<br>
--hover-brightness-link: 1.2;<br>
--justify-important: center;<br>
--justify-normal: left;<br>
--line-height: 150%;<br>
--width-card: 285px;<br>
--width-card-medium: 460px;<br>
--width-card-wide: 800px;<br>
--width-content: 1080px;<br>
}
</samp>
<p>Custom styles can be added below the <code>/* Custom styles */</code> comment at the end of the file.</p>
</article>
<hr>
<article id="faq">
<h2>Frequently Asked Questions</h2>
<br>
<h4 id="why">— Why would I use this?</h4>
<p>If you just want to launch already.</p>
<p><sup>PRO TIP</sup> An MVP is a temporary site, it doesn't have to be <i>and shouldn't be</i> perfect.</p>
<br><br>
<h4 id="skills">— What skills will I need?</h4>
<p>Mostly HTML, maybe a hint of CSS if you want to get fancy.</p>
<p><i>CSS</i> <progress max="100" value="5">5</progress></p>
<p><i>Design</i> <progress max="100" value="0">0</progress></p>
<p><i>HTML</i> <progress max="100" value="100">100</progress></p>
<br><br>
<h4 id="minified">— Is there a minified version?</h4>
<p>No.</p>
<br><br>
<h4 id="design">— How can I improve my design?</h4>
<p>Here are some helpful resources:</p>
<ul>
<li>Emojis - <a href="https://www.emojicopy.com/" target="_blank">Emojicopy
↗</a></li>
<li>Icons - <a href="https://www.toptal.com/designers/htmlarrows/" target="_blank">HTML Entities
List by TopTal
↗</a></li>
<li>Icons - <a href="https://thenounproject.com/" target="_blank">TheNounProject
↗</a></li>
<li>Illustrations - <a href="https://gallery.manypixels.co/" target="_blank">Manypixels
↗</a></li>
<li>Illustrations - <a href="https://undraw.co/illustrations" target="_blank">Undraw ↗</a>
</li>
<li>Logo - <a href="https://www.namecheap.com/logo-maker/app/" target="_blank">Namecheap Logo
Maker ↗</a></li>
<li>Product Shots - <a href="https://www.screely.com/" target="_blank">Screely ↗</a></li>
<li>Stock Photos - <a href="https://www.pexels.com/" target="_blank">Pexels ↗</a></li>
<li>Stock Photos - <a href="https://unsplash.com/" target="_blank">Unsplash ↗</a></li>
</ul>
<br><br>
<h4 id="defaults">— What if I don't like the default styles?</h4>
<p>Most styles are editable through <em>CSS variables</em>. You can also add your own styles
inline or at the end of the stylesheet.</p>
<p><sup>PRO TIP</sup> If there are two conflicting CSS styles, the last one will take precedence.</p>
<samp>
body {<br>
color: var(--color-text); /* This will get ignored */<br>
}<br><br>
/* Custom styles */
<br><br>
body {<br>
color: green; /* This will take precedence */<br>
}
</samp>
<br><br>
<h4 id="framework">— What if I still don't like it?</h4>
<p>That's OK, you probably shouldn't love your MVP. The goal of MVP.css is to help you
feel <i>slightly</i> less embarrased about it.</p>
<p><span style="font-size: xx-large; position: relative; top: 6px; margin-right: 7px;">👉</span> If you
want a CSS framework with more features check out <a href="https://bulma.io/" target="_blank">Bulma
↗</a> or <a href="https://tailwindcss.com/" target="_blank">Tailwind ↗</a>.</p>
</article>
<hr>
<section id="ideas">
<header>
<img src="./img/idea.svg" height="200">
<h2>What can you build with MVP.css?</h2>
<p>Free ideas below ↓</p>
</header>
<form>
<header>
<img src="./img/brand.png" height="80">
</header>
<label for="skill">A skill you have:</label>
<input type="text" id="skill" name="skill" size="28" placeholder="Your skill">
<label for="model">Ideal business model:</label>
<select id="model">
<option value="bootstrapped">bootstrapped</option>
<option value="venture-backed">funded</option>
</select>
<label for="job">What you did at your last job:</label>
<textarea cols="28" rows="5" id="job"></textarea>
<button type="submit" onclick="return newIdea();">Submit</button>
<div id="results" style="max-width: 400px;">
</div>
</form>
</section>
</main>
<footer>
<hr>
<p>
Made by <a href="https://www.andybrewer.com" target="_blank">Andy Brewer
↗</a><br>
</p>
</footer>
</body>
<script lang="js">
const companies = ["Amazon", "AirBnB", "Craisglist", "eBay", "Facebook", "Google", "Groupon", "Netflix", "PayPal", "Salesforce", "Spotify", "Twitter", "YouTube"];
const markets = ["advertising", "agriculture", "AI", "banking", "Big Data", "biotech", "construction", "consulting", "finance", "government", "health care", "HR", "insurance", "manufacturing", "pharmaceuticals", "real estate", "the cloud", "transportation"];
function newIdea() {
let company = companies[Math.floor(Math.random() * companies.length)];
let job = document.getElementById("job").value;
let market = markets[Math.floor(Math.random() * markets.length)];
let model = document.getElementById("model").value;
let skill = document.getElementById("skill").value;
let results = document.getElementById("results");
results.innerHTML = `<br><h3>Amazing Idea —</h3><p>A ${model} <mark><b>${company} for ${market}</b></mark>!<br>But with <u>${skill}</u> and a founder who has experience with <i>"${job}"</i>.</p>`;
return false;
}
</script>
</html>