Style timer view
This commit is contained in:
@@ -7,3 +7,4 @@ $green: #7dc332;
|
|||||||
$green-dark: #639a28;
|
$green-dark: #639a28;
|
||||||
$blue: #38b5eb;
|
$blue: #38b5eb;
|
||||||
$red: #fb3a2f;
|
$red: #fb3a2f;
|
||||||
|
$gray-base: #a3a3a3;
|
||||||
|
|||||||
@@ -94,10 +94,37 @@ html {
|
|||||||
|
|
||||||
.moco-bx-timer-view {
|
.moco-bx-timer-view {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 4rem;
|
margin-top: 3rem;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.2;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-secondary {
|
||||||
|
color: $gray-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timer {
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-stop-timer {
|
.btn-stop-timer {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
|
background-color: $red;
|
||||||
|
border: none;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,20 +10,20 @@ export default function TimerView({ timedActivity, onStopTimer }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="moco-bx-timer-view">
|
<div className="moco-bx-timer-view">
|
||||||
<h3>
|
<h1>
|
||||||
{timedActivity.customer_name}:<br />
|
|
||||||
{timedActivity.assignment_name}
|
{timedActivity.assignment_name}
|
||||||
</h3>
|
<br />
|
||||||
<h3>{timedActivity.task_name}</h3>
|
{timedActivity.task_name}
|
||||||
<br />
|
</h1>
|
||||||
|
<p className="text-secondary">{timedActivity.customer_name}</p>
|
||||||
<Timer
|
<Timer
|
||||||
className="text-red"
|
className="timer text-red"
|
||||||
startedAt={parseISO(timedActivity.timer_started_at)}
|
startedAt={parseISO(timedActivity.timer_started_at)}
|
||||||
offset={timedActivity.seconds}
|
offset={timedActivity.seconds}
|
||||||
style={{ fontSize: "60px", display: "inline-block" }}
|
style={{ fontSize: "48px", display: "inline-block" }}
|
||||||
/>
|
/>
|
||||||
<button className="moco-bx-btn btn-stop-timer" onClick={handleStopTimer}>
|
<button className="moco-bx-btn btn-stop-timer" onClick={handleStopTimer}>
|
||||||
Timer Stoppen
|
Stopp
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user