From faea222f02665dacc46a5db2aa022d629e32d457 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 6 Aug 2018 23:13:22 +0430 Subject: [PATCH] commit1 --- client/src/App.js | 134 +------------------------- client/src/components/HomeNav.js | 116 ++++++++++++++++++++++ client/src/components/MarketingNav.js | 65 +++++++++++++ client/src/index.css | 5 + public/img/dtube.png | Bin 0 -> 297 bytes public/img/steemit.png | Bin 0 -> 362 bytes 6 files changed, 191 insertions(+), 129 deletions(-) create mode 100644 client/src/components/HomeNav.js create mode 100644 client/src/components/MarketingNav.js create mode 100644 public/img/dtube.png create mode 100644 public/img/steemit.png diff --git a/client/src/App.js b/client/src/App.js index e3da715..558ca91 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,22 +1,9 @@ import React from "react"; -import { - Navbar, - NavbarNav, - NavbarToggler, - Collapse, - NavItem, - Footer, - NavLink, - Row, - Col, - Container, - Modal, - ModalBody, - ModalHeader -} from "mdbreact"; +import { Footer, Row, Col, Modal, ModalBody, ModalHeader } from "mdbreact"; import { BrowserRouter as Router } from "react-router-dom"; -import { Link, Events, animateScroll as scroll, scrollSpy } from "react-scroll"; - +import { Events, animateScroll as scroll, scrollSpy } from "react-scroll"; +import HomeNav from "./components/HomeNav"; +import MarketingNav from "./components/MarketingNav"; import "./index.css"; import "./static/css/palmpay.css"; @@ -98,118 +85,7 @@ class App extends React.Component { return ( - {!currentPath.includes("marketing") ? ( - - - - ) : ( - - - - )} + {!currentPath.includes("marketing") ? : } {collapsed && overlay} diff --git a/client/src/components/HomeNav.js b/client/src/components/HomeNav.js new file mode 100644 index 0000000..4408e99 --- /dev/null +++ b/client/src/components/HomeNav.js @@ -0,0 +1,116 @@ +import { + Navbar, + NavbarNav, + NavbarToggler, + Collapse, + NavItem, + NavLink, + Container +} from "mdbreact"; +import { Link } from "react-scroll"; +import React from "react"; + +class HomeNav extends React.Component { + constructor(props) { + super(props); + this.state = { showmenu: true }; + this.state = { + collapse: false + }; + this.onClick = this.onClick.bind(this); + this.handleNavbarClick = this.handleNavbarClick.bind(this); + } + + onClick() { + this.setState({ + collapse: !this.state.collapse + }); + } + + handleNavbarClick() { + this.setState({ + collapse: false + }); + } + + render() { + return ( + + + + ); + } +} + +export default HomeNav; diff --git a/client/src/components/MarketingNav.js b/client/src/components/MarketingNav.js new file mode 100644 index 0000000..74592aa --- /dev/null +++ b/client/src/components/MarketingNav.js @@ -0,0 +1,65 @@ +import { + Navbar, + NavbarNav, + NavbarToggler, + Collapse, + Container +} from "mdbreact"; +//import { Link } from "react-scroll"; +import React from "react"; + +class MarketingNav extends React.Component { + constructor(props) { + super(props); + this.state = { showmenu: true }; + this.state = { + collapse: false + }; + this.onClick = this.onClick.bind(this); + this.handleNavbarClick = this.handleNavbarClick.bind(this); + } + + onClick() { + this.setState({ + collapse: !this.state.collapse + }); + } + + handleNavbarClick() { + this.setState({ + collapse: false + }); + } + + render() { + return ( + + + + ); + } +} + +export default MarketingNav; diff --git a/client/src/index.css b/client/src/index.css index 33ea5cd..56acc5d 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -95,3 +95,8 @@ strong.important { #testimonies { padding: 14rem 0 !important; } +@media (min-width: 1200px) { + .menuc { + max-width: 90% !important; + } +} diff --git a/public/img/dtube.png b/public/img/dtube.png new file mode 100644 index 0000000000000000000000000000000000000000..23f2c543418b9d441540d180716bc1d152af7dd2 GIT binary patch literal 297 zcmV+^0oMMBP)FMdmK;N__~Yp_E*N;?aX|^yfeB3Wmc7uH;*!kJ3FJXp ztB2P@54;$o-Zk1b<1vD}X(r8yxmM~)I=7nCM!T?Uo@YFNjaJ3QE~$-{&!S+>K@`j0 v(13|d&xC{hhxXk%BrWBqAkrk&2(RZ0y0Qnc=>Q*w00000NkvXXu0mjf{dAbK literal 0 HcmV?d00001 diff --git a/public/img/steemit.png b/public/img/steemit.png new file mode 100644 index 0000000000000000000000000000000000000000..cf6c231c97652dd63553bc9318c1c9f071936e78 GIT binary patch literal 362 zcmV-w0hRuVP)Hs%ciELr>CdM$;r*l&84NK%*@Q9qN2*m%E-vb|NsB``ug_v_U`WP=H}+t*Vp6Y zH zKzm8l0002FNkl(f4#6 zKczR;H_6zVLE3~O#cYFCrk*^8XoN=kV=GEApTOBNm_KURPFet(+qtU-(gn7FSQ(GaSMZ*mAC}R zhvNw5U3%54@;K5|TXfH