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

Get Started section #526

Merged
merged 22 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from 7 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
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
Expand Up @@ -73,6 +73,13 @@ export const navMainItems: NavItem[][] = [
url: "/",
},
],
[
{
label: "Get Started",
icon: IconAbout,
url: "/start",
},
],
[
{
label: "Build",
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
6 changes: 5 additions & 1 deletion src/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"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."
Expand All @@ -25,4 +29,4 @@
"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
Loading