Skip to content
Snippets Groups Projects
Commit d6b6e553 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Update header to link to /data and GEANT icon links to https://geant.org

parent a0855558
No related branches found
No related tags found
No related merge requests found
import React, { ReactElement } from "react";
import { Container, Row, Col } from "react-bootstrap";
import { Container, Row } from "react-bootstrap";
import { Link } from "react-router-dom";
import OrganizationSidebar from "./OrganizationSidebar";
import PageHeader from "../components/global/PageHeader"
import SectionLink from "../components/global/SectionLink";
......@@ -19,7 +21,11 @@ function DataPage({ title, filter, children, category }: inputProps): ReactEleme
<>
{category === Sections.Organisation && <OrganizationSidebar />}
{category === Sections.Policy && <PolicySidebar />}
<PageHeader type={'data'} header={'Compendium Data'}>
<PageHeader type={'data'} header={<h1 className={'bold-caps-30pt'}>
<Link to="/data" style={{ textDecoration: 'none', color: 'white' }}>
<span>Compendium Data</span>
</Link>
</h1>}>
<SectionLink section={"Reports"} />
</PageHeader>
<SectionNavigation activeCategory={category} />
......
......@@ -15,7 +15,7 @@ function ExternalPageNavBar(): ReactElement {
<Container>
<Row>
<nav>
<a href="/"><img src={GeantLogo} /></a>
<a href="https://geant.org/"><img src={GeantLogo} /></a>
<ul>
<li><a href="https://network.geant.org/">NETWORK</a></li>
......
......@@ -3,7 +3,7 @@ import { Container, Row, Col } from "react-bootstrap";
interface inputProps {
type: string,
header: string,
header: ReactElement,
children: ReactElement
}
......@@ -20,10 +20,10 @@ function CompendiumHeader({ type, header, children }: inputProps): ReactElement
<Container>
<Row>
<Col sm={8}>
<h1 className={'bold-caps-30pt '}>{header}</h1>
{header}
</Col>
<Col sm={4}>
{children}
{children}
</Col>
</Row>
</Container>
......
......@@ -10,7 +10,11 @@ import { Sections } from "../helpers/constants";
function CompendiumData(): ReactElement {
return (
<main className="content" style={{ backgroundColor: "white" }}>
<PageHeader type={'data'} header={'Compendium Data'}>
<PageHeader type={'data'} header={<h1 className={'bold-caps-30pt'}>
<Link to="/data" style={{ textDecoration: 'none', color: 'white' }}>
<span>Compendium Data</span>
</Link>
</h1>}>
<SectionLink section={"Reports"} />
</PageHeader>
<Banner type={'data'}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment