mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
30 lines
698 B
TypeScript
30 lines
698 B
TypeScript
import { FC, useContext } from 'react';
|
|
import { ThemeContext } from '../../styles/theme';
|
|
import { Wrapper } from './styles';
|
|
import Image from 'next/image';
|
|
|
|
const Hero: FC = () => {
|
|
const { mode } = useContext(ThemeContext);
|
|
|
|
return (
|
|
<Wrapper>
|
|
<div className='intro'>
|
|
<h2>Hi, I am Hazem</h2>
|
|
<h2>I Like Building Things</h2>
|
|
<h2 className='blue'>Software Developer</h2>
|
|
<h2 className='blue'>Life Long Learner</h2>
|
|
</div>
|
|
<div className='illustration'>
|
|
<Image
|
|
src={mode === 'dark' ? '/dark-illustration.svg' : '/light-illustration.svg'}
|
|
width='100%'
|
|
height='100%'
|
|
layout='responsive'
|
|
/>
|
|
</div>
|
|
</Wrapper>
|
|
);
|
|
};
|
|
|
|
export default Hero;
|