Skip to content

Commit

Permalink
Schedule and workshop layout
Browse files Browse the repository at this point in the history
Moved speakers below
  • Loading branch information
ryjogo committed Nov 3, 2023
1 parent 2ea604c commit 97befaf
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 140 deletions.
45 changes: 26 additions & 19 deletions src/components/pages/schedule/schedule/schedule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,16 +558,9 @@ const Schedule = ({ location }) => {

</h3>
<div className="mt-auto flex items-center gap-x-4 sm:gap-x-7">
<span className="rounded-full bg-rasin px-2 py-2 text-[13px] font-semibold leading-none tracking-tighter text-white text-primary-1 md:text-xs">
{duration}
</span>
{talkLocation && (
<span className="rounded-full bg-gray-10 px-4 py-2 text-xs font-semibold leading-none tracking-tighter text-rasin sm:hidden">
{talkLocation}
</span>
)}

{speakers && speakers.length > 0 && (
<ul className="relative inline-flex ml-5 gap-x-5 before:absolute before:top-0 before:bottom-0 before:-left-4 before:my-auto before:h-1 before:w-1 before:rounded-full before:bg-primary-3 sm:gap-x-4">
<ul className="relative inline-flex ml-0 gap-x-5 sm:gap-x-4">
{speakers.map(({ name, photo }, index) => (
<li className="" key={index}>
<figure className="flex items-center gap-x-2">
Expand All @@ -588,6 +581,17 @@ const Schedule = ({ location }) => {
</ul>
)}
</div>

<div className="mt-0 flex items-center gap-x-4 sm:gap-x-2">
<span className="rounded-full bg-rasin px-2 py-2 text-[13px] font-semibold leading-none tracking-tighter text-white text-primary-1 md:text-xs">
{duration}
</span>
{talkLocation && (
<span className="rounded-full bg-gray-10 px-4 py-2 text-xs font-semibold leading-none tracking-tighter text-rasin">
{talkLocation}
</span>
)}
</div>
</div>
{coincidedEvent && (
<div
Expand Down Expand Up @@ -622,16 +626,8 @@ const Schedule = ({ location }) => {

</h3>
<div className="mt-auto flex items-center gap-x-4 sm:gap-x-7">
<span className="rounded-full bg-rasin px-2 py-2 text-[13px] font-semibold leading-none tracking-tighter text-white text-primary-1 md:text-xs">
{coincidedEvent.duration}
</span>
{coincidedEvent.talkLocation && (
<span className="rounded-full bg-gray-10 px-4 py-2 text-xs font-semibold leading-none tracking-tighter text-rasin sm:hidden">
{coincidedEvent.talkLocation}
</span>
)}
{coincidedEvent.speakers && coincidedEvent.speakers.length > 0 && (
<ul className="relative ml-5 inline-flex gap-x-5 before:absolute before:top-0 before:bottom-0 before:-left-4 before:my-auto before:h-1 before:w-1 before:rounded-full before:bg-primary-3 sm:gap-x-4">
{coincidedEvent.speakers && coincidedEvent.speakers.length > 0 && (
<ul className="relative ml-0 inline-flex gap-x-5 sm:gap-x-4">
{coincidedEvent.speakers.map(({ name, photo }, index) => (
<li className="" key={index}>
<figure className="flex items-center gap-x-2">
Expand All @@ -652,6 +648,17 @@ const Schedule = ({ location }) => {
</ul>
)}
</div>
<div className="mt-0 flex items-center gap-x-4 sm:gap-x-2">
<span className="rounded-full bg-rasin px-2 py-2 text-[13px] font-semibold leading-none tracking-tighter text-white text-primary-1 md:text-xs">
{coincidedEvent.duration}
</span>
{coincidedEvent.talkLocation && (
<span className="rounded-full bg-gray-10 px-4 py-2 text-xs font-semibold leading-none tracking-tighter text-rasin">
{coincidedEvent.talkLocation}
</span>
)}

</div>
</div>
)}
</div>
Expand Down
Loading

0 comments on commit 97befaf

Please sign in to comment.