Skip to content

Commit c1f9641

Browse files
authored
Merge pull request #767 from iron-fish/roll-back-bridge-launch
Roll back bridge launch
2 parents 1f53833 + f1e3401 commit c1f9641

File tree

4 files changed

+69
-19
lines changed

4 files changed

+69
-19
lines changed

components/BridgeDropdown/BridgeDropdown.tsx

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,21 @@ export function BridgeDropdown() {
2828
return (
2929
<Box position="relative">
3030
<ButtonContents hidden />
31-
<ButtonContents position="absolute" top={0} left={0} zIndex={1} />
31+
<ButtonContents
32+
disabled
33+
position="absolute"
34+
top={0}
35+
left={0}
36+
zIndex={1}
37+
/>
3238
</Box>
3339
);
3440
}
3541

3642
function ButtonContents({
3743
hidden,
3844
children,
45+
disabled,
3946
...rest
4047
}: BoxProps & {
4148
hidden?: boolean;
@@ -54,11 +61,36 @@ function ButtonContents({
5461
borderRadius={28}
5562
onClick={toggleIsOpen}
5663
w="100%"
64+
disabled={disabled}
65+
_disabled={{
66+
cursor: "not-allowed",
67+
bg: "#F3F3F4",
68+
}}
5769
{...rest}
5870
>
59-
<Flex px={10} h={14} alignItems="center" gap={2} justifyContent="center">
60-
<Text fontSize="xl">Bridge</Text>
61-
{isOpen ? <IoChevronUp size={20} /> : <IoChevronDown size={20} />}
71+
<Flex
72+
flexDir="column"
73+
px={10}
74+
h={14}
75+
alignItems="center"
76+
gap={disabled ? 0 : 2}
77+
justifyContent="center"
78+
>
79+
{disabled ? (
80+
<>
81+
<Text lineHeight="1.2" fontSize="sm" color="#686868">
82+
{formatMessage(messages.bridge)}
83+
</Text>
84+
<Text whiteSpace="nowrap" fontSize="xs" color="#686868">
85+
{formatMessage(messages.comingSoon)}
86+
</Text>
87+
</>
88+
) : (
89+
<>
90+
<Text fontSize="xl">Bridge</Text>
91+
{isOpen ? <IoChevronUp size={20} /> : <IoChevronDown size={20} />}
92+
</>
93+
)}
6294
</Flex>
6395
{!hidden && isOpen && (
6496
<>

components/HomePage/Hero/Hero.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ export function Hero() {
117117
>
118118
<Box width="100%">
119119
<AspectRatio position="relative" ratio={657 / 424}>
120-
<VideoPopup videoUrl="https://x3mk3ilmgdzxy3rj.public.blob.vercel-storage.com/hero-video-vGWSDl6a97OlvBkJuv3tXnzqGJOwDD.mp4">
121-
<Image
122-
priority
123-
src="/images/home/hero-video.png"
124-
alt=""
125-
style={{ objectFit: "contain" }}
126-
fill
127-
/>
128-
</VideoPopup>
120+
{/* <VideoPopup videoUrl="https://x3mk3ilmgdzxy3rj.public.blob.vercel-storage.com/hero-video-vGWSDl6a97OlvBkJuv3tXnzqGJOwDD.mp4"> */}
121+
<Image
122+
priority
123+
src="/images/home/hero-video.png"
124+
alt=""
125+
style={{ objectFit: "contain" }}
126+
fill
127+
/>
128+
{/* </VideoPopup> */}
129129
</AspectRatio>
130130
</Box>
131131
</GridItem>

components/HomePage/Safety/Safety.tsx

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export function Safety() {
178178
>
179179
<GridItem display="flex" alignItems="stretch">
180180
<ItemCard
181+
comingSoon
181182
name={formatMessage(messages.chainPortBridge)}
182183
description={formatMessage(messages.chainPortBridgeDescription)}
183184
href="https://app.chainport.io/?from=ETHEREUM&token=USDC&to=IRONFISH&token=USDC"
@@ -198,6 +199,7 @@ export function Safety() {
198199

199200
<GridItem display="flex" alignItems="stretch">
200201
<ItemCard
202+
comingSoon
201203
name="Bridge.IronFish"
202204
description={formatMessage(messages.ironFishBridgeDescription)}
203205
href="https://bridge.ironfish.network/"
@@ -261,6 +263,7 @@ type ItemCardProps = {
261263
linkText: string;
262264
imageSrc: StaticImageData;
263265
imageContainerProps?: ComponentProps<typeof HStack>;
266+
comingSoon?: boolean;
264267
} & Omit<ShadowBoxProps, "children">;
265268

266269
function ItemCard({
@@ -270,14 +273,21 @@ function ItemCard({
270273
linkText,
271274
imageSrc,
272275
imageContainerProps,
276+
comingSoon,
273277
...rest
274278
}: ItemCardProps) {
279+
const linkProps = comingSoon
280+
? null
281+
: {
282+
as: Link,
283+
href,
284+
target: href.startsWith("http") ? "_blank" : undefined,
285+
rel: href.startsWith("http") ? "noreferrer" : undefined,
286+
};
287+
275288
return (
276289
<ShadowBox
277-
as={Link}
278-
href={href}
279-
target={href.startsWith("http") ? "_blank" : undefined}
280-
rel={href.startsWith("http") ? "noreferrer" : undefined}
290+
{...linkProps}
281291
bg="#242424"
282292
borderColor="#3B3B3B"
283293
shadowColor="#242424"
@@ -311,7 +321,15 @@ function ItemCard({
311321
<Text color="white" textStyle="md" mb={8}>
312322
{description}
313323
</Text>
314-
<FancyLink color="pink.400">{linkText}</FancyLink>
324+
{comingSoon ? (
325+
<Box mb={8} bg="#2F3A1F" borderRadius="4px">
326+
<Text px={6} py={2} color="#C7F182">
327+
Coming Soon
328+
</Text>
329+
</Box>
330+
) : (
331+
<FancyLink color="pink.400">{linkText}</FancyLink>
332+
)}
315333

316334
<HStack flexGrow={1} alignItems="flex-end" {...imageContainerProps}>
317335
<Image src={imageSrc} alt={name} />

search/indexes/documentation-index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)