Skip to content

Commit

Permalink
frontend part only
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi008 committed Oct 11, 2020
1 parent 1e6eee6 commit 51bd4f1
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 81 deletions.
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@
"private": true,
"dependencies": {
"@material-ui/core": "^4.11.0",
<<<<<<< HEAD
"axios": "^0.20.0",
=======
"@material-ui/icons": "^4.9.1",
>>>>>>> b385ae5cb520e1453ae369a4eab7b9a1bdd3e553
"classnames": "^2.2.6",
"lodash": "^4.17.20",
"node-sass": "^4.14.1",
"package.json": "^2.0.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-ga": "^2.7.0",
"react-icons": "^3.11.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Components1/AddComp/AddComp.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class AddComp extends React.Component {
let { courses } = this.state;
return (
<div>
<h1 style={{ marginRight: "50%", whiteSpace: "nowrap" }}>
<h1 style={{ marginRight: "50%", whiteSpace: "nowrap", color: "#000" }}>
Add a Roadmap
</h1>
<div className="add-app">
Expand Down
10 changes: 5 additions & 5 deletions src/Components1/PersonBar/PersonBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Card from "../Card/Card";
import CircleUnchecked from "@material-ui/icons/RadioButtonUnchecked";
import CheckCircleOutlineOutlinedIcon from "@material-ui/icons/CheckCircleOutlineOutlined";
import Checkbox from "@material-ui/core/Checkbox";
const drawerWidth = 220;
const drawerWidth = 230;

const useStyles = makeStyles((theme) => ({
root: {
Expand Down Expand Up @@ -95,14 +95,14 @@ function ResponsiveDrawer(props, { data }) {

{/* <img src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="Avatar" class={styles.avatar} /> */}
<div className={styles.div1}>
<h2
<h3
style={{
marginTop: "25%",
marginLeft: "5%",
marginLeft: "5%", color: "#000"
}}
>
Hello User!
</h2>
</h3>
<div className={styles.container}>
<div className={styles.circle}>
<img src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" />
Expand Down Expand Up @@ -193,7 +193,7 @@ function ResponsiveDrawer(props, { data }) {
borderTop: "1px solid #F6F7F8",
}}
></hr>
<h2 style={{ marginLeft: "5%" }}>Keep Growing !!🐱‍🏍</h2>
<h3 style={{ marginLeft: "5%", color: "#000" }}>Keep Growing !!🐱‍🏍</h3>
</div>
);
const container =
Expand Down
8 changes: 4 additions & 4 deletions src/Components1/PersonBarC/PBC.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import CircleUnchecked from "@material-ui/icons/RadioButtonUnchecked";
import CheckCircleOutlineOutlinedIcon from "@material-ui/icons/CheckCircleOutlineOutlined";
import Checkbox from "@material-ui/core/Checkbox";
import "./person.css"
const drawerWidth = 220;
const drawerWidth = 230;

const useStyles = makeStyles((theme) => ({
root: {
Expand Down Expand Up @@ -98,15 +98,15 @@ function ResponsiveDrawer(props, { data }) {

{/* <img src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="Avatar" class={styles.avatar} /> */}
<div className={styles.div1}>
<h2
<h3
style={{
marginTop: "25%",
marginLeft: "5%",
color: "#000"
}}
>
Hello User!
</h2>
</h3>
<div className={styles.container}>
<div className={styles.circle}>
<img src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" />
Expand Down Expand Up @@ -200,7 +200,7 @@ function ResponsiveDrawer(props, { data }) {
color: "#000"
}}
></hr>
<h2 style={{ marginLeft: "5%", color: "#000" }}>Keep Growing !!🐱‍🏍</h2>
<h3 style={{ marginLeft: "5%", color: "#000" }}>Keep Growing !!🐱‍🏍</h3>
</div>
);
const container =
Expand Down
3 changes: 0 additions & 3 deletions src/Components1/PersonBarC/person.css
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
* {
color: black;
}
15 changes: 5 additions & 10 deletions src/Components1/PersonBarP/PersonBarP.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Card from "../ProfileC/ProfileC";
import CircleUnchecked from "@material-ui/icons/RadioButtonUnchecked";
import CheckCircleOutlineOutlinedIcon from "@material-ui/icons/CheckCircleOutlineOutlined";
import Checkbox from "@material-ui/core/Checkbox";
const drawerWidth = 220;
const drawerWidth = 230;

const useStyles = makeStyles((theme) => ({
root: {
Expand Down Expand Up @@ -95,14 +95,15 @@ function ResponsiveDrawer(props, { data }) {

{/* <img src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="Avatar" class={styles.avatar} /> */}
<div className={styles.div1}>
<h2
<h3
style={{
marginTop: "25%",
marginLeft: "5%",
color: "#000"
}}
>
Hello User!
</h2>
</h3>
<div className={styles.container}>
<div className={styles.circle}>
<img src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" />
Expand Down Expand Up @@ -193,17 +194,11 @@ function ResponsiveDrawer(props, { data }) {
borderTop: "1px solid #F6F7F8",
}}
></hr>
<h2 style={{ marginLeft: "5%" }}>Keep Growing !!🐱‍🏍</h2>
<h3 style={{ marginLeft: "5%", color: "#000" }}>Keep Growing !!🐱‍🏍</h3>
</div>
);
const container =
window !== undefined ? () => window().document.body : undefined;
var k = 1;
if (props.data == true && k == 1) {
handleDrawerToggle();
console.log(k);
return;
}

return (
<div className={classes.root}>
Expand Down
2 changes: 1 addition & 1 deletion src/Components1/ProfileC/ProfileC.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import CallMergeIcon from "@material-ui/icons/CallMerge";

const useStyles = makeStyles((theme) => ({
root: {
maxWidth: 290,
maxWidth: 285,
},
media: {
height: 0,
Expand Down
22 changes: 16 additions & 6 deletions src/Components1/SideBar/SideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import ExitToAppIcon from "@material-ui/icons/ExitToApp";
import PeopleIcon from "@material-ui/icons/People";
import Link from "@material-ui/core/Link";
import HomeIcon from "@material-ui/icons/Home";
import { Avatar } from "@material-ui/core";
const drawerWidth = 240;

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -214,14 +215,14 @@ export default function MiniDrawer() {
<ListItemIcon>
<HomeIcon />
</ListItemIcon>
<ListItemText primary="Dashboard" />
<ListItemText primary="Dashboard" style={{ color: "#000" }} />
</ListItem>
</Link>
<ListItem button key="Roadmap">
<ListItemIcon>
<AddIcon onClick={handleCourseOpen} />
</ListItemIcon>
<ListItemText primary="Add Roadmap" />
<ListItemText primary="Add Roadmap" style={{ color: "#000" }} />
</ListItem>
<Link
href="/users"
Expand All @@ -234,7 +235,7 @@ export default function MiniDrawer() {
<ListItemIcon>
<PeopleIcon />
</ListItemIcon>
<ListItemText primary="Users" />
<ListItemText primary="Users" style={{ color: "#000" }} />
</ListItem>
</Link>

Expand All @@ -243,16 +244,25 @@ export default function MiniDrawer() {
) : (
<ListItem button key="Primary">
<ListItemIcon>
<PersonIcon onClick={profileBar} />
<Avatar
onClick={profileBar}
alt="Remy Sharp"
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"
className={classes.small}
style={{
marginLeft: "-10%",
}}
/>

</ListItemIcon>
<ListItemText primary="Profile" />
<ListItemText primary="Profile" style={{ color: "#000" }} />
</ListItem>
)}
<ListItem button key="Logout">
<ListItemIcon>
<ExitToAppIcon />
</ListItemIcon>
<ListItemText primary="Logout" />
<ListItemText primary="Logout" style={{ color: "#000" }} />
</ListItem>
</List>
<Modal
Expand Down
11 changes: 10 additions & 1 deletion src/Components1/SideBar/SideBar2.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import MailIcon from "@material-ui/icons/Mail";
import ResponsiveDrawer from "../PersonBar/PersonBar2";
import PersonIcon from "@material-ui/icons/Person";
import AddCircleIcon from '@material-ui/icons/AddCircle';
import { Avatar } from "@material-ui/core";
const drawerWidth = 240;

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -185,7 +186,15 @@ export default function MiniDrawer() {
) : (
<ListItem button key="Primary" onClick={profileBar}>
<ListItemIcon>
<PersonIcon />
<Avatar

alt="Remy Sharp"
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"
className={classes.small}
style={{
marginLeft: "-10%",
}}
/>
</ListItemIcon>
<ListItemText primary="Profile" />
</ListItem>
Expand Down
22 changes: 16 additions & 6 deletions src/Components1/SideBarC/SideBarC.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import ExitToAppIcon from "@material-ui/icons/ExitToApp";
import Link from "@material-ui/core/Link";
import HomeIcon from "@material-ui/icons/Home";
import PeopleIcon from "@material-ui/icons/People";
import { Avatar } from "@material-ui/core";
const drawerWidth = 240;


Expand Down Expand Up @@ -215,14 +216,14 @@ export default function MiniDrawer() {
<ListItemIcon>
<HomeIcon />
</ListItemIcon>
<ListItemText primary="Dashboard" />
<ListItemText primary="Dashboard" style={{ color: "#000" }} />
</ListItem>
</Link>
<ListItem button key="Roadmap">
<ListItemIcon>
<AddIcon onClick={handleCourseOpen} />
</ListItemIcon>
<ListItemText primary="Add Roadmap" />
<ListItemText primary="Add Roadmap" style={{ color: "#000" }} />
</ListItem>
<Link
href="/users"
Expand All @@ -235,7 +236,7 @@ export default function MiniDrawer() {
<ListItemIcon>
<PeopleIcon />
</ListItemIcon>
<ListItemText primary="Users" />
<ListItemText primary="Users" style={{ color: "#000" }} />
</ListItem>
</Link>

Expand All @@ -244,16 +245,25 @@ export default function MiniDrawer() {
) : (
<ListItem button key="Primary">
<ListItemIcon>
<PersonIcon onClick={profileBar} />

<Avatar
onClick={profileBar}
alt="Remy Sharp"
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"
className={classes.small}
style={{
marginLeft: "-10%",
}}
/>
</ListItemIcon>
<ListItemText primary="Profile" />
<ListItemText primary="Profile" style={{ color: "#000" }} />
</ListItem>
)}
<ListItem button key="Logout">
<ListItemIcon>
<ExitToAppIcon />
</ListItemIcon>
<ListItemText primary="Logout" />
<ListItemText primary="Logout" style={{ color: "#000" }} />
</ListItem>
</List>

Expand Down
Loading

0 comments on commit 51bd4f1

Please sign in to comment.