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

Migrate roadmap/roadmapimagecontent to shadcn/tailwind #14089

Merged
merged 1 commit into from
Oct 28, 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
19 changes: 9 additions & 10 deletions src/components/Roadmap/RoadmapImageContent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Center, Flex, Heading, Stack } from "@chakra-ui/react"

import { Image } from "@/components/Image"
import { TwImage } from "@/components/Image"
import { Center, Flex, Stack } from "@/components/ui/flex"

import wallet from "@/public/images/wallet.png"

Expand All @@ -10,16 +9,16 @@ export type RoadmapImageContentProps = {
}

const RoadmapImageContent = ({ children, title }: RoadmapImageContentProps) => (
<Stack mb={1} mt={16}>
<Heading as="h3">{title}</Heading>
<Flex flexDir={{ base: "column", lg: "row" }}>
<Stack mb={4}>{children}</Stack>
<Center minW="fit-content">
<Image
<Stack className="mb-1 mt-16">
<h3>{title}</h3>
<Flex className="flex-col lg:flex-row">
<Stack className="mb-4">{children}</Stack>
<Center className="min-w-fit">
<TwImage
className="object-contain"
src={wallet}
alt="Ethereum Wallet"
width={350}
style={{ objectFit: "contain" }}
/>
</Center>
</Flex>
Expand Down
Loading