Skip to content

Instantly share code, notes, and snippets.

@stevenselcuk
Created June 24, 2020 15:59
Show Gist options
  • Select an option

  • Save stevenselcuk/cdc2014ab262e4742268981c75f2e0d8 to your computer and use it in GitHub Desktop.

Select an option

Save stevenselcuk/cdc2014ab262e4742268981c75f2e0d8 to your computer and use it in GitHub Desktop.
import React, { memo } from 'react'
import PropTypes from 'prop-types'
import { useApp } from '../hooks/use-app'
import { useMeta } from '../hooks/use-meta'
import SEO from '../components/atoms/SEO'
import styles from './index.module.css'
import { ReactComponent as DownloadBadge } from '../images/DownloadBadgeDark.svg'
Home.propTypes = {
pageContext: PropTypes.object.isRequired
}
function Home({ pageContext }) {
const { basics } = useApp()
const meta = useMeta()
const image = `.${meta.img.childImageSharp.resize.src}`
return (
<>
<SEO title={basics.name} description={basics.label} />
<div className={styles.hero}>
<div>
<div className={styles.hugetitle}>Pomosh</div>
<div className={styles.desc}>
is your next awesome Pomodoro Technique Assistant. Lives in your in
in your menubar.
</div>
<div className={styles.badge}>
<a
href="https://apps.apple.com/us/app/pomosh/id1515791898?ls=1"
title="Download the Pomosoh on the App Store"
>
<DownloadBadge />
</a>
</div>
<a href="https://www.producthunt.com/posts/pomosh-for-macos?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-pomosh-for-macos">
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=204674&theme=light"
/>
</a>
</div>
<img
src={image}
className={styles.productimage}
alt="iMac Mockup"
title="Pomosh"
/>
</div>
</>
)
}
export default memo(Home)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment