This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add open source page and other tweaks
- Loading branch information
Griko Nibras
committed
Nov 12, 2018
1 parent
2f0510a
commit 8419e55
Showing
12 changed files
with
490 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_Store | ||
.env | ||
.next | ||
out | ||
node_modules | ||
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,90 @@ | ||
import React, { Component } from 'react' | ||
|
||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import NextLink from './NextLink' | ||
import PropTypes from 'prop-types' | ||
import { faHeart } from '@fortawesome/free-solid-svg-icons' | ||
import metadata from '../metadata' | ||
|
||
const FooterSocials = () => | ||
metadata.links | ||
.filter(link => link.isPrimary) | ||
.map(c => ( | ||
<NextLink | ||
href={c.href} | ||
target="_blank" | ||
className="button is-dark is-rounded" | ||
rel="noreferrer" | ||
aria-label={c.id} | ||
key={c.id}> | ||
<FontAwesomeIcon icon={c.classFontAwesome} fixedWidth /> | ||
</NextLink> | ||
)) | ||
export default class Footer extends Component { | ||
render() { | ||
return ( | ||
<footer | ||
className={`footer ${this.props.bgClass} ${this.props.textClass}`}> | ||
<div className="container has-text-centered"> | ||
<div className="buttons"> | ||
{metadata.links | ||
.filter(link => link.isPrimary) | ||
.map(c => ( | ||
<NextLink | ||
href={c.href} | ||
target="_blank" | ||
className={`button ${this.props.btnClass} is-rounded`} | ||
rel="noreferrer" | ||
aria-label={c.id} | ||
key={c.id}> | ||
<FontAwesomeIcon icon={c.classFontAwesome} fixedWidth /> | ||
</NextLink> | ||
))} | ||
</div> | ||
<small> | ||
Handcrafted with <FontAwesomeIcon icon={faHeart} fixedWidth /> by | ||
myself. Copyright © {new Date().getFullYear()}.<br /> | ||
Made with{' '} | ||
<a | ||
href="https://bulma.io/" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>Bulma</b> | ||
</a> | ||
{' and '} | ||
<a | ||
href="https://nextjs.org/" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>Next.js</b> | ||
</a> | ||
.<br /> | ||
<br /> | ||
Hosted on{' '} | ||
<a | ||
href="https://netlify.com" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>Netlify</b> | ||
</a> | ||
. Source available on{' '} | ||
<a | ||
href="https://github.com/grikomsn/landing-page" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>GitHub</b> | ||
</a> | ||
. | ||
</small> | ||
</div> | ||
<style jsx>{` | ||
.buttons { | ||
justify-content: center; | ||
} | ||
`}</style> | ||
</footer> | ||
) | ||
} | ||
} | ||
|
||
Footer.propTypes = { | ||
bgClass: PropTypes.string, | ||
btnClass: PropTypes.string, | ||
textClass: PropTypes.string, | ||
} | ||
|
||
export default () => ( | ||
<footer className="footer has-background-dark has-text-light"> | ||
<div className="container has-text-centered"> | ||
<div className="buttons"> | ||
<FooterSocials /> | ||
</div> | ||
<small> | ||
Handcrafted with <FontAwesomeIcon icon={faHeart} fixedWidth /> by | ||
myself. Copyright © {new Date().getFullYear()}.<br /> | ||
Made with{' '} | ||
<a | ||
href="https://bulma.io/" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>Bulma</b> | ||
</a> | ||
{' and '} | ||
<a | ||
href="https://nextjs.org/" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>Next.js</b> | ||
</a> | ||
.<br /> | ||
<br /> | ||
Hosted and source code available on{' '} | ||
<a | ||
href="https://github.com/grikomsn/landing-page" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="has-text-light"> | ||
<b>GitHub</b> | ||
</a> | ||
. | ||
</small> | ||
</div> | ||
<style jsx>{` | ||
.buttons { | ||
justify-content: center; | ||
} | ||
`}</style> | ||
</footer> | ||
) | ||
Footer.defaultProps = { | ||
bgClass: 'has-background-dark', | ||
btnClass: 'is-dark', | ||
textClass: 'has-text-light', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
const webpack = require('webpack') | ||
const withPlugins = require('next-compose-plugins') | ||
|
||
module.exports = withPlugins([ | ||
[require('next-offline'), {}], | ||
[require('next-optimized-images'), {}], | ||
[require('@zeit/next-css'), {}], | ||
[require('@zeit/next-sass'), {}], | ||
[require('next-purgecss'), {}], | ||
]) | ||
module.exports = withPlugins( | ||
[ | ||
[require('@zeit/next-css')], | ||
[require('@zeit/next-sass')], | ||
[require('next-offline')], | ||
[require('next-optimized-images')], | ||
[require('next-purgecss')], | ||
], | ||
{ | ||
webpack: config => { | ||
config.plugins.push( | ||
new webpack.EnvironmentPlugin({ | ||
GITHUB_TOKEN: process.env.GITHUB_TOKEN, | ||
}) | ||
) | ||
return config | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.