Skip to content
Snippets Groups Projects
Select Git revision
  • a05b85e2930e6e7242c8ab1683b0294aaf526a35
  • develop default
  • master protected
  • feature/frontend-tests
  • 0.106
  • 0.105
  • 0.104
  • 0.103
  • 0.102
  • 0.101
  • 0.100
  • 0.99
  • 0.98
  • 0.97
  • 0.96
  • 0.95
  • 0.94
  • 0.93
  • 0.92
  • 0.91
  • 0.90
  • 0.89
  • 0.88
  • 0.87
24 results

PageHeader.tsx

Blame
  • PageHeader.tsx 1.40 KiB
    import { ReactElement } from "react";
    import { Container, Row, Col } from "react-bootstrap";
    import { Link } from "react-router-dom";
    import SectionLink from "compendium/components/global/SectionLink";
    
    interface inputProps {
        type: string
    }
    
    function CompendiumHeader({ type }: inputProps): ReactElement {
        let className = ''
        if (type == 'data') {
            className += ' compendium-data-header'
        } else if (type == 'reports') {
            className = ' compendium-reports-header'
        }
        return (
            <div className={className}>
    
                <Container>
                    <Row>
                        <Col sm={8}>
                            <h1 className={'bold-caps-30pt'} style={{ 'marginTop': '0.5rem' }}>
                                <Link to={type === 'data' ? "/data" : "/"} style={{ textDecoration: 'none', color: 'white' }}>
                                    <span>Compendium {type === 'data' ? 'Data' : 'Reports'}</span>
                                </Link>
                            </h1>
                        </Col>
                        <Col sm={4}>
                            <a style={{ color: 'inherit' }} href="https://resources.geant.org/geant-compendia/" target="_blank" rel="noreferrer">
                                <SectionLink section={"Reports"} />
                            </a>
                        </Col>
                    </Row>
                </Container>
            </div>
        );
    }
    
    export default CompendiumHeader;