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

Update components related to roadmap #156

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
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
142 changes: 52 additions & 90 deletions packages/docusaurus-playground/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,102 +180,64 @@ import * as challengesData from '/generated/challenges.json'
</Box>

<Box top={{ xs: 144, lg: 216 }}>
<SectionHeader
title="Development Roadmap"
description="Codex is currently in its first proof-of-concept iteration and aims to release its beta version, Katana, before the end of Q4 2023."
<Roadmap
title="Roadmap"
description="Nomos is currently in its first proof-of-concept iteration and aims to release its beta version, Katana, before the end of Q4 2023."
bottom={{ xs: '4rem', lg: '7.25rem' }}
timeline={[
{
period: [2013],
description: "Ethereum's Whisper unveiled as web3 messaging protocol",
},
{
period: [2018],
description: 'Status establishes Vac to R&D Whisper improvements',
},
{
period: [2020],
description: 'Waku v1 replaces Whisper in Status app',
},
{
period: [2021, 'Q1'],
description: 'Waku v2 specs and PoC released with RLN Relay',
},
{
period: [2021, 'Q2'],
description: 'JS-Waku (for browsers) and Go-Waku released',
},
{
period: [2022, 'Q3'],
description: 'DNS Discovery added, plus availability in more languages',
},
{
period: [2022, 'Q4'],
description:
'SQLite for Waku Store, RLN Relay testnet debuts at DevCon',
},
{
period: [2023, 'Q2'],
description: 'Relay sharding, opt-in spam-protected topic',
},
{
period: [2023, 'Q4'],
description: 'Auto-sharding, DoS protection, bandwidth capping',
},
{
period: [2024, 'Q1'],
description: 'Auto-sharding, DoS protection, bandwidth capping',
},
{
period: [2025, '+'],
description: 'Operator Incentivization, use-case specific SDKs',
},
]}
/>
<Grid
xs={{ cols: 6, wrap: false, gap: '0 1rem' }}
actions={
<CallToActionButton
style={{ marginTop: 0 }}
size="small"
variant="outlined"
href="/about"
>
Read more
</CallToActionButton>
}
>
<Grid.Item>
<TimelineItem
period="2021"
borderStyle="dashed"
description="Codex project begins"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2022"
borderStyle="solid"
description=" PoC-1 “Dagger” demos"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2022"
borderStyle="dashed"
description="Marketplace redesign, zk-proofs research"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2023"
borderStyle="solid"
description="PoC-2 “Scimitar” demos"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2023 Q3"
borderStyle="solid"
description="PoC-3 demo scheduled"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2023 Q4"
borderStyle="dashed"
description="V1 “Katana” release scheduled"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2024"
borderStyle="solid"
description="L2 aggregator node development"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2024"
borderStyle="dashed"
description="Payment channels/bandwidth incentives"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2025"
borderStyle="solid"
description="V2 with improved incentives and repair"
/>
</Grid.Item>
<Grid.Item>
<TimelineItem
period="2025"
description="Public mainnet release"
borderStyle="none"
/>
</Grid.Item>
</Grid>
</Box>

<Box top={{ xs: 144, lg: 216 }}>
<CallToActionSection
title="User Endorsements"
/>
<CallToActionSection title="User Endorsements" />
</Box>

<Box top={{ xs: 64, lg: 100 }}>
<Showcase
id="showcase"
Expand Down
jeangovil marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ import { GridItem } from './GridItem'

export type GridProps = React.ComponentProps<typeof GridRoot> & {
actions?: React.ReactNode
leftLabel?: string
rightLabel?: string
spacingButtons?: boolean
}

export const Grid: { Item: typeof GridItem } & React.FC<GridProps> = ({
actions,
leftLabel = '',
rightLabel = '',
spacingButtons = false,
children,
...props
}) => {
Expand All @@ -40,12 +46,41 @@ export const Grid: { Item: typeof GridItem } & React.FC<GridProps> = ({
<GridRoot {...props} className={clsx(props.className, 'mdx-grid')}>
<div className="mdx-grid__actions">
{actions}
<div className="mdx-grid__scroll">
<div
className={clsx(
'mdx-grid__scroll',
spacingButtons && 'mdx-grid__scroll--spacing-buttons',
)}
>
<IconButtonGroup size="small" color="primary">
<IconButton size="small" onClick={scroll.bind(null, -1)}>
<IconButton
className={clsx(
'mdx-grid__scroll-button',
leftLabel?.length && 'mdx-grid__scroll-button--with-label',
)}
size="small"
onClick={scroll.bind(null, -1)}
>
<ChevronLeftIcon />
{leftLabel.length ? (
<span className="mdx-grid__scroll-button-label">
{leftLabel}
</span>
) : null}
</IconButton>
<IconButton size="small" onClick={scroll.bind(null, 1)}>
<IconButton
className={clsx(
'mdx-grid__scroll-button',
rightLabel?.length && 'mdx-grid__scroll-button--with-label',
)}
size="small"
onClick={scroll.bind(null, +1)}
>
{rightLabel.length ? (
<span className="mdx-grid__scroll-button-label">
{rightLabel}
</span>
) : null}
<ChevronRightIcon />
</IconButton>
</IconButtonGroup>
Expand All @@ -64,6 +99,7 @@ type GridBreakpointProps = {
cols?: number
wrap?: boolean
gap?: string | number
scrollButtons?: boolean
}

const GridRoot = styled.div<{
Expand All @@ -79,6 +115,24 @@ const GridRoot = styled.div<{
display: flex;
flex-direction: row;
gap: 0 1rem;
margin-left: auto;
}

.mdx-grid__scroll--spacing-buttons {
width: 100%;

> div {
justify-content: space-between;
width: 100%;
}

> div > button:not(:last-child) {
border-right: 1px solid rgb(var(--lsd-border-primary)) !important;
}
}

.mdx-grid__scroll-button {
display: flex;
}

.mdx-grid__content {
Expand All @@ -95,7 +149,7 @@ const GridRoot = styled.div<{
gap: 1rem;

& > * {
margin-bottom: 2rem;
margin-bottom: 3rem;
}
}

Expand Down Expand Up @@ -148,17 +202,56 @@ const GridRoot = styled.div<{
scroll-snap-type: x mandatory;
}
`}

${bp.scrollButtons === false &&
css`
.mdx-grid__scroll {
display: none;
}
`}
`)
})}

${(props) =>
lsdUtils.responsive(
props.theme as any,
'md',
'up',
)(css`
.mdx-grid__scroll-button--with-label {
width: auto;
min-width: 83px;
padding: 5px 11px 5px 9px;
gap: 12px;

&:first-of-type {
justify-content: flex-start;
}

&:last-of-type {
justify-content: flex-start;
}
}
`)}

${(props) =>
lsdUtils.responsive(
props.theme as any,
'sm',
'down',
)(css`
.mdx-grid__scroll {
display: none !important;
& > div {
justify-content: flex-end;

> button:not(:last-child) {
border-right: none !important;
}
}
}

.mdx-grid__scroll-button-label {
display: none;
}
`)}
`
Loading
Loading