awesome-uses/src/components/header.js

36 lines
739 B
JavaScript
Raw Normal View History

2020-01-17 20:40:06 +00:00
import React from 'react';
2020-01-07 20:23:53 +00:00
import PropTypes from 'prop-types';
2020-01-07 21:38:31 +00:00
import Helmet from 'react-helmet';
2020-01-08 18:11:15 +00:00
import FavIcon from './FavIcon';
2020-01-07 20:23:53 +00:00
2020-01-10 18:03:24 +00:00
function Header({ siteTitle, siteDescription, siteUrl }) {
2023-02-20 20:41:29 +00:00
2020-01-08 18:11:15 +00:00
return (
2023-02-20 20:41:29 +00:00
<div className="header HeaderWrapper">
2020-01-08 18:11:15 +00:00
<FavIcon />
<div>
2020-01-20 20:35:48 +00:00
<h1 id="top">
2023-02-20 20:41:29 +00:00
<a href="/">/uses</a>
2020-01-08 18:11:15 +00:00
</h1>
<p>
A list of <code>/uses</code> pages detailing developer setups, gear,
software and configs.
</p>
</div>
2023-02-20 20:41:29 +00:00
</div>
2020-01-08 18:11:15 +00:00
);
}
2020-01-07 20:23:53 +00:00
Header.propTypes = {
siteTitle: PropTypes.string,
2020-01-17 20:40:06 +00:00
siteDescription: PropTypes.string,
siteUrl: PropTypes.string,
2020-01-07 20:23:53 +00:00
};
Header.defaultProps = {
2020-01-17 20:40:06 +00:00
siteTitle: '',
siteDescription: '',
siteUrl: '',
2020-01-07 20:23:53 +00:00
};
export default Header;