JSFiddle - React, Tailwind, and code Playground
by Van Hai Le
HTML
<section class='wrapper'>
</section>
CSS
/* Reset CSS */
h1, h6, p, body {
margin: 0;
padding: 0;
}
/* */
* {
font-family: 'Roboto', sans-serif;
}
.product-filter {
display: flex;
}
.title {
flex-grow: 1;
padding: 16px;
font-family: "Montserrat",sans-serif;
align-self: center;
}
.sort {
display: flex;
padding: 16px;
}
.collection-sort {
align-self: center;
padding: 0 16px;
display: flex;
flex-direction: column;
}
.collection-sort:last-child {
padding: 0;
}
label {
padding-bottom: 8px;
}
select {
border-radius: 5px;
padding: 4px;
}
.products {
display: flex;
flex-wrap: wrap;
}
img {
width: 100%;
}
.product-card {
flex: 1 27%;
padding-left: 16px;
}
.product-card:last-child {
padding-right: 16px;
}
.product-name {
font-size: 1em;
}