Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add another button for dev phase #72

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions src/components/Pages/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { contributors } from '../../meta/contributors';
import { coreTeam, retiredTeam } from '../../meta/coreTeam';
import colors from '../../config/colors';

const phases = ['alpha', 'beta', 'v2', 'v3'];
const phases = ['alpha', 'beta', 'v2', 'v3', 'closeout'];
const timelineText = [
<p>
Kolak, Li, and Lin begin development of the Atlas on March 14, and make it
Expand Down Expand Up @@ -37,6 +37,9 @@ const timelineText = [
here.
</a>
</p>,
<p>
Closeout phase text here
</p>,
];

const coalitionPartners = [
Expand Down Expand Up @@ -228,7 +231,7 @@ const TimelineDescription = styled.span`
margin-left: ${(props) =>
props.index === 0
? 0
: `calc(${100 * (props.index / 3)}% - ${50 * (props.index / 3)}ch)`};
: `calc(${100 * (props.index / 4)}% - ${50 * (props.index / 4)}ch)`};
@media (max-width: 960px) {
margin: 1em auto;
width: 100%;
Expand Down Expand Up @@ -336,53 +339,64 @@ export default function About() {
</p>
<Timeline>
<Grid container spacing={0}>
<Grid item xs={3}>
<Grid item xs={12/5}>
March to April 2020
</Grid>
<Grid item xs={3}>
<Grid item xs={12/5}>
May to October 2020
</Grid>
<Grid item xs={3}>
<Grid item xs={12/5}>
November to May 2021
</Grid>
<Grid item xs={3}>
June 2021 onward
<Grid item xs={12/5}>
June 2021 to December 2022
</Grid>
<Grid item xs={12/5}>
January 2023 to Closeout
</Grid>
<Grid item xs={12}>
<hr />
</Grid>
<Grid item xs={3}>
<Grid item xs={12/5}>
<TimelineButton
active={phaseIndex === 0}
onClick={() => setPhaseIndex(0)}
>
Alpha
</TimelineButton>
</Grid>
<Grid item xs={3}>
<Grid item xs={12/5}>
<TimelineButton
active={phaseIndex === 1}
onClick={() => setPhaseIndex(1)}
>
Beta
</TimelineButton>
</Grid>
<Grid item xs={3}>
<Grid item xs={12/5}>
<TimelineButton
active={phaseIndex === 2}
onClick={() => setPhaseIndex(2)}
>
v2
</TimelineButton>
</Grid>
<Grid item xs={3}>
<Grid item xs={12/5}>
<TimelineButton
active={phaseIndex === 3}
onClick={() => setPhaseIndex(3)}
>
v3
</TimelineButton>
</Grid>
<Grid item xs={12/5}>
<TimelineButton
active={phaseIndex === 4}
onClick={() => setPhaseIndex(4)}
>
Closeout
</TimelineButton>
</Grid>
</Grid>
</Timeline>
<TimelineDescription index={phaseIndex}>
Expand Down