JSFiddle - React, Tailwind, and code Playground
by Martin Sjåstad
HTML
<section id="projects" class="grid four_columns">
<header class="section_header">
<h1>Projects I have done</h1>
</header>
<article class="project one_fourth column">
<a href="projects/basketskolen.html"><img src="http://placebear.com/220/220" alt="Basketskolen Website" width="220" height="220">
<h2>Basketskolen Website</h2></a>
</article>
<article class="project one_fourth column">
<a href="projects/vcob.html"><img src="http://placebear.com/220/220" alt="Vespa Club Old Boys Website" width="220" height="220">
<h2>Vespa Club Old Boys Website</h2></a>
</article>
<article class="project one_fourth column">
<a href="projects/ucroo.html"><img src="http://placebear.com/220/220" alt="UCROO iOS App" width="220" height="220">
<h2>UROO iOS App</h2></a>
</article>
<article class="project one_fourth column">
<a href="projects/portfolio.html"><img src="http://placebear.com/220/220" alt="Personal Portfolio Website" width="220" height="220">
<h2>Personal Portfolio Website</h2></a>
</article>
</section>
CSS
* {
vertical-align: middle;
hyphens: none;
}
html {
font-size: 100%;
font-size: 1em;
line-height: 1.4;
}
html,
header,
body,
ul,
ol,
footer,
p,
dl,
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}
body {
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 300;
color: #333;
background-color: #EFEFEF;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Roboto Slab', Georgia, Garamond, 'Times New Roman', Times, serif;
font-weight: 400;
text-shadow: 0 1px 1px white;
}
h1 {
font-size: 3em;
line-height: 1.3;
}
h2 {
font-size: 2.2em;
line-height: 1.3;
}
h3 {
font-size: 1.8em;
line-height: 1.4;
}
h4 {
font-size: 1.4em;
line-height: 1.5;
}
h5 {
font-size: 1.2em;
line-height: 1.6;
}
h6 {
font-size: 1em;
line-height: 1.6;
}
a {
color: #785665;
font-weight: 500;
border-bottom: 2px solid #785665;
text-decoration: none;
box-shadow: 0 1px 0 white;
}
a:hover {
border-bottom: none;
}
a > img {
border: none;
border: 0;
}
hr {
display: block;
height: 1px;
padding: 0;
margin: 1em 0;
border: 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid white;
}
.cover_image {
height: 28em;
text-align: center;
background-image: url('../images/layout/in-the-forest.jpg');
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
.cover_image:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
}
.cover_image h1 {
display: inline-block;
vertical-align: middle;
padding: 0.5em 1em 0;
font-size: 3.6em;
font-family: 'Bree Serif', Georgia, Garamond, serif;
font-weight: 400;
line-height: 1;
color: #333;
text-align: center;
background-color: #efefef;
border: 6px solid #333;
text-shadow: 0 1px 1px white;
}
.site_navigation {
margin-top: 2em;
}
.site_navigation li {
display: inline-block;
list-style-type: none;
font-size: 2em;
margin-right: 1em;
}
...