Skip to content

Commit

Permalink
changes (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan-choradia authored Apr 5, 2024
1 parent e923ae0 commit f3e7f9a
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/app/home/components/Timer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Timer.tsx

import React, { useEffect, useState } from 'react';
import NumberBox from './NumberBox';

Expand Down Expand Up @@ -41,7 +39,7 @@ const TimerContainer = ({ days, hours, minutes, seconds }: TimeProps) => {

return (
<div className="mt-2 md:mt-20 rounded-xl">
<div className="grid grid-cols-2 gap-4 py-6 px-10 md:flex md:items-center md:justify-between md:mt-2 rounded-xl md:px-6 md:py-8 " style={{marginTop:-170}} >
<div className="grid grid-cols-2 gap-4 py-6 px-10 md:flex md:items-center md:justify-between md:mt-2 rounded-xl md:px-6 md:py-8 " style={{marginTop: countdownOver ? '-100px' : '-170px'}} >
{!countdownOver ? (
<>
{/* Use the NumberBox component */}
Expand All @@ -54,22 +52,7 @@ const TimerContainer = ({ days, hours, minutes, seconds }: TimeProps) => {
<NumberBox num={updatedSeconds} unit="Seconds" flip={true} countdownOver={countdownOver} />
</>
) : (
<p
style={{
textAlign: 'center',
fontSize: '2.5rem',
fontWeight: 'bold',
color: '#ffffff',
backgroundColor: '#000000',
padding: '20px',
borderRadius: '8px',
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.2)',
margin: '10px 0',
}}
className={countdownOver ? 'countdown-over' : ''}
>
{`Prodyogiki'24 is LIVE now! Check out the events page`}
</p>
<div className="text-4xl font-bold text-center md:text-left" style={{marginTop: '20px'}}>Prodyogiki is LIVE!</div>
)}
</div>
</div>
Expand Down

0 comments on commit f3e7f9a

Please sign in to comment.