Discount automatically calculated at checkout.Exclusions apply.
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin
*/
* {
margin: 0;
}
/*
Typographic tweaks!
3. Add accessible line-height
4. Improve text rendering
*/
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/*
6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/*
8. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
.countdown {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 10px;
margin: 10px;
}
.unit {
background-color: rgb(254 125 0);
color: black;
padding: 10px;
text-align: center;
text-transform: uppercase;
width: 100%;
font-weight: 800;
border-radius:5px;
}
.value {
font-size: 3rem;
}
const today = new Date()
const tomorrow = new Date(today)
tomorrow.setDate(tomorrow.getDate() + 1)
tomorrow.setHours(0)
tomorrow.setMinutes(0)
tomorrow.setMilliseconds(0)
var _second = 1000
var _minute = _second * 60
var _hour = _minute * 60
var _day = _hour * 24
var timer
function showRemaining() {
var now = new Date()
var distance = tomorrow - now
var days = Math.floor(distance / _day)
var hours = Math.floor((distance % _day) / _hour)
var minutes = Math.floor((distance % _hour) / _minute)
var seconds = Math.floor((distance % _minute) / _second)
document.getElementById('seconds').innerHTML = seconds
document.getElementById('minutes').innerHTML = minutes
document.getElementById('hours').innerHTML = hours
}
timer = setInterval(showRemaining, 1000)