Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sn163/Pomoparty
Browse files Browse the repository at this point in the history
  • Loading branch information
sn163 committed Mar 30, 2024
2 parents 5170ac4 + 0a5f06b commit 6b9ea36
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 485 deletions.
15 changes: 9 additions & 6 deletions src/app/_components/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { CSSProperties, useEffect, useRef, useState } from "react";

<<<<<<< HEAD
type Timer = {
hours: number;
minutes: number;
seconds: number;
};

=======
>>>>>>> 0a5f06b04fc42c2fdecd90937191a12c5de5fdce
type DashBoardProps = {
startMin: number;
startSec: number;
Expand Down Expand Up @@ -59,7 +62,7 @@ export default function Dashboard({ startMin, startSec }: DashBoardProps) {
return (
<main className="flex min-h-screen flex-col items-center space-y-10 p-24">
<div
className="radial-progress bg-primary text-primary-content border-4 border-primary"
className="radial-progress bg-primary text-white border-4 border-primary"
style={
{
"--value": percentage,
Expand All @@ -70,13 +73,13 @@ export default function Dashboard({ startMin, startSec }: DashBoardProps) {
role="progressbar"
>
<div className="grid grid-flow-col gap-1 text-center auto-cols-max">
<div className="flex flex-col">
<div className="flex flex-col text-white">
<span className="countdown font-mono text-2xl">
<span style={{ "--value": minutes } as CSSProperties}></span>:
</span>
min
</div>
<div className="flex flex-col">
<div className="flex flex-col text-white">
<span className="countdown font-mono text-2xl">
<span style={{ "--value": seconds } as CSSProperties}></span>
</span>
Expand All @@ -86,21 +89,21 @@ export default function Dashboard({ startMin, startSec }: DashBoardProps) {
</div>
<div className="flex space-x-5">
<button
className="btn rounded-full btn-primary-content text-primary border-2 shadow-md"
className="btn rounded-full btn-primary text-white border-2 shadow-md"
disabled={!!activeTimer}
onClick={() => setActiveTimer(true)}
>
Start
</button>
<button
className="btn rounded-full btn-primary-content text-primary border-2 shadow-md"
className="btn rounded-full btn-primary text-white border-2 shadow-md"
disabled={!activeTimer}
onClick={() => pause()}
>
Pause
</button>
<button
className="btn rounded-full btn-primary-content text-primary border-2 shadow-md"
className="btn rounded-full btn-primary text-white border-2 shadow-md"
onClick={() => restart()}
>
Reset
Expand Down
8 changes: 4 additions & 4 deletions src/app/_components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import Image from "next/image";
export default function NavBar() {
return (
<div className="navbar nav-root drop-shadow-lg opacity-95 px-16 py-3">
<div className="flex-1">
<a className="flex-1" href="/">
<Image
src="/pomoparty-logo-white.png"
height={50}
width={200}
alt="pomoparty-logo"
/>
</div>
<div className="flex space-x-6">
<a className="text-white">
</a>
<div className="flex justify-center space-x-6">
<a>
<button className="text-white">Features</button>
</a>
<a>
Expand Down
8 changes: 1 addition & 7 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
background: #ffff;
}

@layer utilities {
Expand Down
Loading

0 comments on commit 6b9ea36

Please sign in to comment.