From 5d8a9b677d1596cd69282ed1c5d58578a9b4753a Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 17 Mar 2021 23:59:37 +0100 Subject: [PATCH] Update hero text and add illustrations --- components/Hero.tsx | 56 ++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/components/Hero.tsx b/components/Hero.tsx index 19c91e2..15e8b3f 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -1,16 +1,24 @@ -import { FC } from "react"; -import styled from "styled-components"; -import Typing from "react-typing-animation"; +import { FC, useContext } from 'react'; +import { DarkModeContext } from '../components/DarkMode'; +import styled from 'styled-components'; +import Image from 'next/image'; +import Typing from 'react-typing-animation'; const Wrapper = styled.div` min-height: 45vh; display: grid; + grid-template-columns: repeat(2, 1fr); align-items: center; height: auto; text-align: left; @media (max-width: 768px) { min-height: 65vh; + grid-template-columns: auto; + + .illustration { + display: none; + } } h2 { @@ -25,37 +33,39 @@ const Wrapper = styled.div` .green { color: #73d26b; } - - .orange { - color: #d6a356; - } - - .red { - color: #d75050; - } `; const Hero: FC = () => { + const { dark } = useContext(DarkModeContext); + return ( - -

Hi

+ +

Hi, I am Hazem

I Like Building Things

-

- Software Developer ✔️check +

+ Software Developer ✔️check

-

- Designer 🛑 - error: need more practise and feedback +

+ Designer ✔️ + check

-

- Hard Working ⚠️ - warning: not always the case +

+ Hard Working ✔️ + check

-

- Life Long Learner ✔️check +

+ Life Long Learner ✔️check

+
+ +
); };