Skip to content

Commit

Permalink
feat: migrate to nextra
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx committed Jan 15, 2023
1 parent 734917d commit fd3d23f
Show file tree
Hide file tree
Showing 24 changed files with 292 additions and 379 deletions.
4 changes: 1 addition & 3 deletions packages/website/components/AddEthereumChainButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

type Props = {
buttonText: string;
chain: string;
Expand Down Expand Up @@ -52,7 +50,7 @@ async function addEthereumChain(chain: string) {
});
}

export default function AddEthereumChainButton(props: Props): JSX.Element {
export default function AddEthereumChainButton(props: Props) {
return (
<div
onClick={() => addEthereumChain(props.chain)}
Expand Down
22 changes: 8 additions & 14 deletions packages/website/components/BlogSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

const posts = [
{
title: "Taiko Ambassador Program",
Expand Down Expand Up @@ -47,10 +45,8 @@ const posts = [
},
},
];
/**
* @returns Blog section displaying latest Taiko blog posts from Mirror
*/
export default function BlogSection(): JSX.Element {

export default function BlogSection() {
return (
<div className="relative bg-neutral-50 px-4 pt-16 pb-20 sm:px-6 lg:px-8 lg:pt-24 lg:pb-28 dark:bg-neutral-900">
<div className="absolute inset-0">
Expand Down Expand Up @@ -96,14 +92,12 @@ export default function BlogSection(): JSX.Element {
</div>
<div className="mt-6 flex items-center">
<div className="flex-shrink-0">
<a>
<span className="sr-only">{post.author.name}</span>
<img
className="h-10 w-10 rounded-full"
src={post.author.imageUrl}
alt=""
/>
</a>
<span className="sr-only">{post.author.name}</span>
<img
className="h-10 w-10 rounded-full"
src={post.author.imageUrl}
alt=""
/>
</div>
<div className="ml-3">
<div className="text-sm font-medium text-[#fc0fc0]">
Expand Down
1 change: 0 additions & 1 deletion packages/website/components/Features.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import {
ArrowPathIcon,
GlobeAltIcon,
Expand Down
2 changes: 1 addition & 1 deletion packages/website/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function Footer(): JSX.Element {
export default function Footer() {
return (
<footer className="bg-neutral-100 dark:bg-neutral-900">
<div className="grid grid-cols-2 gap-8 px-6 py-8 md:grid-cols-3 md:px-44">
Expand Down
2 changes: 1 addition & 1 deletion packages/website/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Hero() {
<div className="mt-10 flex md:justify-left">
<div className="inline-flex rounded-md shadow">
<a
href="/docs/alpha-testnet-guide/get-started"
href="/docs/alpha-1-testnet-guide/get-started"
className="inline-flex items-center rounded-md border border-transparent bg-[#e30ead] px-5 py-3 text-base font-semibold text-white dark:text-neutral-100 hover:bg-[#bd0b90] hover:no-underline hover:text-white"
>
Explore Snæfellsjökull 🌋
Expand Down
10 changes: 5 additions & 5 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"start": "pnpm next start"
},
"dependencies": {
"next": "^13.0.6",
"nextra": "2.0.1",
"nextra-theme-docs": "2.0.1",
"next": "^13.1.2",
"nextra": "^2.2.3",
"nextra-theme-docs": "^2.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@heroicons/react": "^2.0.13",
"@types/node": "18.11.10",
"@types/react": "18.0.26",
"@next/font": "^13.1.2",
"@types/node": "^18.11.10",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.20",
"tailwindcss": "^3.2.4",
Expand Down
11 changes: 0 additions & 11 deletions packages/website/pages/_app.js

This file was deleted.

15 changes: 15 additions & 0 deletions packages/website/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import "../styles.css";
import { Oxanium } from "@next/font/google";

const oxanium = Oxanium({
subsets: ["latin"],
variable: "--font-oxanium",
});

export default function MyApp({ Component, pageProps }) {
return (
<main className={`${oxanium.variable}`}>
<Component {...pageProps} />
</main>
);
}
4 changes: 0 additions & 4 deletions packages/website/pages/docs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"learn": {
"title": "Learn"
},
<<<<<<< HEAD
"alpha-1-testnet-guide": {
=======
"alpha-testnet-guide": {
>>>>>>> 3c38a3c (feat: migrate to nextra)
"title": "Alpha-1 Testnet Guide"
},
"contract-documentation": {
Expand Down
26 changes: 0 additions & 26 deletions packages/website/pages/docs/alpha-testnet-guide/_meta.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions packages/website/pages/docs/alpha-testnet-guide/get-help.mdx

This file was deleted.

26 changes: 0 additions & 26 deletions packages/website/pages/docs/alpha-testnet-guide/get-started.mdx

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions packages/website/pages/docs/alpha-testnet-guide/run-a-node.mdx

This file was deleted.

26 changes: 0 additions & 26 deletions packages/website/pages/docs/alpha-testnet-guide/use-the-bridge.mdx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct Config {
uint64 bootstrapDiscountHalvingPeriod;
uint64 initialUncleDelay;
bool enableTokenomics;
bool enablePublicInputsCheck;
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ Returns the bridge state context.
```solidity
function isDestChainEnabled(uint256 _chainId) public view returns (bool)
```

### getMessageStatusSlot

```solidity
function getMessageStatusSlot(bytes32 signal) public pure returns (bytes32)
```
4 changes: 4 additions & 0 deletions packages/website/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: "Taiko"
---

import Hero from "components/Hero";
import Features from "components/Features";
import BlogSection from "components/BlogSection";
Expand Down
2 changes: 1 addition & 1 deletion packages/website/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
theme: {
extend: {
fontFamily: {
oxanium: ["Oxanium", "sans-serif"],
oxanium: ["var(--font-oxanium)"],
},
},
},
Expand Down
Loading

0 comments on commit fd3d23f

Please sign in to comment.