Skip to content

Commit

Permalink
Fixed absence of index.js in the website
Browse files Browse the repository at this point in the history
  • Loading branch information
vlasonfa committed Sep 1, 2023
1 parent b8da0d4 commit 020ac02
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*.js
!website/*.js
!website/*/*.js
!website/*/*/*.js
!website/*/*/*/*.js
!scripts/*.js
!jest.config.js
*.d.ts
Expand Down
4 changes: 0 additions & 4 deletions build/test_synth_all_stacks.sh

This file was deleted.

39 changes: 39 additions & 0 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';

import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Start with Intro
</Link>
</div>
</div>
</header>
);
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title}`}
description="Run blockchain nodes on AWS">
<HomepageHeader />
<main>
</main>
</Layout>
);
}

0 comments on commit 020ac02

Please sign in to comment.