From 1a6551e018e52296ade0e9684cc890b57c4de7fb Mon Sep 17 00:00:00 2001 From: thapakazi Date: Sat, 14 May 2022 16:32:39 +0545 Subject: [PATCH] lame - bootcamp page --- src/App.js | 30 ++++++++++++++++++-------- src/Components/Bootcamp.jsx | 40 +++++++++++++++++++++++++++++++++++ src/Components/Nav/Navbar.jsx | 8 +++++++ 3 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 src/Components/Bootcamp.jsx diff --git a/src/App.js b/src/App.js index 88c36bb..900b5bd 100644 --- a/src/App.js +++ b/src/App.js @@ -1,22 +1,34 @@ import "./App.css"; import Navbar from "./Components/Nav/Navbar"; import ContentBlock from "./Components/Contents/ContentBlock"; +import Bootcamp from "./Components/Bootcamp"; import metaData from "./Constants/meta.json"; function App() { + const showBootcamp = () => { + if (window.location.pathname === "/bootcamp") { + return + } + } + const showContent = () => { + if (window.location.pathname === "/") { + return ( + Object.keys(metaData).map((title) => + + ) + ) + } + } return (
- { - Object.keys(metaData).map((title) => - - ) - } + {showContent()} + {showBootcamp()}
); diff --git a/src/Components/Bootcamp.jsx b/src/Components/Bootcamp.jsx new file mode 100644 index 0000000..45e1035 --- /dev/null +++ b/src/Components/Bootcamp.jsx @@ -0,0 +1,40 @@ +import { makeStyles } from "@material-ui/core/styles"; + +const useStyles = makeStyles({ + pContent: { + paddingLeft: "0.7rem", + textAlign: "justify", + }, + bulletRow: { + display: "flex", + justifyContent: "flex-start", + alignItems: "center", + }, + bulletIcon: { + height: "0.5rem", + paddingRight: "0.5rem", + }, +}); + +const BootcampBlock = ({ title, content }) => { + const styles = useStyles(); + return ( + <> +
DevOps Bootcamp 2022
+ span: 2-3 months +
+ sync: Weekly meet certain hours, 1 week sprint(plan) +
+ quota: 3-4 selection +
+ incentive: paid, enroll and earn +
+ misc: + - More hands on +
+ contact: drop your cv to bootcamp@cloudrickshaw.com and some lines on why you want to do this + + ); +}; + +export default BootcampBlock; diff --git a/src/Components/Nav/Navbar.jsx b/src/Components/Nav/Navbar.jsx index dd69eef..bc9a523 100644 --- a/src/Components/Nav/Navbar.jsx +++ b/src/Components/Nav/Navbar.jsx @@ -39,6 +39,9 @@ const Navbar = () => { const redirectCalendly = () => { window.open("https://calendly.com/cloudrickshaw"); }; + const renderBootcamp = () => { + window.open("/bootcamp"); + } const styles = useStyles(); return ( <> @@ -55,6 +58,11 @@ const Navbar = () => { Book an Appointment +
+ +