From bc04ed2b471980b2072c94fcc652ba821d80584f Mon Sep 17 00:00:00 2001 From: Naushad Alam <64242470+naushad2007@users.noreply.github.com> Date: Sun, 21 Nov 2021 23:03:09 +0530 Subject: [PATCH] Create Blog.js --- src/components/Blog.js | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/components/Blog.js diff --git a/src/components/Blog.js b/src/components/Blog.js new file mode 100644 index 0000000..edd582d --- /dev/null +++ b/src/components/Blog.js @@ -0,0 +1,60 @@ +import React from 'react' + +export default function About(props) { + + // const [myStyle, setMyStyle] = useState({ + // color: 'black', + // backgroundColor: 'white' + // }) + let myStyle = { + color: props.mode ==='dark'?'white':'#042743', + backgroundColor: props.mode ==='dark'?'rgb(36 74 104)':'white', + } + + return ( +