From 74041fbff223eeef260798c806afdb418177cce9 Mon Sep 17 00:00:00 2001 From: "chinmayanand.pattar" <chinmayanand.pattar@niveussolutions.com> Date: Mon, 10 Jan 2022 15:27:40 +0530 Subject: [PATCH] MenuItem --- public/index.html | 1 + src/components/Menu/MenuItem.js | 11 +++++++++++ src/components/Menu/MenuItem.scss | 12 ++++++++++++ src/containers/Login/index.jsx | 5 ++++- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/components/Menu/MenuItem.js create mode 100644 src/components/Menu/MenuItem.scss diff --git a/public/index.html b/public/index.html index 6915024..1db651d 100644 --- a/public/index.html +++ b/public/index.html @@ -18,6 +18,7 @@ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <!-- Fonts --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Notice the use of %PUBLIC_URL% in the tags above. It will be replaced with the URL of the `public` folder during the build. diff --git a/src/components/Menu/MenuItem.js b/src/components/Menu/MenuItem.js new file mode 100644 index 0000000..130a5d5 --- /dev/null +++ b/src/components/Menu/MenuItem.js @@ -0,0 +1,11 @@ +import React from 'react' +import './MenuItem.scss' + +export default function MenuItem(props) { + return ( + <div className='menuBox'> + <i className={props.icon} style={props.style} aria-hidden="true"></i> + <a href=''>{props.title}</a> + </div> + ) +} diff --git a/src/components/Menu/MenuItem.scss b/src/components/Menu/MenuItem.scss new file mode 100644 index 0000000..d7ed772 --- /dev/null +++ b/src/components/Menu/MenuItem.scss @@ -0,0 +1,12 @@ +a{ + text-decoration: none; + color: gray; + padding: 20px; +} +a:hover{ + text-decoration: none; + color: black; +} +.menuBox{ + padding: 20px; +} \ No newline at end of file diff --git a/src/containers/Login/index.jsx b/src/containers/Login/index.jsx index c9f3883..fb13e5f 100644 --- a/src/containers/Login/index.jsx +++ b/src/containers/Login/index.jsx @@ -1,11 +1,14 @@ import React from "react"; import PropTypes from "prop-types"; import Button from "components/Button"; +import MenuItem from "components/Menu/MenuItem"; function Login(props) { - return <div>login</div>; + return <div>login + + </div>; -- GitLab