generated from BlackCubes/bootstrap-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from BlackCubes/development
Minor Dev to Main
- Loading branch information
Showing
35 changed files
with
957 additions
and
1,940 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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { FC, useEffect } from 'react'; | ||
import { useAnimation } from 'framer-motion'; | ||
import { useInView } from 'react-intersection-observer'; | ||
|
||
import GlassRectangle from 'common/components/GlassRectangle'; | ||
|
||
import { ImageWrapper } from './styles'; | ||
|
||
interface IAboutImageProps { | ||
customClassName?: string; | ||
imgAlt: string; | ||
imgSrc: string; | ||
} | ||
|
||
const AboutImage: FC<IAboutImageProps> = ({ | ||
customClassName, | ||
imgAlt, | ||
imgSrc, | ||
}) => { | ||
const imageAnimateControls = useAnimation(); | ||
|
||
const { inView: imageInView, ref: imageRef } = useInView(); | ||
|
||
useEffect(() => { | ||
const timer = setTimeout(() => { | ||
if (imageInView) { | ||
imageAnimateControls.start('visible'); | ||
} | ||
}, 200); | ||
|
||
return () => clearTimeout(timer); | ||
}, [imageAnimateControls, imageInView]); | ||
|
||
return ( | ||
<ImageWrapper | ||
animate={imageAnimateControls} | ||
className="default-margin-bottom" | ||
ref={imageRef} | ||
> | ||
<GlassRectangle | ||
customClassName={customClassName} | ||
glassDarkShadowBlur={0.4} | ||
glassDarkShadowHorizontalOffset={0.3} | ||
glassDarkShadowVerticalOffset={0.3} | ||
glassLightShadowBlur={0.4} | ||
glassLightShadowHorizontalOffset={-0.3} | ||
glassLightShadowVerticalOffset={-0.3} | ||
imageAlt={imgAlt} | ||
imageSrc={imgSrc} | ||
opacity={1} | ||
/> | ||
</ImageWrapper> | ||
); | ||
}; | ||
|
||
export default AboutImage; |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import styled from 'styled-components'; | ||
import { motion } from 'framer-motion'; | ||
|
||
export const ImageWrapper = styled(motion.div).attrs(() => ({ | ||
initial: 'hidden', | ||
variants: { | ||
hidden: { opacity: 0 }, | ||
visible: { | ||
opacity: 1, | ||
transition: { duration: 0.5 }, | ||
}, | ||
}, | ||
}))` | ||
margin-top: 5rem; | ||
@media ${({ theme }) => theme.responsive.below899} { | ||
margin-top: 0; | ||
} | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { FC } from 'react'; | ||
|
||
import HeadingPrimary from 'common/typography/HeadingPrimary'; | ||
import Paragraph from 'common/typography/Paragraph'; | ||
|
||
import { MainAboutWrapper, SecondaryAboutWrapper, Section } from './styles'; | ||
|
||
const AboutSection: FC = () => ( | ||
<Section> | ||
<MainAboutWrapper> | ||
<HeadingPrimary> | ||
Hello! I love drinking coffee while learning and improving on new and | ||
existing technologies | ||
</HeadingPrimary> | ||
</MainAboutWrapper> | ||
|
||
<SecondaryAboutWrapper> | ||
<Paragraph> | ||
A passionate and curious individual with a BS degree in Physics from | ||
UCLA currently working as a Full-Stack Software Engineer at Aerobotics7 | ||
to remove landmines from around the world. I have experiences with | ||
Python, Django, Node.js, React.js, Figma/Lucid Charts and other | ||
platforms and tools to facilitate on creating and solving real-world | ||
problems for the users to enjoy, and the companies to succeed their | ||
vision | ||
</Paragraph> | ||
</SecondaryAboutWrapper> | ||
</Section> | ||
); | ||
|
||
export default AboutSection; |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Section = styled.section` | ||
width: 100%; | ||
text-align: right; | ||
`; | ||
|
||
export const MainAboutWrapper = styled.div` | ||
width: 80%; | ||
margin-bottom: 3rem; | ||
margin-left: auto; | ||
@media ${({ theme }) => theme.responsive.below1199} { | ||
width: 97%; | ||
} | ||
@media ${({ theme }) => theme.responsive.below899} { | ||
width: 100%; | ||
margin-bottom: 5rem; | ||
} | ||
@media ${({ theme }) => theme.responsive.below479} { | ||
margin-bottom: 3rem; | ||
} | ||
`; | ||
|
||
export const SecondaryAboutWrapper = styled.div` | ||
width: 95%; | ||
margin-bottom: 3rem; | ||
margin-left: auto; | ||
@media ${({ theme }) => theme.responsive.below1199} { | ||
width: 97%; | ||
} | ||
@media ${({ theme }) => theme.responsive.below899} { | ||
width: 100%; | ||
margin-bottom: 5rem; | ||
} | ||
@media ${({ theme }) => theme.responsive.below479} { | ||
margin-bottom: 3rem; | ||
} | ||
`; |
Oops, something went wrong.