Skip to content

Commit

Permalink
chore(@kadena/react-ui): Update Grid naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmguo authored Nov 21, 2023
2 parents eafd9a3 + 8829d32 commit 3035577
Show file tree
Hide file tree
Showing 27 changed files with 261 additions and 256 deletions.
2 changes: 2 additions & 0 deletions .changeset/violet-oranges-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { INavigation } from '@/Layout';
import { EVENT_NAMES, analyticsEvent } from '@/utils/analytics';
import { Divider, Grid, Stack } from '@kadena/react-ui';
import { Divider, Grid, GridItem, Stack } from '@kadena/react-ui';
import classnames from 'classnames';
import Link from 'next/link';
import type { FC } from 'react';
Expand Down Expand Up @@ -41,11 +41,11 @@ export const BottomPageSection: FC<IProps> = ({

return (
<footer className={classes}>
<Grid.Root columns={{ sm: 1, lg: 3, xl: 4 }}>
<Grid.Item columnSpan={1}>
<Grid columns={{ xs: 1, lg: 3, xl: 4 }}>
<GridItem columnSpan={1}>
<EditPage editLink={editLink} />
</Grid.Item>
<Grid.Item columnSpan={{ sm: 1, lg: 2, xl: 3 }}>
</GridItem>
<GridItem columnSpan={{ xs: 1, lg: 2, xl: 3 }}>
<Stack
width={{ xs: '100%', lg: '100%' }}
direction="row"
Expand Down Expand Up @@ -74,8 +74,8 @@ export const BottomPageSection: FC<IProps> = ({
</Link>
)}
</Stack>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>

<Divider />
<Stack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import type { IMostPopularPage } from '@/MostPopularData';
import MostPopular from '@/components/MostPopular/MostPopular';
import { SearchBar } from '@/components/SearchBar/SearchBar';
import { EVENT_NAMES, analyticsEvent } from '@/utils/analytics';
import { Box, GradientText, Grid, Heading, Stack } from '@kadena/react-ui';
import {
Box,
GradientText,
Grid,
GridItem,
Heading,
Stack,
} from '@kadena/react-ui';
import classNames from 'classnames';
import { useRouter } from 'next/router';
import type { FC, KeyboardEvent } from 'react';
Expand Down Expand Up @@ -47,8 +54,8 @@ export const HomeHeader: FC<IProps> = ({ popularPages }) => {
<header className={loaderHeaderClass}>
<div className={wrapperClass}>
<Box marginX={{ xs: '$1', sm: '$4' }}>
<Grid.Root columns={{ sm: 1, md: 2 }}>
<Grid.Item>
<Grid columns={{ sm: 1, md: 2 }}>
<GridItem>
<Heading as="h1" variant="h2">
Kadena
</Heading>
Expand All @@ -66,8 +73,8 @@ export const HomeHeader: FC<IProps> = ({ popularPages }) => {
</div>
</Box>
</Stack>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
{popularPages.length > 0 && (
<Box
paddingLeft={{ sm: '$1', lg: '$15', xl: '$32', xxl: '$48' }}
Expand All @@ -76,8 +83,8 @@ export const HomeHeader: FC<IProps> = ({ popularPages }) => {
<MostPopular pages={popularPages} title="Most viewed docs" />
</Box>
)}
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
</Box>
</div>
</header>
Expand Down
14 changes: 7 additions & 7 deletions packages/apps/docs/src/pages/blogchain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
getPathName,
} from '@/utils/staticGeneration/checkSubTreeForActive.mjs';
import { getData } from '@/utils/staticGeneration/getData.mjs';
import { Box, Grid, Stack } from '@kadena/react-ui';
import { Box, Grid, GridItem, Stack } from '@kadena/react-ui';
import classNames from 'classnames';
import type { GetStaticProps } from 'next';
import Link from 'next/link';
Expand Down Expand Up @@ -54,11 +54,11 @@ const BlogChainHome: FC<IProps> = ({
</BlogList>
)}

<Grid.Root columns={{ sm: 1, lg: 4 }} gap="$2xl">
<Grid.Item columnSpan={3}>
<Grid columns={{ sm: 1, lg: 4 }} gap="$2xl">
<GridItem columnSpan={3}>
<BlogListWrapper initPosts={allPosts} />
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<Box marginY="$8">
<Stack direction="column" gap="$8">
{popularPages.length > 0 && (
Expand All @@ -76,8 +76,8 @@ const BlogChainHome: FC<IProps> = ({
</Box>
</Stack>
</Box>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
</article>
</div>
</>
Expand Down
25 changes: 13 additions & 12 deletions packages/apps/docs/src/pages/build/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
Button,
Card,
Grid,
GridItem,
Heading,
Stack,
Text,
Expand All @@ -33,8 +34,8 @@ interface IProps {
const Home: FC<IProps> = ({ blogPosts, popularPages }) => {
return (
<>
<Grid.Root gap="$lg" columns={{ sm: 1, lg: 2 }}>
<Grid.Item>
<Grid gap="$lg" columns={{ sm: 1, lg: 2 }}>
<GridItem>
<Card fullWidth>
<Heading as="h4">Getting started tutorial</Heading>
<Box marginY="$4">
Expand All @@ -52,20 +53,20 @@ const Home: FC<IProps> = ({ blogPosts, popularPages }) => {
</Link>
</Button>
</Card>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<Box marginY="$8" marginLeft="$12">
<MostPopular
pages={popularPages}
title="Most viewed docs"
titleAs="h6"
/>
</Box>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
<Box marginBottom="$20">
<Grid.Root gap="$lg" columns={{ sm: 1, lg: 2 }}>
<Grid.Item>
<Grid gap="$lg" columns={{ sm: 1, lg: 2 }}>
<GridItem>
<DocsCard
label="Quickstart"
description="This Developer Quickstart is designed to remove the friction from onboarding so that you can understand how to build with Kadena quickly and easily."
Expand Down Expand Up @@ -105,8 +106,8 @@ const Home: FC<IProps> = ({ blogPosts, popularPages }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Cookbook"
description="Use the right tools and platforms for building many types of decentralized applications."
Expand All @@ -122,8 +123,8 @@ const Home: FC<IProps> = ({ blogPosts, popularPages }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
</Box>

<Stack direction="column" gap="$2xl">
Expand Down
18 changes: 9 additions & 9 deletions packages/apps/docs/src/pages/contribute/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
checkSubTreeForActive,
getPathName,
} from '@/utils/staticGeneration/checkSubTreeForActive.mjs';
import { Box, Grid, Heading } from '@kadena/react-ui';
import { Box, Grid, GridItem, Heading } from '@kadena/react-ui';
import type { GetStaticProps } from 'next';
import Link from 'next/link';
import type { FC } from 'react';
Expand All @@ -22,8 +22,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
return (
<>
<Box marginBottom="$20">
<Grid.Root gap="$lg" columns={{ sm: 1, lg: 2 }}>
<Grid.Item rowSpan={2}>
<Grid gap="$lg" columns={{ sm: 1, lg: 2 }}>
<GridItem rowSpan={2}>
<DocsCard
label="We are looking for Ambassadors"
description="Since the launch of Kadena's public blockchain, we have had
Expand All @@ -40,8 +40,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Run a node"
description=""
Expand Down Expand Up @@ -75,8 +75,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Contribute to the docs"
description="The Kadena documentation is open source and hosted on GitHub.
Expand All @@ -93,8 +93,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
</Box>

<Heading as="h6">Stay up-to-date</Heading>
Expand Down
18 changes: 9 additions & 9 deletions packages/apps/docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
checkSubTreeForActive,
getPathName,
} from '@/utils/staticGeneration/checkSubTreeForActive.mjs';
import { Box, Button, Grid, Heading, Stack } from '@kadena/react-ui';
import { Box, Button, Grid, GridItem, Heading, Stack } from '@kadena/react-ui';
import classNames from 'classnames';
import type { GetStaticProps } from 'next';
import Link from 'next/link';
Expand All @@ -38,8 +38,8 @@ const Home: FC<IProps> = ({ popularPages, blogPosts }) => {
>
<article className={articleClass}>
<Box marginBottom="$20">
<Grid.Root gap="$lg" columns={{ sm: 1, md: 2 }}>
<Grid.Item rowSpan={2}>
<Grid gap="$lg" columns={{ sm: 1, md: 2 }}>
<GridItem rowSpan={2}>
<DocsCard
label="Introduction"
description="Kadena is the only platform offering a complete decentralized infrastructure for builders. Combining a revolutionary chain architecture with the tools needed for widespread adoption, your teams get the full capabilities of blockchain with the ability to go from concept to launch in days vs. months by not having to build from scratch. Learn about our core concepts."
Expand All @@ -58,8 +58,8 @@ const Home: FC<IProps> = ({ popularPages, blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Learn through tutorials"
description="Find training and documentation and discover resources to assist you in learning. Whether you are just starting or an experienced professional, our hands-on approach helps you reach your goals faster, more confidently, and at your own pace."
Expand Down Expand Up @@ -92,8 +92,8 @@ const Home: FC<IProps> = ({ popularPages, blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Setup"
description="Use the right tools and platforms for building many types of decentralized applications."
Expand Down Expand Up @@ -124,8 +124,8 @@ const Home: FC<IProps> = ({ popularPages, blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
</Box>

<Stack direction="column" gap="$3xl">
Expand Down
18 changes: 9 additions & 9 deletions packages/apps/docs/src/pages/kadena/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
checkSubTreeForActive,
getPathName,
} from '@/utils/staticGeneration/checkSubTreeForActive.mjs';
import { Box, Grid, Heading, Stack } from '@kadena/react-ui';
import { Box, Grid, GridItem, Heading, Stack } from '@kadena/react-ui';
import type { GetStaticProps } from 'next';
import Link from 'next/link';
import type { FC } from 'react';
Expand All @@ -22,8 +22,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
return (
<Stack direction="column" gap="$2xl">
<Box marginBottom="$20">
<Grid.Root gap="$lg" columns={{ sm: 1, lg: 2 }}>
<Grid.Item rowSpan={2}>
<Grid gap="$lg" columns={{ sm: 1, lg: 2 }}>
<GridItem rowSpan={2}>
<DocsCard
label="General"
description="Kadena was founded on the idea that blockchain could revolutionize how the world interacts and transacts. But to get to mass adoption, chain technology and the ecosystem connecting it to the business world needed to be reimagined from the ground up. Our founders built a proprietary chain architecture and created the tools to make blockchain work for business – at speed, scale, and energy efficiency previously thought unachievable."
Expand All @@ -42,8 +42,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
</a>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Resources"
description="Miscellaneous resources to make your Kadena journey easier."
Expand All @@ -65,8 +65,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
<Grid.Item>
</GridItem>
<GridItem>
<DocsCard
label="Whitepapers"
description="Read up on the different aspects of Kadena in our whitepapers."
Expand All @@ -88,8 +88,8 @@ const Home: FC<IProps> = ({ blogPosts }) => {
</Link>
</BrowseSection>
</DocsCard>
</Grid.Item>
</Grid.Root>
</GridItem>
</Grid>
</Box>

<Box>
Expand Down
Loading

4 comments on commit 3035577

@vercel
Copy link

@vercel vercel bot commented on 3035577 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tools – ./packages/apps/tools

tools-git-main-kadena-js.vercel.app
kadena-js-transfer.vercel.app
tools.kadena.io
tools-kadena-js.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3035577 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-storybook – ./packages/apps/docs

docs-storybook-git-main-kadena-js.vercel.app
docs-storybook-kadena-js.vercel.app
kadena-js-docs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3035577 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-ui – ./packages/libs/react-ui

react-ui-delta.vercel.app
react-ui-git-main-kadena-js.vercel.app
react-ui-kadena-js.vercel.app
react-ui.kadena.io

@vercel
Copy link

@vercel vercel bot commented on 3035577 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

alpha-docs – ./packages/apps/docs

docs-silk-two.vercel.app
alpha-docs-kadena-js.vercel.app
alpha-docs-git-main-kadena-js.vercel.app
alpha-docs.kadena.io
docs.kadena.io

Please sign in to comment.