ETHReport/components/pageHeader/index.js

26 lines
925 B
JavaScript
Raw Normal View History

import React from 'react';
2018-07-10 12:32:06 +00:00
import AnchorLink from 'react-anchor-link-smooth-scroll';
import getConfig from 'next/config';
import './style.scss';
2018-07-11 13:53:09 +00:00
const { publicRuntimeConfig } = getConfig();
2018-07-10 12:32:06 +00:00
const PageHeader = () => (
2018-07-11 13:53:09 +00:00
<div className="page-header" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)` }}>
<div className="container">
<nav className="page-header-nav">
<AnchorLink offset="24" href="#resources">Resources</AnchorLink>
<AnchorLink offset="24" href="#browse">Browse Archives</AnchorLink>
</nav>
<img className="logo" src={`${publicRuntimeConfig.subDirPath}/static/img/ETHPrize-logo.png`} alt="ETHPrize logo" />
<h1>Ethereum Report</h1>
<p>
We&rsquo;ve interviewed 100+ developers to showcase the biggest opportunities in the
Ethereum ecosystem
</p>
</div>
</div>
);
2018-07-10 12:32:06 +00:00
export default PageHeader;