mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-03 05:19:08 +00:00
cleanup + small styling
This commit is contained in:
+5
-10
@@ -1,6 +1,11 @@
|
|||||||
const dummy = new Date();
|
const dummy = new Date();
|
||||||
|
|
||||||
export const sampleData = {
|
export const sampleData = {
|
||||||
|
message: {
|
||||||
|
text: 'Hurry Up!',
|
||||||
|
color: '#F00',
|
||||||
|
active: false,
|
||||||
|
},
|
||||||
events: [
|
events: [
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
@@ -11,11 +16,6 @@ export const sampleData = {
|
|||||||
timeEnd: dummy,
|
timeEnd: dummy,
|
||||||
clockStarted: dummy,
|
clockStarted: dummy,
|
||||||
timerDuration: 10,
|
timerDuration: 10,
|
||||||
message: {
|
|
||||||
text: 'Hurry Up!',
|
|
||||||
color: '#F00',
|
|
||||||
active: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '2',
|
id: '2',
|
||||||
@@ -26,11 +26,6 @@ export const sampleData = {
|
|||||||
timeEnd: dummy,
|
timeEnd: dummy,
|
||||||
clockStarted: dummy,
|
clockStarted: dummy,
|
||||||
timerDuration: 10,
|
timerDuration: 10,
|
||||||
message: {
|
|
||||||
text: 'Hurry Up!',
|
|
||||||
color: '#F00',
|
|
||||||
active: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
.countdownClock {
|
.countdownClock {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-size: 25vw;
|
font-size: 18vw;
|
||||||
|
margin-top: 6vh;
|
||||||
|
margin-bottom: 5vh;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
letter-spacing: 0.125em;
|
letter-spacing: 0.125em;
|
||||||
line-height: 0.9;
|
line-height: 0.9;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
.progress {
|
.progress {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
width: 90%;
|
||||||
|
margin: 0 auto;
|
||||||
background: rgba(0, 0, 0, 0.25);
|
background: rgba(0, 0, 0, 0.25);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
|
||||||
@@ -9,10 +11,10 @@
|
|||||||
height: 18px;
|
height: 18px;
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
90deg,
|
90deg,
|
||||||
rgba(255, 0, 0, 1) 0%,
|
rgb(145, 255, 191, 1) 0%,
|
||||||
rgba(255, 149, 0, 1) 20%,
|
rgba(145, 255, 191, 0.8) 20%,
|
||||||
rgba(255, 244, 0, 0.8287037037037037) 50%,
|
rgba(145, 255, 191, 0.5) 50%,
|
||||||
rgba(0, 255, 156, 0.7083333333333333) 100%
|
rgba(145, 255, 191, 0.2) 100%
|
||||||
);
|
);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
transition: 0.4s linear;
|
transition: 0.4s linear;
|
||||||
|
|||||||
@@ -19,4 +19,4 @@ export default function ChakraInput(props) {
|
|||||||
}}
|
}}
|
||||||
</Field>
|
</Field>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ export default function Editor() {
|
|||||||
</div>
|
</div>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box className={styles.editor} borderRadius='0.5em'>
|
<Box className={styles.editor} borderRadius='0.5em' overflowX='auto'>
|
||||||
<Heading style={{ paddingBottom: '0.25em' }}>List Events</Heading>
|
<Heading style={{ paddingBottom: '0.25em' }}>List Events</Heading>
|
||||||
<NumberedText number={3} text={'Preview layout'} />
|
<NumberedText number={3} text={'Preview layout'} />
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
|
|||||||
@@ -19,11 +19,6 @@ export default function EventForm(props) {
|
|||||||
timeStart: today,
|
timeStart: today,
|
||||||
timeEnd: today,
|
timeEnd: today,
|
||||||
timerDuration: 30,
|
timerDuration: 30,
|
||||||
message: {
|
|
||||||
text: '',
|
|
||||||
color: '',
|
|
||||||
active: false,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const validationSchema = Yup.object({
|
const validationSchema = Yup.object({
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
.previewContainer {
|
.previewContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
align-items: center;
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.previewItem {
|
||||||
|
width: 47%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
margin-top: 2em;
|
|
||||||
width: 95%;
|
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
background-color: #222;
|
border-color: #222;
|
||||||
|
background-color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
padding: 1em;
|
padding: 0.1em;
|
||||||
align-self: flex-end;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user