Skip to content

Commit

Permalink
feat: About page
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Sep 22, 2023
1 parent db5cf2b commit 810f51e
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 3 deletions.
22 changes: 22 additions & 0 deletions src/pages/About/About.styled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styled from 'styled-components'
import { spacings } from '../../tokens/spacings'

const StyledAbout = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-top: 10%;
width: 100%;
height: 100%;
`

const InnerWrapper = styled.div`
display: flex;
flex-direction: column;
row-gap: ${spacings.LARGE};
width: 50%;
`
export { StyledAbout as About, InnerWrapper }
37 changes: 37 additions & 0 deletions src/pages/About/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { Typography } from '@equinor/eds-core-react'
import * as Styled from './About.styled'

export const About = () => {
return (
<Styled.About className="about-container">
<Styled.InnerWrapper>
<Typography variant="h1">About PEPM</Typography>
<Typography variant="body_long">
It began with the forging of the Great Rings. Three were given to{' '}
<Typography link href="https://nr.no/">
Norsk Regnesentral
</Typography>
, immortal, wisest and fairest of all beings. Seven to the
Dwarf-Lords, great miners and craftsmen of the mountain halls. And
nine, nine rings were gifted to the race of Men, who above all else
desire power. For within these rings was bound the strength and the
will to govern each race. But they were all of them deceived, for
another ring was made. Deep in the land of Mordor, in the Fires of
Mount Doom, the Dark Lord Sauron forged a master ring, and into this
ring he poured his cruelty, his malice and his will to dominate all
life.
</Typography>
<Typography variant="h3">One ring to rule them all.</Typography>
<Typography variant="body_long">
One by one, the free lands of Middle-Earth fell to the power of the
Ring, but there were some who resisted. A last alliance of men and
elves marched against the armies of Mordor, and on the very slopes of
Mount Doom, they fought for the freedom of Middle-Earth. Victory was
near, but the power of the ring could not be undone. It was in this
moment, when all hope had faded, that Isildur, son of the king, took
up his father’s sword.
</Typography>
</Styled.InnerWrapper>
</Styled.About>
)
}
5 changes: 2 additions & 3 deletions src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createBrowserRouter, NonIndexRouteObject } from 'react-router-dom'
import { App } from './App'
import { ModelView } from './features/ModelView/ModelView'
import { About } from './pages/About/About'
import { Api } from './pages/Api/Api'
import { Browse } from './pages/Browse/Browse'
import { Compute } from './pages/ModelPages/Compute/Compute'
Expand All @@ -11,16 +12,14 @@ interface Tab extends Required<Pick<NonIndexRouteObject, 'path' | 'element'>> {
title: string
}

const NotImplemented = () => <p>Not implemented</p>

const tabs: Tab[] = [
{
title: 'Models',
path: 'models',
element: <Browse />,
},
{ title: 'API', path: 'api', element: <Api /> },
{ title: 'About', path: 'about', element: <NotImplemented /> },
{ title: 'About', path: 'about', element: <About /> },
]
const appRoutes = (tabs as NonIndexRouteObject[]).concat([
{
Expand Down

0 comments on commit 810f51e

Please sign in to comment.