JSFiddle - React, Tailwind, and code Playground
by Gwyn Milcote
HTML
<div id='container'>
<div id='header'>logo/name</div>
<div id='animal_bar'>list all animals/plants</div>
<div id='page'>main content</div>
<div id='footer'>footer</div>
</div>
CSS
img, div, button, span, p {
box-sizing: border-box;
}
html, body {
color: rgba(0, 0, 0, 0.7);
font-family: 'Lato', sans-serif;
line-height: 1.4em;
}
img {
max-width: 100%;
height: auto;
}
body {
background-attachment: fixed;
background-size: cover;
background-position: center;
}
#container {
width: 980px;
margin: 50px auto;
}
#header {
text-align: center;
margin: 80px auto 30px auto;
}
.nav_menu {
background-color: #ddd;
padding: 10px;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
}
.page {
background-color: #fff;
border: 1px solid #666;
padding: 30px;
margin: 20px auto;
border-radius: 5px;
-webkit-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.25);
-moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.25);
box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.25);
}
a {
color: #222;
text-decoration: none;
}
a:hover {
color: #ccc;
}
.page .section {
padding: 15px;
border: 1px solid #ddd;
margin: 30px auto;
}
.multiply {
mix-blend-mode: multiply;
}
.overlay {
mix-blend-mode: soft-light;
}
.add {
mix-blend-mode: lighten;
}
.center {
text-align: center;
}
.inline {
display: inline-block;
}
.tab_content {
display: none;
padding: 10px;
border: 1px solid grey;
}
.active_tab {
border: 1px solid blue;
}
.hidden {
display: none;
}
.flex {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
.half {
width: 50%;
}
.quarter {
width: 25%;
}
.pointer {
cursor: pointer;
}
/* Coat layers */
.animal_coat {
position: relative;
margin: auto;
}
.animal_coat img {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.coat_full {
width: 500px;
height: 400px;
}
.coat_thumb {
width: 125px;
height: 100px;
}
/* Calculators */
#result_table {
width: 100%;
border-collapse: collapse;
margin: 20px...
JavaScript
const icons = [
];