Skip to content

Commit

Permalink
Get Started section (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Figueira <[email protected]>
Co-authored-by: Hernan Clich <[email protected]>
  • Loading branch information
3 people authored Feb 11, 2025
1 parent a81e30e commit ad935b2
Show file tree
Hide file tree
Showing 31 changed files with 704 additions and 17,471 deletions.
29 changes: 29 additions & 0 deletions public/img/pages/start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
959 changes: 477 additions & 482 deletions public/sitemap-0.xml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/components/Home/components/HomeHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export const HomeHero: React.FC = () => {
<div className="description flex flex-col gap-8 sm:gap-10">
<div className="grid grid-cols-10 gap-5 md:gap-8 text-base leading-[160%] font-normal text-grey-400 dark:text-grey-300">
<p className="col-span-10 md:col-span-5">
ZetaChain is the only decentralized blockchain and smart contract platform built for omnichain
interoperability.
ZetaChain is the first Universal Blockchain with native access to Bitcoin, Ethereum, Solana, and more,
offering seamless UX and unified liquidity to the next billions of users.
</p>

<p className="col-span-10 md:col-span-5">
A truly fluid, multi-chain crypto ecosystem, where users and developers can use and appreciate the
benefits of any blockchain.
With its Universal EVM, ZetaChain empowers developers to build Universal Apps that operate natively across
any blockchain, creating a fluid crypto ecosystem from a single platform.
</p>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import clsx from "clsx";
import { SVGProps } from "react";

const IconCoffeeCup = <T extends unknown>({
color,
size = 24,
...otherProps
}: SVGProps<T, SVGSVGElement> & { color?: string; size?: number }) => (
<svg
width={size}
height={size}
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...otherProps}
className={clsx(otherProps?.className, { "text-grey-400 dark:text-grey-300": !otherProps?.className })}
>
<path
d="M7.81886 2.73107C7.96744 3.06898 8.01501 3.29238 8.01208 3.49289C8.00898 3.70519 7.94891 3.94176 7.79946 4.3137C7.6965 4.56993 7.82075 4.86111 8.07698 4.96407C8.33321 5.06703 8.62439 4.94278 8.72735 4.68655C8.89156 4.27789 9.00616 3.90486 9.01197 3.50751C9.01788 3.10362 8.91123 2.72377 8.71981 2.29593L8.7067 2.26664L8.68996 2.23926C8.42457 1.80531 8.47479 1.25474 8.72019 0.70346C8.83249 0.451184 8.71902 0.155637 8.46674 0.0433374C8.21446 -0.0689619 7.91892 0.0445122 7.80662 0.296789C7.50227 0.980489 7.32935 1.90212 7.81886 2.73107ZM2 6.75012H2.75V10.2501H2C1.58579 10.2501 1.25 9.91434 1.25 9.50012V7.50012C1.25 7.08591 1.58579 6.75012 2 6.75012ZM0 7.50012C0 6.39556 0.895431 5.50012 2 5.50012H2.75H3H4H4.25H14C15.1046 5.50012 16 6.39556 16 7.50012V14.5001C16 15.6047 15.1046 16.5001 14 16.5001H5C3.89543 16.5001 3 15.6047 3 14.5001V11.5001H2.75H2C0.895431 11.5001 0 10.6047 0 9.50012V7.50012ZM4.25 6.75012H14C14.4142 6.75012 14.75 7.08591 14.75 7.50012V14.5001C14.75 14.9143 14.4142 15.2501 14 15.2501H5C4.58579 15.2501 4.25 14.9143 4.25 14.5001V6.75012ZM10.0121 3.49289C10.015 3.29238 9.96744 3.06898 9.81886 2.73107C9.32935 1.90212 9.50227 0.980489 9.80662 0.296789C9.91892 0.0445122 10.2145 -0.0689619 10.4667 0.0433374C10.719 0.155637 10.8325 0.451184 10.7202 0.70346C10.4748 1.25474 10.4246 1.80531 10.69 2.23926L10.7067 2.26664L10.7198 2.29593C10.9112 2.72377 11.0179 3.10362 11.012 3.50751C11.0062 3.90486 10.8916 4.27789 10.7273 4.68655C10.6244 4.94278 10.3332 5.06703 10.077 4.96407C9.82075 4.86111 9.6965 4.56993 9.79946 4.3137C9.94891 3.94176 10.009 3.70519 10.0121 3.49289Z"
fill-rule="evenodd"
fill={color || "currentColor"}
/>
</svg>
);

export { IconCoffeeCup };
1 change: 1 addition & 0 deletions src/components/shared/components/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * from "./components/IconChat";
export * from "./components/IconCheck";
export * from "./components/IconClaim";
export * from "./components/IconCode";
export * from "./components/IconCoffeeCup";
export * from "./components/IconCommunity";
export * from "./components/IconCopy";
export * from "./components/IconDiscord";
Expand Down
22 changes: 15 additions & 7 deletions src/components/shared/components/Layout/Layout.constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
IconAbout,
IconClaim,
IconCode,
IconCoffeeCup,
IconCommunity,
IconServer,
IconSupport,
Expand Down Expand Up @@ -73,13 +74,27 @@ export const navMainItems: NavItem[][] = [
url: "/",
},
],
[
{
label: "Get Started",
icon: IconCoffeeCup,
url: "/start",
},
],
[
{
label: "Build",
icon: IconCode,
url: "/developers",
},
],
[
{
label: "Tools",
icon: IconTools,
url: "/reference",
},
],
[
{
label: "Run a Node",
Expand All @@ -94,13 +109,6 @@ export const navMainItems: NavItem[][] = [
url: "/users",
},
],
[
{
label: "Tools",
icon: IconTools,
url: "/reference",
},
],
[
{
label: "About",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ const StyledAccordion = styled(Accordion)`
}
`;

type NavigationAccordionLinkProps = PropsWithChildren<{ page: Page; onClick?: () => void }>;
type NavigationAccordionLinkProps = PropsWithChildren<{
page: Page;
onClick?: () => void;
isTopLevelPage?: boolean;
}>;

const NavigationAccordion: React.FC<NavigationAccordionLinkProps> = ({ page, children }) => {
const router = useRouter();
Expand Down Expand Up @@ -64,7 +68,7 @@ const NavigationAccordion: React.FC<NavigationAccordionLinkProps> = ({ page, chi
);
};

export const NavigationAccordionLink: React.FC<NavigationAccordionLinkProps> = ({ page, onClick }) => {
export const NavigationAccordionLink: React.FC<NavigationAccordionLinkProps> = ({ page, onClick, isTopLevelPage }) => {
const router = useRouter();
const isRouteSelected = router.pathname === page.route;

Expand All @@ -78,12 +82,14 @@ export const NavigationAccordionLink: React.FC<NavigationAccordionLinkProps> = (
})}
onClick={onClick}
>
<div
className={clsx("w-1 h-1 ml-1 mr-2 mt-2 sm:mt-[5px] shrink-0 transition-all", {
"bg-green-100 ": isRouteSelected,
"bg-grey-200 dark:bg-grey-600 group-hover:bg-green-100": !isRouteSelected,
})}
/>
{!isTopLevelPage && (
<div
className={clsx("w-1 h-1 ml-1 mr-2 mt-2 sm:mt-[5px] shrink-0 transition-all", {
"bg-green-100 ": isRouteSelected,
"bg-grey-200 dark:bg-grey-600 group-hover:bg-green-100": !isRouteSelected,
})}
/>
)}

<div className="text-base leading-[130%] sm:text-xs sm:leading-[110%] whitespace-pre-wrap text-ellipsis overflow-hidden">
{getPageTitle(page)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ export const NavigationLayout: React.FC<NavigationLayoutProps> = ({ isMainPage,
.filter((page) => page.route !== item.url)
.map((page) => (
<div key={page.route} className="px-3 pl-12 sm:pr-6 pb-3 sm:pb-2">
<NavigationAccordionLink key={page.route} page={page} onClick={closeMobileDrawer} />
<NavigationAccordionLink
key={page.route}
page={page}
onClick={closeMobileDrawer}
isTopLevelPage
/>
</div>
))}
</List>
Expand Down
14 changes: 9 additions & 5 deletions src/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
"title": "ZetaChain Documentation",
"description": "ZetaChain is the only decentralized blockchain and smart contract platform built for omnichain interoperability."
},
"start": {
"title": "Get Started",
"description": "Start building on ZetaChain."
},
"developers": {
"title": "Build",
"description": "Learn how to build on ZetaChain."
},
"reference": {
"title": "Tools",
"description": "Useful articles to help get you up and running."
},
"nodes": {
"title": "Run a Node",
"description": "Setup and run a ZetaChain node.",
Expand All @@ -17,12 +25,8 @@
"title": "Using our Products",
"description": "Start using our many products."
},
"reference": {
"title": "Tools",
"description": "Useful articles to help get you up and running."
},
"about": {
"title": "About",
"description": "All about ZetaChain, the foundational, public blockchain that enables omnichain, generic smart contracts and messaging between any blockchain."
}
}
}
61 changes: 0 additions & 61 deletions src/pages/architecture/modules/authority/messages.md

This file was deleted.

Loading

0 comments on commit ad935b2

Please sign in to comment.