mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-06-15 17:03:26 +02:00
39 lines
977 B
JavaScript
39 lines
977 B
JavaScript
import React, { memo } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import { Link } from 'gatsby'
|
|
import posed from 'react-pose'
|
|
import { moveInBottom } from '../atoms/Transitions'
|
|
import { ReactComponent as Logo } from '../../images/logo.svg'
|
|
import {
|
|
minimal as styleMinimal,
|
|
logounit,
|
|
logo,
|
|
title,
|
|
description
|
|
} from './LogoUnit.module.css'
|
|
import { useResume } from '../../hooks/use-resume'
|
|
|
|
LogoUnit.propTypes = {
|
|
minimal: PropTypes.bool,
|
|
isResume: PropTypes.bool
|
|
}
|
|
|
|
function LogoUnit({ minimal }) {
|
|
const { basics } = useResume()
|
|
const Animation = posed.div(moveInBottom)
|
|
|
|
return (
|
|
<Animation>
|
|
<Link className={minimal ? styleMinimal : logounit} to={'/'}>
|
|
<Logo className={logo} />
|
|
<h1 className={`p-name ${title}`}>{basics.name.toLowerCase()}</h1>
|
|
<p className={`p-job-title ${description}`}>
|
|
{basics.label.toLowerCase()}
|
|
</p>
|
|
</Link>
|
|
</Animation>
|
|
)
|
|
}
|
|
|
|
export default memo(LogoUnit)
|