-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from NFDI4Chem/316-Update-docusaurus.config.js
316 update docusaurus.config.js
- Loading branch information
Showing
2 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,49 @@ | ||
import React from 'react'; | ||
import Layout from '@theme/Layout'; | ||
import Link from '@docusaurus/Link'; | ||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; | ||
import N4CFeatures from '../components/N4CFeatures'; | ||
import Translate,{translate} from '@docusaurus/Translate'; | ||
|
||
var desc = <Translate>A place for all knowledge regarding Research Data Management (RDM) in Chemistry</Translate>; | ||
import React from "react"; | ||
import Layout from "@theme/Layout"; | ||
import Link from "@docusaurus/Link"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import N4CFeatures from "../components/N4CFeatures"; | ||
import Translate from "@docusaurus/Translate"; | ||
|
||
export default function Home() { | ||
const {siteConfig} = useDocusaurusContext(); | ||
return ( | ||
<Layout | ||
title={`${siteConfig.title}`} | ||
description={desc}> | ||
<div className="hero"> | ||
<div className="container hero__container"> | ||
<div className="row"> | ||
<div className="col"> | ||
<h1 className='hero__title text'> | ||
{siteConfig.title} | ||
</h1> | ||
</div> | ||
</div> | ||
<div className="row"> | ||
<div className="col col--8"> | ||
<p className="hero__subtitle"> | ||
{desc} | ||
</p> | ||
</div> | ||
<div className="col col--2"> | ||
<div className="buttons"> | ||
<Link | ||
className="button button--negative button--lg" | ||
to="/docs/intro"> | ||
<Translate>Get started</Translate> | ||
</Link> | ||
</div> | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<Layout | ||
title={`${siteConfig.title}`} | ||
description={`${siteConfig.customFields.description}`} | ||
> | ||
<div className="hero"> | ||
<div className="container hero__container"> | ||
<div className="row"> | ||
<div className="col"> | ||
<h1 className="hero__title text"> | ||
{siteConfig.title} | ||
</h1> | ||
</div> | ||
</div> | ||
<div className="row"> | ||
<div className="col col--8"> | ||
<p className="hero__subtitle"> | ||
<Translate> | ||
A place for all knowledge regarding Research | ||
Data Management (RDM) in Chemistry | ||
</Translate> | ||
</p> | ||
</div> | ||
<div className="col col--2"> | ||
<div className="buttons"> | ||
<Link | ||
className="button button--negative button--lg" | ||
to="/docs/intro" | ||
> | ||
<Translate>Get started</Translate> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
<N4CFeatures feature="entry" /> | ||
</div> | ||
</div> | ||
</div> | ||
<N4CFeatures feature="entry" /> | ||
</div> | ||
</div> | ||
</Layout> | ||
); | ||
</Layout> | ||
); | ||
} |