sana137.in

Sana's gatsbyjs-based blog
git clone http://git.hanabi.in/repos/sana137.in.git
Log | Files | Refs | README | LICENSE

footer.js (761B)


      1 import { Link } from 'gatsby';
      2 import PropTypes from 'prop-types';
      3 import React from 'react';
      4 
      5 import '../components/layout.css';
      6 
      7 const Footer = ({ author, name, style }) => (
      8   <footer className={'site-footer outer'} style={{ ...style }}>
      9     <div className={'site-footer-content inner'}>
     10       <section className={'copyright'}>
     11         {/* <a href={`https://www.twitter.com/${author}`}>{name}</a> ©{' '} */}
     12         {name} © {new Date().getFullYear()}
     13       </section>
     14       <nav className={'site-footer-nav'}>
     15         <Link to="/">Latest Posts</Link>
     16       </nav>
     17     </div>
     18   </footer>
     19 );
     20 
     21 Footer.propTypes = {
     22   name: PropTypes.string,
     23   author: PropTypes.string,
     24 };
     25 
     26 Footer.defaultProps = {
     27   name: `Sana`,
     28   author: `Sana`,
     29 };
     30 
     31 export default Footer;