Skip to content

Commit

Permalink
docs: landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
kepta committed Oct 13, 2023
1 parent d432eb3 commit 675fe7c
Show file tree
Hide file tree
Showing 14 changed files with 157 additions and 66 deletions.
4 changes: 4 additions & 0 deletions documentation/components/LandingPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.hero {
margin-top: 100;
margin-bottom: 100;
}
7 changes: 7 additions & 0 deletions documentation/components/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

export function LandingPage() {
return (

);
}
10 changes: 0 additions & 10 deletions documentation/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,4 @@ module.exports = {
return config;
},
}),

async redirects() {
return [
{
source: '/',
destination: '/docs',
permanent: true,
},
];
},
};
2 changes: 2 additions & 0 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
"@types/node": "18.14.6",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.0.11",
"autoprefixer": "^10.4.16",
"eslint-config-custom": "workspace:*",
"eslint-config-next": "^13.5.4",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
Expand Down
5 changes: 3 additions & 2 deletions documentation/pages/_app.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
import "../style.css";

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />;
}
31 changes: 30 additions & 1 deletion documentation/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
# Nalanda
import Image from "next/image";

<div className="min-h-[80vh] flex flex-col justify-center">
<div className="mx-auto space-y-8">

<div className="flex justify-center">
<Image
src="/nalanda.png"
alt="Nalanda Logo"
className="border-4 border-orange-300 rounded-full z-10"
width={170}
height={170}
/>
</div>
<div>

<div className="text-6xl font-black text-center leading-tight">
<span className="font-black inline-block text-transparent bg-clip-text bg-gradient-to-b dark:from-orange-600 dark:to-yellow-200 from-orange-500 to-yellow-500 animate-gradientAnimation">
Nalanda
</span>
</div>

<div className="text-2xl font-medium text-center text-gray-600 break-words">
State Management
</div>

</div>

</div>
</div>
6 changes: 6 additions & 0 deletions documentation/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added documentation/public/nalanda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions documentation/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@keyframes gradientAnimation {
0%,
100% {
background-position: 100% 0%;
}
50% {
background-position: 0% 100%;
}
}

.animate-gradientAnimation {
background-size: 200% 200%;
animation: gradientAnimation 6s infinite;
}
4 changes: 2 additions & 2 deletions documentation/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./pages/**/*.{js,ts,jsx,tsx,md,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./theme.config.tsx',
],
theme: {
Expand Down
13 changes: 9 additions & 4 deletions documentation/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import type { DocsThemeConfig } from 'nextra-theme-docs';
import type { DocsThemeConfig } from "nextra-theme-docs";
import Image from "next/image";

const config: DocsThemeConfig = {
logo: <span>Nalanda State</span>,
logo: (
<span className="animate-gradientAnimation font-black inline-block text-transparent bg-clip-text bg-gradient-to-r dark:from-red-100 dark:to-amber-500 from-red-600 to-amber-500">
Nalanda
</span>
),
docsRepositoryBase:
'https://github.com/bangle-io/nalanda/blob/dev/documentation/pages',
"https://github.com/bangle-io/nalanda/blob/dev/documentation/pages",
project: {
link: 'https://github.com/bangle-io/nalanda',
link: "https://github.com/bangle-io/nalanda",
},
footer: {
text: (
Expand Down
47 changes: 0 additions & 47 deletions package.json

This file was deleted.

48 changes: 48 additions & 0 deletions package.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
name: 'nalanda-workspace',
version: '0.0.0',
description: '',
authors: [
{
name: 'Kushan Joshi',
email: '0o3ko0@gmail.com',
web: 'http://github.com/kepta',
},
],
repository: {
type: 'git',
url: 'https://github.com/bangle-io/nalanda.git',
},
bugs: {
url: 'https://github.com/bangle-io/nalanda/issues',
},
scripts: {
'codesandbox:install': 'corepack enable && pnpm install --frozen-lockfile',
'build': 'pnpm -r run build',
'lint': 'pnpm -r run lint',
'lint-packages': 'pnpm -r --filter "./packages/**" run lint',
'test': 'pnpm -r run test',
// hi
'test:watch': 'pnpm -r run test:watch',
'build-docs': 'pnpm -r --filter documentation build',
'build-docs:watch': 'pnpm -r --filter documentation preview',
'build-packages': 'pnpm -r --filter "./packages/**" build',
'build-packages:watch': 'pnpm -r --filter "./packages/**" build:watch',
'publish-alpha': 'pnpm -r --filter "./packages/**" publish --tag alpha --otp ${npm_config_otp} --access public',
'publish-latest': 'pnpm -r --filter "./packages/**" publish --tag latest --otp ${npm_config_otp} --access public',
},
keywords: [],
license: 'MIT',
dependencies: {
prettier: '^3.0.3',
tsconfig: 'workspace:*',
typescript: '^5.2.2',
},
prettier: {
singleQuote: true,
trailingComma: 'all',
quoteProps: 'consistent',
arrowParens: 'always',
printWidth: 80,
},
}
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 675fe7c

Please sign in to comment.