style: display private

style changes to display private events
This commit is contained in:
cv
2021-06-10 21:00:53 +02:00
parent 3bb1292a90
commit 256c33393c
3 changed files with 32 additions and 12 deletions
@@ -32,8 +32,6 @@ export default function Paginator(props) {
// if array is completely in past, show depending on SCROLL_PAST // if array is completely in past, show depending on SCROLL_PAST
}, [events, selPage, LIMIT_PER_PAGE]); }, [events, selPage, LIMIT_PER_PAGE]);
console.log('debug events', events);
// every SCROLL_TIME go to the next array // every SCROLL_TIME go to the next array
useInterval(() => { useInterval(() => {
if (numEvents > LIMIT_PER_PAGE) { if (numEvents > LIMIT_PER_PAGE) {
@@ -26,11 +26,13 @@
margin-left: 0.5vw; margin-left: 0.5vw;
} }
.entryStart, .entryTimes {
.entryEnd {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
min-width: 5vw; font-size: 1.4vw;
min-width: 10vw;
opacity: 0.9; opacity: 0.9;
letter-spacing: 0.035em;
} }
.entryTitle { .entryTitle {
@@ -40,26 +42,42 @@
.entryPast, .entryPast,
.entryNow, .entryNow,
.entryFuture { .entryFuture {
background-color: rgba(255, 255, 255, 0.03);
display: flex; display: flex;
font-size: 1.3vw; font-size: 1.3vw;
padding: 0.2vh 1vw; padding: 0.2vh 1vw;
margin-bottom: 1.5vh; margin-bottom: 1.5vh;
border-radius: 3px;
} }
.entryPast { .entryPast {
color: #aaa; background-color: rgba(255, 255, 255, 0.01);
font-size: 1.2vw; font-size: 1.2vw;
} }
.entryPast > .entryTitle {
color: #999;
}
.entryFuture { .entryFuture {
background-color: rgba(255, 255, 255, 0.03);
color: #ddd; color: #ddd;
} }
.entryNow { .entryNow {
color: #fff; color: #fff;
line-height: 5vh; line-height: 5vh;
background-color: rgba(255, 255, 255, 0.09); background-color: rgba(255, 255, 255, 0.07);
border-bottom: 0.5vh solid #ff7597aa; border-bottom: 0.5vh solid #ff7597aa;
margin-left: -0.5vw; margin-left: -0.5em;
padding-left: 0.5em;
}
.backstageInd {
color: #ff7597aa;
margin-left: auto;
margin-right: -0.5vw;
}
.backstageInd::before {
content: '*';
} }
@@ -1,7 +1,7 @@
import { stringFromMillis } from 'common/dateConfig'; import { stringFromMillis } from 'common/dateConfig';
import style from './Paginator.module.css'; import style from './Paginator.module.css';
export default function TodayItem(props) { export default function TodayItem(props) {
const { selected, timeStart, timeEnd, title } = props; const { selected, timeStart, timeEnd, title, backstageEvent } = props;
// Format timers // Format timers
const start = stringFromMillis(timeStart, false) || ''; const start = stringFromMillis(timeStart, false) || '';
@@ -13,9 +13,13 @@ export default function TodayItem(props) {
else if (selected === 2) selectStyle = style.entryFuture; else if (selected === 2) selectStyle = style.entryFuture;
return ( return (
<div className={selectStyle}> <div className={selectStyle}>
<div className={style.entryStart}>{start}</div> <div
<div className={style.entryEnd}>{end}</div> className={`${style.entryTimes} ${
backstageEvent ? style.backstage : undefined
}`}
>{`${start} · ${end}`}</div>
<div className={style.entryTitle}>{title}</div> <div className={style.entryTitle}>{title}</div>
{backstageEvent && <div className={style.backstageInd}></div>}
</div> </div>
); );
} }