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

Site config #89

Merged
merged 4 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
17 changes: 17 additions & 0 deletions documentation/components/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";

const Footer = () => {
return (
<footer className="bg-blurple pb-[env(safe-area-inset-bottom)] print:bg-transparent">
<hr className="dark:border-blurpleDark"></hr>
<div className="mx-auto flex max-w-[90rem] justify-center py-12 text-white md:justify-start pl-[max(env(safe-area-inset-left),1.5rem)] pr-[max(env(safe-area-inset-right),1.5rem)]">
Copyright {new Date().getFullYear()} ©{" "}
<a href="https://mystenlabs.com" target="_blank">
, Mysten Labs, Inc.
</a>
</div>
</footer>
);
};

export default Footer;
39 changes: 39 additions & 0 deletions documentation/components/nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { useConfig } from 'nextra-theme-docs';
import Link from 'next/link';

const NavBar = () => {
const search = useConfig().search.component({className: 'bg-slate-100'});
const logo = useConfig().logo;
const themeSwitch = useConfig().themeSwitch.component({lite: false, className: 'bg-white'});

return (
<div className="suins-nav-container sticky top-0 text-white w-full bg-blurple z-10">
<nav className="max-w-[110rem] grid grid-cols-12 h-16 gap-4 items-center">
<div className="col-span-3 ml-2">
<Link href="/">
<img className="w-4 mx-4 inline" src="/logo.svg"></img>
<h1 className="text-white bold hidden lg:inline">{logo}</h1>
</Link>
</div>
<div className="col-span-9 flex justify-end mr-8 items-center">
<ul>
<li>
<a href="https://suins.io/account/my-names" target="_blank">
<span className="external-link text-xs ">
<span className='hidden sm:inline'>SuiNS </span>
Dashboard
</span>
</a>
</li>
</ul>
<div className="mx-4">
{search}
</div>
{themeSwitch}
</div>
</nav>
</div>
)
}

export default NavBar;
9 changes: 6 additions & 3 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
"dev": "next",
"build": "next build",
"start": "next start"
},
},
"dependencies": {
"autoprefixer": "^10.4.19",
"next": "^14.1.0",
"nextra": "^2.13.3",
"nextra-theme-docs": "^2.13.3",
"postcss": "^8.4.38",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"nextra": "^2.13.3",
"nextra-theme-docs": "^2.13.3"
"tailwindcss": "^3.4.3"
}
}
7 changes: 7 additions & 0 deletions documentation/pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import '../public/suins.css';

const SuiNSApp = ({Component, pageProps }) => {
return <Component {...pageProps} />
}

export default SuiNSApp;
15 changes: 15 additions & 0 deletions documentation/pages/_document.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Html, Head, Main, NextScript } from 'next/document'

export default function Document() {
return (
<Html lang="en">
<Head>
<link rel="shortcut icon" href="/favicon.png" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
2 changes: 1 addition & 1 deletion documentation/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Callout } from 'nextra/components'

Sui Name Service documentation details how to integrate Sui Name Service (SuiNS) with you projects. This includes ways to integrate using both the on-chain resolution, as well as off-chain resolution, depending on the use case.

The documentation is early in its development. As the site matures, the content will include instructio on how to use the SuiNS portal, as well.
The documentation is early in its development. As the site matures, the content will include instructions on how to use the SuiNS portal, as well.

## Active constants

Expand Down
Loading
Loading