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