Skip to content

Commit

Permalink
Merge branch 'main' of github.com:maxphillipsdev/tech-spire-2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Phillips committed Oct 3, 2022
2 parents 819c96a + d1ebc6e commit 7213e14
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 16 deletions.
30 changes: 17 additions & 13 deletions components/ShowCounter.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
const DateTimeDisplay = ({value, type}) => {
return (
<>
{value} {type}
</>
)
}
const DateTimeDisplay = ({ value, type }) => {
return (
<>
<text class="font-bold xl:text-8xl">{value}</text>{" "}
<text class="xl:text-4xl">{type} </text>
</>
);
};

const ShowCounter = ({ days, hours, minutes, seconds }) => {
return (
<div>
<DateTimeDisplay value={days} type={'DAYS'}/> <DateTimeDisplay value={hours} type={'HOURS'}/> <DateTimeDisplay value={minutes} type={'MINUTES'}/> <DateTimeDisplay value={seconds} type={'SECONDS'}/>
</div>
);
return (
<div className="bg-green-100">
<DateTimeDisplay value={days} type={"DAYS"} />{" "}
<DateTimeDisplay value={hours} type={"HOURS"} />{" "}
<DateTimeDisplay value={minutes} type={"MINUTES"} />{" "}
<DateTimeDisplay value={seconds} type={"SECONDS"} />
</div>
);
};

export default ShowCounter;
export default ShowCounter;
15 changes: 12 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ const Home: NextPage = () => {
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="grid h-full place-content-center">
<h1 className="animate-bounce text-4xl font-bold">Hello Next.js!</h1>
<Countdown targetDate={EVENT_DATE} />
<main className="grid h-full grid-cols-7 place-content-center bg-green-100">
<div className="col-span-5 grid grid-rows-3 items-center justify-center bg-orange-800 text-center">
<div className="row-span-1 bg-orange-100"></div>
<div className="row-span-1 flex bg-orange-200">
<Countdown targetDate={EVENT_DATE} />
</div>
<div className="row-span-1 bg-orange-300"></div>
</div>
<div className="col-span-2 grid grid-rows-3 bg-red-100">
<div className="row-span-1"></div>
<div className="row-span-1"></div>
</div>
</main>
</>
);
Expand Down
Binary file added public/temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ module.exports = {
fontFamily: {
sans: ["Inter", "sans-serif"],
},
// fontSize: {
// '1xl': '1rem',
// '2xl': '1.5rem',
// '3xl': '2rem',
// '4xl': '4rem',
// '5xl': '3rem',
// '6xl': '6rem',
// '7xl': '7rem',
// }
},
plugins: [
// Typography
Expand Down

0 comments on commit 7213e14

Please sign in to comment.