mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update project structure
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { FC, useContext } from 'react';
|
||||
import { DarkModeContext } from '../../components/DarkMode';
|
||||
import { ThemeContext } from '../../styles/theme';
|
||||
import { Wrapper } from './styles';
|
||||
import Image from 'next/image';
|
||||
|
||||
const Hero: FC = () => {
|
||||
const { dark } = useContext(DarkModeContext);
|
||||
const { mode } = useContext(ThemeContext);
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
@@ -16,7 +16,7 @@ const Hero: FC = () => {
|
||||
</div>
|
||||
<div className='illustration'>
|
||||
<Image
|
||||
src={dark ? '/dark-illustration.svg' : '/light-illustration.svg'}
|
||||
src={mode === 'dark' ? '/dark-illustration.svg' : '/light-illustration.svg'}
|
||||
width='100%'
|
||||
height='100%'
|
||||
layout='responsive'
|
||||
|
||||
Reference in New Issue
Block a user