Skip to content

Commit 63c19d7

Browse files
authored
Merge pull request #5 from Zondax/dev
release: Update features comparison table content
2 parents 1447ab4 + c4cb130 commit 63c19d7

11 files changed

Lines changed: 46 additions & 21 deletions

File tree

e2e/navigation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, Locator, test } from "@playwright/test";
1+
import { expect, type Locator, test } from "@playwright/test";
22
import { HomePage } from "./fixtures/HomePage";
33

44
test.describe("Navigation and Section Interaction", () => {

src/components/layouts/FloatingNav.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use client";
22

3+
import { ExternalLink } from "lucide-react";
4+
import { useCallback, useEffect, useRef, useState } from "react";
35
import { MobileMenu } from "@/components/layouts/MobileMenu";
46
import { ThemeToggle } from "@/components/shared/ThemeToggle";
57
import { Button } from "@/components/ui/button";
@@ -11,8 +13,6 @@ import {
1113
} from "@/constants/navigation";
1214
import { URLS } from "@/constants/urls";
1315
import { cn } from "@/lib/utils";
14-
import { ExternalLink } from "lucide-react";
15-
import { useCallback, useEffect, useRef, useState } from "react";
1616

1717
export function FloatingNav() {
1818
const [activeSection, setActiveSection] = useState("hero");

src/components/layouts/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use client";
22

3+
import Image from "next/image";
34
import { FOOTER_CONTENT, type FooterLink } from "@/constants/footer";
45
import { URLS } from "@/constants/urls";
56
import { useThemeFolder } from "@/hooks/useThemeFolder";
67
import { cn } from "@/lib/utils";
7-
import Image from "next/image";
88
import { Logo } from "../shared/Logo";
99

1010
export function Footer() {

src/components/layouts/MobileMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use client";
22

3+
import { Menu, X } from "lucide-react";
4+
import { useEffect, useRef, useState } from "react";
35
import { Button } from "@/components/ui/button";
46
import { ISOLATED_NAV_LABELS, type MenuItem } from "@/constants/navigation";
57
import { cn } from "@/lib/utils";
6-
import { Menu, X } from "lucide-react";
7-
import { useEffect, useRef, useState } from "react";
88

99
interface MobileMenuProps {
1010
items: readonly MenuItem[];

src/components/sections/ChainSpecsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

3-
import { CHAIN_SPECS_CONTENT } from "@/constants/chain-specs";
43
import { Download } from "lucide-react";
4+
import { CHAIN_SPECS_CONTENT } from "@/constants/chain-specs";
55

66
export function ChainSpecsSection() {
77
return (

src/components/sections/CommunitySection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use client";
22

3+
import { BookOpen, Github, MessageCircle } from "lucide-react";
34
import { PrimaryButton } from "@/components/shared/PrimaryButton";
45
import { SecondaryButton } from "@/components/shared/SecondaryButton";
56
import { COMMUNITY_CONTENT } from "@/constants/content";
6-
import { BookOpen, Github, MessageCircle } from "lucide-react";
77

88
export function CommunitySection() {
99
const iconMap = {

src/components/sections/ComparisonSection.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ export function ComparisonSection() {
9292
</div>
9393
</td>
9494
<td className="py-4 px-4 md:px-6 text-center">
95-
{item.paseo ? (
95+
{typeof item.paseo === "string" ? (
96+
<div className="flex justify-center items-center min-h-[40px]">
97+
<span className="text-sm md:text-base font-medium text-muted-foreground">
98+
{item.paseo}
99+
</span>
100+
</div>
101+
) : item.paseo ? (
96102
<div className="flex justify-center">
97103
<div className="p-2 rounded-full">
98104
<Check className="w-5 h-5 text-green-600 dark:text-green-400" />
@@ -107,7 +113,13 @@ export function ComparisonSection() {
107113
)}
108114
</td>
109115
<td className="py-4 px-4 md:px-6 text-center">
110-
{item.kusama ? (
116+
{typeof item.kusama === "string" ? (
117+
<div className="flex justify-center items-center min-h-[40px]">
118+
<span className="text-sm md:text-base font-medium text-muted-foreground">
119+
{item.kusama}
120+
</span>
121+
</div>
122+
) : item.kusama ? (
111123
<div className="flex justify-center">
112124
<div className="p-2 rounded-full">
113125
<Check className="w-5 h-5 text-green-600 dark:text-green-400" />
@@ -122,7 +134,13 @@ export function ComparisonSection() {
122134
)}
123135
</td>
124136
<td className="py-4 px-4 md:px-6 text-center">
125-
{item.polkadot ? (
137+
{typeof item.polkadot === "string" ? (
138+
<div className="flex justify-center items-center min-h-[40px]">
139+
<span className="text-sm md:text-base font-medium text-muted-foreground">
140+
{item.polkadot}
141+
</span>
142+
</div>
143+
) : item.polkadot ? (
126144
<div className="flex justify-center">
127145
<div className="p-2 rounded-full">
128146
<Check className="w-5 h-5 text-green-600 dark:text-green-400" />

src/components/sections/LogoSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"use client";
22

3+
import Image from "next/image";
4+
import { useEffect, useRef, useState } from "react";
35
import {
46
CONTRIBUTORS,
57
CORE_MAINTAINERS,
68
type Contributor,
79
} from "@/constants/contributors";
810
import { useThemeFolder } from "@/hooks/useThemeFolder";
9-
import Image from "next/image";
10-
import { useEffect, useRef, useState } from "react";
1111

1212
export function LogoSection() {
1313
const themeFolder = useThemeFolder();

src/constants/chain-specs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Database, FileCode, LucideIcon, Server } from "lucide-react";
1+
import { Database, FileCode, type LucideIcon, Server } from "lucide-react";
22
import { URLS } from "./urls";
33

44
interface ChainSpec {

src/constants/content.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ interface ComparisonContent {
8282
readonly items: readonly {
8383
readonly feature: string;
8484
readonly link: string | undefined;
85-
readonly paseo: boolean;
86-
readonly kusama: boolean;
87-
readonly polkadot: boolean;
85+
readonly paseo: boolean | string;
86+
readonly kusama: boolean | string;
87+
readonly polkadot: boolean | string;
8888
}[];
8989
};
9090
readonly costs: {
@@ -133,7 +133,7 @@ export const COMPARISON_CONTENT = {
133133
link: undefined,
134134
paseo: true,
135135
kusama: true,
136-
polkadot: false,
136+
polkadot: true,
137137
},
138138
{
139139
feature: "PolkaVM Contracts",
@@ -146,16 +146,23 @@ export const COMPARISON_CONTENT = {
146146
feature: "Contracts: ERC-20 Precompile",
147147
link: undefined,
148148
paseo: true,
149-
kusama: false,
149+
kusama: true,
150150
polkadot: false,
151151
},
152152
{
153153
feature: "Contracts: XCM Precompile",
154154
link: undefined,
155155
paseo: true,
156-
kusama: false,
156+
kusama: true,
157157
polkadot: false,
158158
},
159+
{
160+
feature: "Coretime Interlude Period",
161+
link: undefined,
162+
paseo: "2 days",
163+
kusama: "7 days",
164+
polkadot: "7 days",
165+
},
159166
],
160167
},
161168
costs: {

0 commit comments

Comments
 (0)