Skip to content

Commit 33bb250

Browse files
committed
wip: add NEXT and AUTO
1 parent cec285c commit 33bb250

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

packages/webui/src/client/styles/countdown/director.scss

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $hold-status-color: $liveline-timecode-color;
7070
display: grid;
7171
grid-template:
7272
24em
73-
70em
73+
50em
7474
30em / #{'min(13vw, 27vh)'} auto;
7575
white-space: nowrap;
7676

@@ -79,14 +79,17 @@ $hold-status-color: $liveline-timecode-color;
7979
grid-column: 1 / -1;
8080
text-align: left;
8181
padding-left: 10px;
82+
letter-spacing: 0%;
8283
vertical-align: middle;
84+
color: #fff;
8385
position: relative;
8486
/* PartNameWide */
8587
font-family: 'Roboto Flex';
8688
font-style: normal;
8789
font-weight: 700;
88-
font-size: 99px;
90+
font-size: 90px;
8991
line-height: 110%;
92+
/* or 110px */
9093
letter-spacing: 0.01em;
9194
font-feature-settings: 'pnum' on, 'lnum' on;
9295

@@ -215,6 +218,30 @@ $hold-status-color: $liveline-timecode-color;
215218
grid-row: 2 / -1;
216219
}
217220
}
221+
222+
.director-screen__body__part__next {
223+
background-color: $general-next-color;
224+
position: relative;
225+
clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
226+
}
227+
.director-screen__body__part__auto {
228+
background-color: #DF0000;
229+
position: relative;
230+
border-radius: 0 25px 25px 0;
231+
}
232+
233+
.director-screen__body__part__next,
234+
.director-screen__body__part__auto {
235+
grid-row: 1;
236+
grid-column: 1;
237+
margin-top: -50px;
238+
text-align: center;
239+
font-size: 1.5rem;
240+
color: #000;
241+
padding-top: 10px;
242+
max-width: 100px;
243+
max-height: 50px;
244+
}
218245
}
219246

220247
.clocks-segment-countdown-red {

packages/webui/src/client/ui/ClockView/DirectorScreen.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,11 @@ function DirectorScreenRender({
494494
</div>
495495
{nextPartInstance && nextShowStyleBaseId ? (
496496
<>
497+
{currentPartInstance && currentPartInstance.instance.part.autoNext ? (
498+
<span className="director-screen__body__part__auto">AUTO</span>
499+
) : (
500+
<span className="director-screen__body__part__next">NEXT</span>
501+
)}
497502
<div className="director-screen__body__part__piece-icon">
498503
<PieceIconContainer
499504
partInstanceId={nextPartInstance.instance._id}
@@ -503,13 +508,6 @@ function DirectorScreenRender({
503508
/>
504509
</div>
505510
<div className="director-screen__body__part__piece-name">
506-
{currentPartInstance && currentPartInstance.instance.part.autoNext ? (
507-
<img
508-
className="director-screen__body__part__auto-next-icon"
509-
src="/icons/auto-presenter-screen.svg"
510-
alt="Autonext"
511-
/>
512-
) : null}
513511
{nextPartInstance && nextShowStyleBaseId && nextPartInstance.instance.part.title ? (
514512
<PieceNameContainer
515513
partName={nextPartInstance.instance.part.title}

0 commit comments

Comments
 (0)