-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): loading state on auth form, added some content to home …
…page
- Loading branch information
Ivo
committed
Apr 21, 2023
1 parent
5021b51
commit f2a7122
Showing
5 changed files
with
118 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"title": "Home", | ||
"callout": "Molecular Dynamics made easy", | ||
"slogan": "The new home to easy MD generation and execution", | ||
"description": "Welcome to the new Visual Dynamics.\nWith a revamped interface and a new methodology of generating and running GROMACS simulations we aim to provide faster, more reliable and replicable simulations, all this, through a new, more understandable and scalable codebase.", | ||
"features": { | ||
"runs-on-cloud": { | ||
"title": "Runs on Cloud", | ||
"description": "MD demands time, computational power, and even more computational power, so you can rely on us to this. We run 10 simultaneous MDs, with 6 CPU cores each." | ||
}, | ||
"open-source": { | ||
"title": "Free for... everyone", | ||
"description": "We know running a MD is not something easy, with this in mind, we develop this piece of software as a free and open-source software. Run on our hardware, your hardware, deploy your own, it is totally up to you." | ||
} | ||
} | ||
} |
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,5 +1,6 @@ | ||
{ | ||
"auth": { | ||
"restore": "Trying to restore a session", | ||
"role": { | ||
"admin": "Administrator", | ||
"user": "User" | ||
|
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,8 +1,66 @@ | ||
import { CloudCog, Code2 } from "lucide-react"; | ||
import { useTranslation } from "next-i18next"; | ||
|
||
import { PageLayout } from "@app/components/Layout/Page"; | ||
import { withSSRTranslations } from "@app/hocs/withSSRTranslations"; | ||
|
||
export const getStaticProps = withSSRTranslations(undefined); | ||
export const getStaticProps = withSSRTranslations(undefined, { | ||
namespaces: ["home"] | ||
}); | ||
|
||
export default function Home() { | ||
return <PageLayout title="pages:home.title">bem vindo</PageLayout>; | ||
const { t } = useTranslation(["home"]); | ||
|
||
const features = [ | ||
{ | ||
name: "home:features.runs-on-cloud.title", | ||
description: "home:features.runs-on-cloud.description", | ||
icon: CloudCog | ||
}, | ||
{ | ||
name: "home:features.open-source.title", | ||
description: "home:features.open-source.description", | ||
icon: Code2 | ||
} | ||
]; | ||
|
||
return ( | ||
<PageLayout | ||
className="gap-y-5" | ||
title={t("home:title")} | ||
> | ||
<div className="text-center"> | ||
<h2 className="text-base font-semibold leading-7 text-primary-600 transition-all duration-500"> | ||
{t("home:callout")} | ||
</h2> | ||
<p className="text-3xl font-bold tracking-tight text-gray-900"> | ||
{t("home:slogan")} | ||
</p> | ||
</div> | ||
<p className="text-justify text-lg leading-8 text-gray-600"> | ||
{t("home:description")} | ||
</p> | ||
<dl className="grid grid-cols-1 gap-x-8 gap-y-10 lg:grid-cols-2 lg:gap-y-16"> | ||
{features.map((feature) => ( | ||
<div | ||
key={feature.name} | ||
className="relative pl-12" | ||
> | ||
<dt className="text-base flex font-semibold text-gray-900"> | ||
<div className="absolute left-0 top-1 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-600 transition-all duration-500"> | ||
<feature.icon | ||
className="h-6 w-6 text-white" | ||
aria-hidden="true" | ||
/> | ||
</div> | ||
{t(feature.name)} | ||
</dt> | ||
<dd className="text-base text-gray-600"> | ||
{t(feature.description)} | ||
</dd> | ||
</div> | ||
))} | ||
</dl> | ||
</PageLayout> | ||
); | ||
} |
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