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

migration-RollupProductDevDoc.tsx-to-tailwind #14268

Merged
Merged
Changes from 3 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
33 changes: 13 additions & 20 deletions src/components/RollupProductDevDoc.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Box, Flex, Heading, ListItem, UnorderedList } from "@chakra-ui/react"
import { ListItem, UnorderedList } from "@/components/ui/list"

import { layer2Data, Rollups, RollupType } from "@/data/layer-2/layer-2"

import InlineLink from "./Link"
import Text from "./OldText"
import Translation from "./Translation"

const rollups = layer2Data as Rollups
Expand All @@ -14,26 +13,20 @@ export type RollupProductDevDocProps = {

const RollupProductDevDoc = ({ rollupType }: RollupProductDevDocProps) => {
return (
<Box>
<div>
{rollups[rollupType].map(
({ name, noteKey, website, developerDocs, l2beat }, idx) => {
return (
<Flex key={idx} my={4} background="rollupDevDocList">
<Box p={4} pb={0}>
<Box>
<Heading
as="h4"
fontSize={{ base: "md", md: "xl" }}
fontWeight="500"
lineHeight="1.4"
my={4}
>
<div key={idx} className="my-4 bg-background-highlight">
<div className="p-4 pb-0">
<div>
<h4 className="my-4 text-md font-medium leading-relaxed md:text-xl">
{name}
</Heading>
</h4>
{noteKey.length > 0 && (
<Text>
<p>
* <Translation id={`page-layer-2:${noteKey}`} />
pettinarip marked this conversation as resolved.
Show resolved Hide resolved
</Text>
</p>
)}
<UnorderedList>
<ListItem>
Expand All @@ -52,13 +45,13 @@ const RollupProductDevDoc = ({ rollupType }: RollupProductDevDocProps) => {
</InlineLink>
</ListItem>
</UnorderedList>
</Box>
</Box>
</Flex>
</div>
</div>
</div>
)
}
)}
</Box>
</div>
)
}

Expand Down
Loading