From e7f25a860d6c10e0809c197c9ff74816be4d972a Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 21 Sep 2024 23:48:58 +0300 Subject: [PATCH] Fix speakers rendering --- src/Schedule.jsx | 31 +++++++++++++++++-------------- src/Schedule.scss | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 14 deletions(-) diff --git a/src/Schedule.jsx b/src/Schedule.jsx index c2da344..19ccfa8 100644 --- a/src/Schedule.jsx +++ b/src/Schedule.jsx @@ -35,7 +35,7 @@ export default function Schedule({ return (<> {isLoading && <>Loading... }
- {header && <> + {header && rows && <> @@ -98,25 +98,28 @@ export default function Schedule({ )} {speakers && <>
- {Object.entries(speakers).map(([speakerId, speaker]) =>
+ {Object.entries(speakers).map(([speakerId, speaker]) => )}
- {Object.entries(speakers).map(([speakerId, speaker]) =>
- {getSpeakerName(speaker)}/ -

{getSpeakerName(speaker)}

-
- {speaker.twitter && - twitter - } - {speaker.github && - github - } + {Object.entries(speakers).map(([speakerId, speaker]) => +
+ {getSpeakerName(speaker)}/ +

{getSpeakerName(speaker)}

+
+ {speaker.twitter && + + } + {speaker.github && + + } +
+

{speaker.biography}

-

{speaker.biography}

-
)} +
+ )} }
); diff --git a/src/Schedule.scss b/src/Schedule.scss index 4ccf4ba..8e3350e 100644 --- a/src/Schedule.scss +++ b/src/Schedule.scss @@ -195,4 +195,39 @@ } } } + + .speaker { + position: relative; + margin: 0 0 2em 0; + + &::after { + content: " "; + clear: both; + display: block; + } + + > img { + float: left; + padding: 0.3em; + background: #FFF; + box-shadow: 0 0 1px 1px #999; + margin: 0 1em 2em 0; + } + + .icons { + text-align: center; + display: inline-block; + margin: 0 0 0 0.1em; + + a { + display: inline-block; + margin: 0 0.3em 0 0; + } + } + + h3 { + margin: 0 0 0.4em 0; + padding: 0; + } + } }