From 93d12797ea3c92264d3df2a20c8feb2d0bdb2a04 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Mon, 2 Nov 2020 13:42:38 +0530 Subject: [PATCH] [refactor] Signed-off-by: Muthu Kumar --- src/components/Heading.js | 13 +++++++++++++ src/pages/Home.js | 25 +++++-------------------- src/pages/Projects.js | 4 ++-- 3 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 src/components/Heading.js diff --git a/src/components/Heading.js b/src/components/Heading.js new file mode 100644 index 0000000..a575b6d --- /dev/null +++ b/src/components/Heading.js @@ -0,0 +1,13 @@ +import { css } from "emotion"; + +const Heading = ({ children, ...props }) => ( +

+ {children} +

+); + +export default Heading; diff --git a/src/pages/Home.js b/src/pages/Home.js index 4232b2d..877ccef 100644 --- a/src/pages/Home.js +++ b/src/pages/Home.js @@ -1,7 +1,8 @@ import { css } from "emotion"; import Container from "../components/Container"; +import Heading from "../components/Heading"; -const Em = props => ( +const Dashed = props => ( ( function Home() { return ( -

- MKRhere -

+ MKRhere

- Web home of designer, developer, and architect{" "} - - Muthu Kumar. - + Web home of designer, developer, and{" "} + architect Muthu Kumar.

); diff --git a/src/pages/Projects.js b/src/pages/Projects.js index c89b4fd..3494635 100644 --- a/src/pages/Projects.js +++ b/src/pages/Projects.js @@ -46,7 +46,7 @@ const exp = [ }, ]; -const ExpUnit = ({ title, url, description, cat, tags }) => { +const ProjectUnit = ({ title, url, description, cat, tags }) => { return (
{exp.map(unit => ( - + ))}