Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamás committed Jul 14, 2023
1 parent a53aeb2 commit c7bba0e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 52 deletions.
114 changes: 63 additions & 51 deletions src/components/sections/agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,23 +184,27 @@ function TabList({ agendaData, activeTab, activeDay, toggleTabs }) {
>
<div className='stage-card-arrow' />
<div className='stage-card-container'>
<div className='tabe-title'>Galois Stage</div>
<div className='flex flex-wrap'>
{activeDay === "Day1"
? getThemes("day1", "stage1").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})
: getThemes("day2", "stage1").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})}
<div className='basis-1/3 sm:basis-1/2 lg:basis-auto'>
<div className='tabe-title'>Galois Stage</div>
</div>
<div className='basis-2/3 sm:basis-1/2 lg:basis-auto'>
<div className='flex flex-wrap'>
{activeDay === "Day1"
? getThemes("day1", "stage1").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})
: getThemes("day2", "stage1").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})}
</div>
</div>
</div>
</button>
Expand All @@ -210,47 +214,55 @@ function TabList({ agendaData, activeTab, activeDay, toggleTabs }) {
>
<div className='stage-card-arrow' />
<div className='stage-card-container'>
<div className='tabe-title'>Fourier Stage</div>
<div className='flex flex-wrap'>
{activeDay === "Day1"
? getThemes("day1", "stage2").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})
: getThemes("day2", "stage2").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})}
<div className='basis-1/3 sm:basis-1/2 lg:basis-auto'>
<div className='tabe-title'>Fourier Stage</div>
</div>
<div className='basis-2/3 sm:basis-1/2 lg:basis-auto'>
<div className='flex flex-wrap'>
{activeDay === "Day1"
? getThemes("day1", "stage2").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})
: getThemes("day2", "stage2").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})}
</div>
</div>
</div>
</button>

<button className={`stage-card ${activeTab === "Tab3" && "selected"}`} onClick={() => toggleTabs("Tab3")}>
<div className='stage-card-arrow' />
<div className='stage-card-container'>
<div className='tabe-title'>Cauchy Stage</div>
<div className='flex flex-wrap'>
{activeDay === "Day1"
? getThemes("day1", "stage3").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})
: getThemes("day2", "stage3").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})}
<div className='basis-1/3 sm:basis-1/2 lg:basis-auto'>
<div className='tabe-title'>Cauchy Stage</div>
</div>
<div className='basis-2/3 sm:basis-1/2 lg:basis-auto'>
<div className='flex flex-wrap'>
{activeDay === "Day1"
? getThemes("day1", "stage3").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})
: getThemes("day2", "stage3").map((theme) => {
return (
<div className='tab-tags' style={{ backgroundColor: theme.color }}>
{theme.id}
</div>
);
})}
</div>
</div>
</div>
</button>
Expand Down
4 changes: 3 additions & 1 deletion src/components/sections/agenda.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,11 @@
text-transform: uppercase;
border-radius: 5px;
padding: 8px 10px;
margin-right: 6px;
margin-right: 3px;
margin-top: 3px;
@media (min-width: $md) {
margin-top: 8px;
margin-right: 6px;
}
}

Expand Down

0 comments on commit c7bba0e

Please sign in to comment.