diff --git a/docs/welcome.md b/docs/welcome.md
index fad902e..3232152 100644
--- a/docs/welcome.md
+++ b/docs/welcome.md
@@ -1,7 +1,3 @@
----
-slug: /
----
-
import LinkButton from '@site/src/components/LinkButton/index';
# Welcome to Nillion's Docs
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 7cb65a4..e54c8e0 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -79,6 +79,10 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
+ colorMode: {
+ defaultMode: 'dark',
+ respectPrefersColorScheme: true,
+ },
image: 'img/nillion-banner.jpeg',
navbar: {
logo: {
@@ -89,14 +93,20 @@ const config = {
{
type: 'doc',
position: 'left',
- docId: 'welcome',
- label: 'Docs',
+ docId: 'what-is-nillion',
+ label: 'Learn',
},
{
type: 'doc',
position: 'left',
- docId: 'nada-by-example',
- label: 'Nada by Example',
+ docId: 'start-building',
+ label: 'Build',
+ },
+ {
+ type: 'doc',
+ position: 'left',
+ docId: 'community-and-support',
+ label: 'Community',
},
{
href: 'https://github.com/NillionNetwork',
diff --git a/src/components/LinkButton/index.js b/src/components/LinkButton/index.js
index b9cb924..b966510 100644
--- a/src/components/LinkButton/index.js
+++ b/src/components/LinkButton/index.js
@@ -2,10 +2,14 @@ import React from 'react';
import styles from './styles.module.css'; // Import CSS module for styling
import Link from '@docusaurus/Link';
-const LinkButton = ({ text, link }) => {
+const LinkButton = ({ text, link, small }) => {
return (
-
+
);
};
diff --git a/src/components/LinkButton/styles.module.css b/src/components/LinkButton/styles.module.css
index 58db1bb..4c569f5 100644
--- a/src/components/LinkButton/styles.module.css
+++ b/src/components/LinkButton/styles.module.css
@@ -18,3 +18,30 @@
cursor: pointer;
text-decoration: none;
}
+
+.smallCustomButton {
+ border: none;
+ text-align: center;
+ text-decoration: none;
+ font-size: 20px;
+ box-sizing: border-box;
+ cursor: pointer;
+ border-radius: 32px;
+ padding: 15px;
+ width: 25%;
+ align-items: center;
+ font-weight: 400;
+ background: rgb(0, 33, 245);
+ color: white !important;
+}
+
+@media screen and (max-width: 768px) {
+ .smallCustomButton {
+ width: 50%;
+ }
+}
+
+.smallCustomButton:hover {
+ cursor: pointer;
+ text-decoration: none;
+}
diff --git a/src/css/custom.css b/src/css/custom.css
index 1e3f739..9152369 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -5,8 +5,8 @@
*/
@font-face {
- font-family: 'TWKEverett';
- src: url('../../static/fonts/TWKEverett-Medium-web.woff') format('woff');
+ font-family: "TWKEverett";
+ src: url("../../static/fonts/TWKEverett-Medium-web.woff") format("woff");
}
/* You can override the default Infima variables here. */
@@ -19,13 +19,14 @@
--ifm-color-primary-lighter: #4d4dff;
--ifm-color-primary-lightest: #ccccff;
--ifm-code-font-size: 95%;
+ --ifm-card-primary-grey: #f7f7f7;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--feedback-primary-color: blue;
- --feedback-font-family: 'TWKEverett';
+ --feedback-font-family: "TWKEverett";
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
-[data-theme='dark'] {
+[data-theme="dark"] {
--ifm-color-primary: #b7d8f7;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
@@ -33,6 +34,7 @@
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
+ --ifm-card-primary-grey: #646464;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}
@@ -59,11 +61,7 @@ h1,
h2,
h3,
h4 {
- font-family: 'TWKEverett';
-}
-
-.navbar {
- background: rgb(0, 33, 245);
+ font-family: "TWKEverett";
}
.navbar .clean-btn svg,
@@ -71,6 +69,14 @@ h4 {
.navbar .navbar__item {
color: white !important;
}
+[data-theme="light"] .navbar .navbar__item {
+ color: white !important;
+ filter: invert(0.8);
+}
+
+[data-theme="light"] .navbar .clean-btn svg {
+ filter: invert(0.8);
+}
.navbar__title {
font-size: 30px;
@@ -81,7 +87,7 @@ h4 {
}
.header-github:before {
- content: '';
+ content: "";
width: 24px;
height: 24px;
display: flex;
@@ -91,17 +97,34 @@ h4 {
/* Dark mode css */
-[data-theme='dark'] .header-github:hover {
- filter: invert(0.8);
+[data-theme="dark"] .header-github:hover {
+ filter: invert(1);
}
-[data-theme='dark'] .sidebar-title {
+[data-theme="dark"] .sidebar-title {
border-bottom: solid rgb(96, 103, 112) 1px;
}
+@media (min-width: 768px) {
+ .main-wrapper .container {
+ padding-left: 2em;
+ }
+}
+
.divider {
width: 100%;
height: 1px;
background-color: #ccc;
margin: 20px 0;
}
+
+.theme-doc-sidebar-menu.menu__list {
+ padding-top: 1em !important;
+ padding-bottom: 3em !important;
+}
+
+.theme-doc-sidebar-menu .menu__list {
+ padding-top: 0 !important;
+ padding-bottom: 0 !important;
+}
+
diff --git a/src/pages/index.js b/src/pages/index.js
new file mode 100644
index 0000000..542ac68
--- /dev/null
+++ b/src/pages/index.js
@@ -0,0 +1,96 @@
+import React from "react";
+import Layout from "@theme/Layout";
+import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
+import styles from "./index.module.css";
+import Link from "@docusaurus/Link";
+import LinkButton from "../components/LinkButton";
+
+function HeroSection() {
+ const { siteConfig } = useDocusaurusContext();
+
+ return (
+
+ Nillion is a secure computation network that decentralizes trust for
+ high value data in the same way that blockchains decentralized
+ transactions.
+ {siteConfig.title}
+
+ Humanity's first blind computer.
+
+
+
{description}
+ + ); +} + +function FeaturesSection() { + const features = [ + { + title: "Learn", + description: + "Nillion is a secure computation network that decentralizes trust for high value data in the same way that blockchains decentralized transactions.", + icon: "🎓", + href: "./what-is-nillion", + }, + { + title: "Build", + description: + "Start building on Nillion with one of our developer quickstart guides. Create fullstack Python and Javscript applications with Nada.", + icon: "👷", + href: "./start-building", + }, + { + title: "Community", + description: + "Join the Nillion community to connect, collaborate, and contribute to the future of blind computation.", + icon: "🌐", + href: "./community-and-support", + }, + ]; + + return ( +