JSFiddle - React, Tailwind, and code Playground
by Derek Anderson
HTML
<div id="akash_checkout"></div>
CSS
.akash_button {
box-shadow: inset 0px 1px 0px 0px #f5978e;
background: linear-gradient(to bottom, #f24537 5%, #c62d1f 100%);
background-color: #f24537;
border-radius: 6px;
border: 1px solid #d02718;
display: inline-block;
cursor: pointer;
color: #ffffff;
font-family: Arial;
font-size: 15px;
font-weight: bold;
padding: 17px 67px;
text-decoration: none;
text-shadow: 0px 1px 0px #810e05;
}
.akash_button:hover {
background: linear-gradient(to bottom, #c62d1f 5%, #f24537 100%);
background-color: #c62d1f;
}
.akash_scrim {
position: absolute;
display: block;
width: 100%;
height: 100%;
background-color: #000000cc;
top: 0;
left: 0;
}
.akash_scrim .akash_checkout_pane {
display: block;
background-color: #fff;
width: 500px;
height: 450px;
border-radius: 8px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-family: 'Open Sauce Sans'
}
.akash_checkout_pane h1 {
padding: 15px;
}
.akash_popout {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
animation: akash_popout .5s ease;
-webkit-animation: akash_popout .5s ease;
overflow: hidden
}
@keyframes akash_popout {
from {
transform: scale(0) translate(-50%, -50%)
}
80% {
transform: scale(1.2) translate(-50%, -50%)
}
to {
transform: scale(1) translate(-50%, -50%)
}
}
@-webkit-keyframes akash_popout {
from {
-webkit-transform: scale(0) translate(-50%, -50%);
}
80% {
-webkit-transform: scale(1.2) translate(-50%, -50%)
}
to {
-webkit-transform: scale(1) translate(-50%, -50%)
}
}
.akash_button.checkout_final {
position: absolute;
bottom: 10px;
right: 10px
}
.akash_item_table {
margin: 15px;
width: 100%;
}
.akash_checkout_payline {
position: absolute;
display: block;
bottom: 75px;
width: 100%;
text-align: center;
}
.akash_payment_disclaimer {
position: absolute;
bottom: 100px;
font-size: 12px;
color: red;
...
JavaScript
const rocket =...