Professional Documents
Culture Documents
DOCTYPE html>
<html class="step0 step1 step2 step3 step4 step5 step6 step7 wf-roboto-n3-active
wf-roboto-n4-active wf-roboto-n5-active wf-active step8 step9"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Web Design in 4 minutes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<main>
<section id="start">
<p>Let's say you have a product, a portfolio, or just an idea you want to
share with everyone on your <em>own</em> website. Before you publish it on the
internet, you want to make it look attractive, professional, or at least
<em>decent</em> to look at.</p>
<p>What is the <a class="step" data-step="0" href="#content">first
thing</a> you need to work on?</p>
</section>
<span class="selector">h2</span> {
<span class="attribute">margin-top</span>: <span class="number">1</span><span
class="unit">em</span>;
<span class="attribute">padding-top</span>: <span class="number">1</span><span
class="unit">em</span>;
}</pre>
<p>While the layout has greatly improved so far, let's apply more <a
class="step" data-step="4" href="#color-contrast">subtle changes</a>.</p>
</section>
<span class="selector">code</span> {
<span class="attribute">padding</span>: <span class="number">2</span>px <span
class="number">4</span>px;
<span class="attribute">vertical-align</span>: text-bottom;
}
<span class="selector">pre</span> {
<span class="attribute">padding</span>: <span class="number">1</span>em;
}</pre>
<p>At this point, you might want to make your page stand out and give it <a
class="step" data-step="6" href="#primary-color">identity</a>.</p>
</section>
<span class="selector">code</span>,
<span class="selector">pre</span> {
<span class="attribute">background</span>: <span class="number">#f5f7f9</span>;
<span class="attribute">border-bottom</span>: <span class="number">1</span><span
class="unit">px</span> solid <span class="number">#d8dee9</span>;
<span class="attribute">color</span>: <span class="number">#a7adba</span>;
}
<span class="selector">pre</span> {
<span class="attribute">border-left</span>: <span class="number">2</span><span
class="unit">px</span> solid <span class="number">#69c</span>;
}</pre>
<p>Having changed the shades, why not change the <a class="step" data-
step="8" href="#custom-font">shapes</a>...</p>
</section>
<span class="selector">body</span> {
<span class="attribute">font-family</span>: <span class="string">"Roboto"</span>,
<span class="string">"Helvetica"</span>, <span class="string">"Arial"</span>, sans-
serif;
}</pre>
<p>After enhancing your identity through <em>text</em>, how about adding a
<a class="step" data-step="9" href="#images">thousand words</a>...</p>
</section>
<section id="share">
<h2>Learn CSS!</h2>
<p>
I've written a <strong>44-page pdf</strong> that teaches you how to
<strong>build your own webpage</strong> from scratch. <span class="emoji">😃</span>
</p>
<p class="cover">
<a class="resource" href="https://jgthms.com/css-in-44-minutes-ebook">
<img src="Web%20Design%20in%204%20minutes_files/empty.htm" srcset="Web
%20Design%20in%204%20minutes_files/css-in-44-minutes-book-cover.png 1x, Web
%20Design%20in%204%20minutes_files/css-in-44-minutes-book-cover2x.png 2x, Web
%20Design%20in%204%20minutes_files/css-in-44-minutes-book-cover3x.png 3x, Web
%20Design%20in%204%20minutes_files/css-in-44-minutes-book-cover4x.png 4x" alt="CSS
in 44 minutes book cover" width="252" height="352">
</a>
</p>
<h2>Share the love!</h2>
<nav class="buttons">
<a class="button github" href="https://github.com/jgthms/web-design-in-4-
minutes" target="_blank">
<em>Download on</em> <strong>GitHub</strong>
</a>
<a class="button facebook" href="https://www.facebook.com/sharer.php?
u=https%3A%2F%2Fjgthms.com%2Fweb-design-in-4-minutes%2F" rel="nofollow"
target="_blank">
<em>Share on</em> <strong>Facebook</strong>
</a>
<a class="button twitter" data-social-network="Twitter" data-social-
action="tweet" data-social-target="https://jgthms.com/web-design-in-4-minutes/"
href="https://twitter.com/intent/tweet?text=Web%20Design%20in
%204%20minutes&url=https%3A%2F%2Fjgthms.com%2Fweb-design-in-4-minutes
%2F&via=jgthms" rel="nofollow" target="_blank">
<em>Share on</em> <strong>Twitter</strong>
</a>
</nav>
<h2>Learn how to design with code!</h2>
<p>
Here are the resources I wrote to help you learn CSS:
</p>
<nav class="resources">
<a class="resource-marksheet resource" href="http://marksheet.io/"
target="_blank">
<figure class="resource-icon">
<img src="Web%20Design%20in%204%20minutes_files/marksheet.png"
alt="Logo of MarkSheet">
</figure>
<p>
<strong class="resource-name">MarkSheet</strong>
my <strong>free tutorial</strong> to learn HTML and CSS
</p>
</a>
<a class="resource-bulma resource" href="https://bulma.io/"
target="_blank">
<figure class="resource-icon">
<img src="Web%20Design%20in%204%20minutes_files/bulma.png" alt="Logo
of Bulma">
</figure>
<p>
<strong class="resource-name">Bulma</strong>
my <strong>CSS framework</strong> based on Flexbox, so you can get
started right away
</p>
</a>
<a class="resource-css-reference resource" href="http://cssreference.io/"
target="_blank">
<figure class="resource-icon">
<img src="Web%20Design%20in%204%20minutes_files/css-reference.png"
alt="Logo of CSS Reference">
</figure>
<p>
<strong class="resource-name">CSS Reference</strong>
my <strong>visual guide</strong> to the most popular CSS properties
</p>
</a>
</nav>
<p>Thanks for reading!</p>
</section>
<footer>
<a class="button" href="https://jgthms.com/" target="_blank">Made by
<strong>@jgthms</strong></a>
</footer>
</main>
<script src="Web%20Design%20in%204%20minutes_files/webfont.js"></script><script
type="text/javascript">
var steps = document.querySelectorAll('.step');
var body = document.querySelector('body');
var html = document.querySelector('html');
function removeVisited() {
if (document.getElementById('visited')) {
body.removeChild(document.getElementById('visited'));
}
}
removeVisited();
visited.onclick = function() {
loadGoogleFont();
for (var i=0; i < 11; i++) {
html.className += ' step' + i;
}
removeVisited();
}
WebFontConfig = {
google: {
families: ['Roboto:300,400,500']
}
};
function loadGoogleFont() {
(function(d) {
var wf = d.createElement('script'), s = d.scripts[0];
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js';
s.parentNode.insertBefore(wf, s);
})(document);
}
</script>
</body></html>