mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 04:35:49 +00:00
Add Tokenization landing page
Co-authored by: Rome Reginelli <rome@ripple.com>, pdp2121 <71317875+pdp2121@users.noreply.github.com> fix file names + small styling fix top nav link update nav list fix security card and margin add featured projects + fix margins add related articles update link and light mode mobile view add prev next buttons small styling fixes add unique key & zindex Update docs/use-cases/tokenization/index.page.tsx Update docs/use-cases/tokenization/index.page.tsx Update docs/use-cases/tokenization/index.page.tsx Update docs/use-cases/tokenization/index.page.tsx Update styles/_use-cases.scss Update styles/light/_light-theme.scss add sidebar children back + styling changes Fix tokenization frontmatter & security links Add link from Tokenization to NTTs page
This commit is contained in:
35
shared/components/nav-list.tsx
Normal file
35
shared/components/nav-list.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import React from "react";
|
||||
import { useTranslate } from "@portal/hooks";
|
||||
|
||||
interface PageProps {
|
||||
description: string;
|
||||
link: string;
|
||||
}
|
||||
|
||||
interface NavListProps {
|
||||
pages: PageProps[];
|
||||
bottomBorder?: boolean;
|
||||
}
|
||||
|
||||
export const NavList: React.FC<NavListProps> = ({
|
||||
pages,
|
||||
bottomBorder = true,
|
||||
}) => {
|
||||
const { translate } = useTranslate();
|
||||
return (
|
||||
<ul className="nav flex-column">
|
||||
{pages.map((useCase, index) => (
|
||||
<li className="nav-item" key={useCase.link}>
|
||||
<a
|
||||
href={useCase.link}
|
||||
className={`nav-link ${
|
||||
index === pages.length - 1 && !bottomBorder ? "border-none" : ""
|
||||
}`}
|
||||
>
|
||||
{translate(useCase.description)}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user