Skip to content

Commit be58b45

Browse files
authored
Merge pull request #750 from iron-fish/website-bridge-launch
Makes video and all links live for launch
2 parents 50cf319 + 3ec28bf commit be58b45

File tree

3 files changed

+29
-76
lines changed

3 files changed

+29
-76
lines changed

components/BridgeDropdown/BridgeDropdown.tsx

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

4236
function ButtonContents({
4337
hidden,
4438
children,
45-
disabled,
4639
...rest
4740
}: BoxProps & {
4841
hidden?: boolean;
@@ -61,36 +54,11 @@ function ButtonContents({
6154
borderRadius={28}
6255
onClick={toggleIsOpen}
6356
w="100%"
64-
disabled={disabled}
65-
_disabled={{
66-
cursor: "not-allowed",
67-
bg: "#F3F3F4",
68-
}}
6957
{...rest}
7058
>
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-
)}
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} />}
9462
</Flex>
9563
{!hidden && isOpen && (
9664
<>
@@ -115,7 +83,7 @@ function BridgeLink({ direction }: { direction: "out" | "in" }) {
11583
href={
11684
direction === "out"
11785
? "https://bridge.ironfish.network/"
118-
: "https://app.chainport.io/?from=ETHEREUM&to=IRONFISH"
86+
: "https://app.chainport.io/?from=ETHEREUM&token=USDC&to=IRONFISH&token=USDC"
11987
}
12088
target="_blank"
12189
rel="noreferrer"

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-
<Image
121-
priority
122-
src="/images/home/hero-video.png"
123-
alt=""
124-
style={{ objectFit: "contain" }}
125-
fill
126-
/>
127-
{/* <VideoPopup videoUrl="https://x3mk3ilmgdzxy3rj.public.blob.vercel-storage.com/hero-video-vGWSDl6a97OlvBkJuv3tXnzqGJOwDD.mp4">
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: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function Safety() {
137137
name={formatMessage(messages.nodeApp)}
138138
description={formatMessage(messages.nodeAppDescription)}
139139
href="/use/node-app"
140-
ctaText={formatMessage(messages.nodeAppLink)}
140+
linkText={formatMessage(messages.nodeAppLink)}
141141
imageSrc={nodeAppImage}
142142
/>
143143
</GridItem>
@@ -147,7 +147,7 @@ export function Safety() {
147147
name={formatMessage(messages.oreoWallet)}
148148
description={formatMessage(messages.oreoWalletDescription)}
149149
href="https://oreowallet.com/"
150-
ctaText={formatMessage(messages.oreoWalletLink)}
150+
linkText={formatMessage(messages.oreoWalletLink)}
151151
imageSrc={oreoWalletImage}
152152
/>
153153
</GridItem>
@@ -180,8 +180,8 @@ export function Safety() {
180180
<ItemCard
181181
name={formatMessage(messages.chainPortBridge)}
182182
description={formatMessage(messages.chainPortBridgeDescription)}
183-
// href="https://app.chainport.io/?from=ETHEREUM&to=IRONFISH"
184-
ctaText="COMING SOON"
183+
href="https://app.chainport.io/?from=ETHEREUM&to=IRONFISH"
184+
linkText={formatMessage(messages.chainPortBridgeLink)}
185185
imageSrc={chainportImage}
186186
imageContainerProps={{
187187
paddingTop: {
@@ -200,8 +200,8 @@ export function Safety() {
200200
<ItemCard
201201
name="Bridge.IronFish"
202202
description={formatMessage(messages.ironFishBridgeDescription)}
203-
// href="https://bridge.ironfish.network/"
204-
ctaText="COMING SOON"
203+
href="https://bridge.ironfish.network/"
204+
linkText={formatMessage(messages.ironFishBridgeLink)}
205205
imageSrc={bridgeIronFishImage}
206206
imageContainerProps={{
207207
padding: {
@@ -257,8 +257,8 @@ function FancyLink({
257257
type ItemCardProps = {
258258
name: string;
259259
description: string;
260-
href?: string;
261-
ctaText: string;
260+
href: string;
261+
linkText: string;
262262
imageSrc: StaticImageData;
263263
imageContainerProps?: ComponentProps<typeof HStack>;
264264
} & Omit<ShadowBoxProps, "children">;
@@ -267,24 +267,17 @@ function ItemCard({
267267
name,
268268
description,
269269
href,
270-
ctaText,
270+
linkText,
271271
imageSrc,
272272
imageContainerProps,
273273
...rest
274274
}: ItemCardProps) {
275-
const isLink = !!href;
276-
const linkProps = isLink
277-
? {
278-
as: Link,
279-
href,
280-
target: href.startsWith("http") ? "_blank" : undefined,
281-
rel: href.startsWith("http") ? "noreferrer" : undefined,
282-
}
283-
: null;
284-
285275
return (
286276
<ShadowBox
287-
{...linkProps}
277+
as={Link}
278+
href={href}
279+
target={href.startsWith("http") ? "_blank" : undefined}
280+
rel={href.startsWith("http") ? "noreferrer" : undefined}
288281
bg="#242424"
289282
borderColor="#3B3B3B"
290283
shadowColor="#242424"
@@ -312,21 +305,13 @@ function ItemCard({
312305
}}
313306
{...rest}
314307
>
315-
<Text mb={8} as="h3" textStyle="h4" color="white">
308+
<Text as="h3" textStyle="h4" color="white" mb={8}>
316309
{name}
317310
</Text>
318311
<Text color="white" textStyle="md" mb={8}>
319312
{description}
320313
</Text>
321-
{isLink ? (
322-
<FancyLink color="pink.400">{ctaText}</FancyLink>
323-
) : (
324-
<Box mb={8} bg="#2F3A1F" borderRadius="4px">
325-
<Text px={6} py={2} color="#C7F182">
326-
{ctaText}
327-
</Text>
328-
</Box>
329-
)}
314+
<FancyLink color="pink.400">{linkText}</FancyLink>
330315

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

0 commit comments

Comments
 (0)