JSFiddle - React, Tailwind, and code Playground

by mkirkland616

HTML

<div style="text-align:center">
    <h1>Stuff</h1>
    <div>
        <span class="item dot"></span>
        <span class="item quad">
            <span class="q1"></span>
            <span class="q2"></span>
            <span class="q3"></span>
            <span class="q4"></span>
        </span>
    </div>
    <div>
        <span class="item pan1"></span>
        <span class="item pan2"></span>
    </div>
</div>

CSS

.item {
    height: 26px;
    width: 26px;
    display: inline-block;
    margin: 2px;
    background-color: pink;
}
.dot {
    background-color: red;
    border-radius: 50%;
}
.quad {
    position: absolute;
}
.quad > span {
    height: 12px;
    width: 12px;
    background-color: green;
    display: inline-block;
    position: absolute;
}
.q1 {
    top: 0;
    left: 0;  
}
.q2 {
    top: 0;
    right: 0;
}
.q3 {
    bottom: 0;
    left: 0;
}
.q4 {
    bottom: 0;
    right: 0;
}