-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/Navbar' into development
- Loading branch information
Showing
124 changed files
with
11,352 additions
and
43,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"@babel/preset-env", | ||
["@babel/preset-react", {"runtime": "automatic"}], | ||
], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>JSDoc: Source: Navbar/HomeList/HomeList.jsx</title> | ||
|
||
<script src="scripts/prettify/prettify.js"> </script> | ||
<script src="scripts/prettify/lang-css.js"> </script> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> | ||
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="main"> | ||
|
||
<h1 class="page-title">Source: Navbar/HomeList/HomeList.jsx</h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<section> | ||
<article> | ||
<pre class="prettyprint source linenums"><code>import HomeIcon from '@mui/icons-material/Home'; | ||
import ContactlessOutlinedIcon from '@mui/icons-material/ContactlessOutlined'; | ||
import { | ||
List, ListItemButton, ListItemIcon, ListItemText, | ||
Collapse, ListSubheader, | ||
} from '@mui/material'; | ||
import ExpandMore from '@mui/icons-material/ExpandMore'; | ||
import * as React from 'react'; | ||
import OutboundOutlinedIcon from '@mui/icons-material/OutboundOutlined'; | ||
import Avatar from '@mui/material/Avatar'; | ||
import AddIcon from '@mui/icons-material/Add'; | ||
import NotificationsNoneIcon from '@mui/icons-material/NotificationsNone'; | ||
import StyledList from './styles'; | ||
import Reddit from '../assests/Reddit.svg'; | ||
|
||
/** | ||
* | ||
* @returns {React.Component} left list in navbar in logged in mode | ||
*/ | ||
function HomeList() { | ||
const [OpenHomeList, setOpenHomeList] = React.useState(0); | ||
const handleClickHomeList = () => { | ||
setOpenHomeList(!OpenHomeList); | ||
}; | ||
const FeedsList = [ | ||
{ icon: <HomeIcon />, label: 'home' }, | ||
{ icon: <OutboundOutlinedIcon />, label: 'popular' }, | ||
{ icon: <ContactlessOutlinedIcon />, label: 'all' }, | ||
]; | ||
const OthersList = [ | ||
{ icon: <Avatar src={Reddit} />, label: 'user settings' }, | ||
{ icon: <Avatar src={Reddit} />, label: 'messages' }, | ||
{ icon: <AddIcon sx={{ fontSize: 30 }} />, label: 'create post' }, | ||
{ icon: <ContactlessOutlinedIcon />, label: 'top communities' }, | ||
{ icon: <NotificationsNoneIcon />, label: 'notifications' }, | ||
]; | ||
return ( | ||
<StyledList> | ||
<ListItemButton onClick={handleClickHomeList}> | ||
<ListItemIcon> | ||
<HomeIcon /> | ||
</ListItemIcon> | ||
<ListItemText primary="Home" sx={{ color: 'black', paddingLeft: '5px' }} /> | ||
<ExpandMore sx={{ color: '#757575', fontSize: 20 }} /> | ||
</ListItemButton> | ||
<Collapse in={Boolean(OpenHomeList)} timeout="auto" unmountOnExit sx={{ position: 'absolute', width: '270px', left: '0px' }}> | ||
<List component="div" disablePadding subheader={<ListSubheader>feeds</ListSubheader>}> | ||
{FeedsList.map((items) => ( | ||
<ListItemButton> | ||
<ListItemIcon> | ||
{items.icon} | ||
</ListItemIcon> | ||
<ListItemText primary={items.label} /> | ||
</ListItemButton> | ||
))} | ||
</List> | ||
<List component="div" disablePadding subheader={<ListSubheader>others</ListSubheader>}> | ||
{ | ||
OthersList.map((items) => ( | ||
<ListItemButton> | ||
<ListItemIcon> | ||
{items.icon} | ||
</ListItemIcon> | ||
<ListItemText primary={items.label} /> | ||
</ListItemButton> | ||
)) | ||
} | ||
</List> | ||
</Collapse> | ||
</StyledList> | ||
); | ||
} | ||
|
||
export default HomeList; | ||
</code></pre> | ||
</article> | ||
</section> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<nav> | ||
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#DrawerBottom">DrawerBottom</a></li><li><a href="global.html#ForgetPass">ForgetPass</a></li><li><a href="global.html#ForgetUser">ForgetUser</a></li><li><a href="global.html#HomeList">HomeList</a></li><li><a href="global.html#LogIn">LogIn</a></li><li><a href="global.html#Navbar">Navbar</a></li><li><a href="global.html#SNavbar">SNavbar</a></li><li><a href="global.html#SignUp">SignUp</a></li><li><a href="global.html#SignUpEmail">SignUpEmail</a></li><li><a href="global.html#ThirdPartyButton">ThirdPartyButton</a></li><li><a href="global.html#ThirdPartyContainer">ThirdPartyContainer</a></li><li><a href="global.html#UserList">UserList</a></li><li><a href="global.html#UserNamePasswordForm">UserNamePasswordForm</a></li><li><a href="global.html#logoIcon">logoIcon</a></li><li><a href="global.html#navIcons">navIcons</a></li><li><a href="global.html#responseFacebook">responseFacebook</a></li><li><a href="global.html#responseGoogleSuccess">responseGoogleSuccess</a></li><li><a href="global.html#searchButton">searchButton</a></li></ul> | ||
</nav> | ||
|
||
<br class="clear"> | ||
|
||
<footer> | ||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Fri Nov 11 2022 11:40:23 GMT+0200 (Eastern European Standard Time) | ||
</footer> | ||
|
||
<script> prettyPrint(); </script> | ||
<script src="scripts/linenumber.js"> </script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>JSDoc: Source: Navbar/Logo/logoIcon.jsx</title> | ||
|
||
<script src="scripts/prettify/prettify.js"> </script> | ||
<script src="scripts/prettify/lang-css.js"> </script> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> | ||
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="main"> | ||
|
||
<h1 class="page-title">Source: Navbar/Logo/logoIcon.jsx</h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<section> | ||
<article> | ||
<pre class="prettyprint source linenums"><code>import { Box } from '@mui/material'; | ||
import LogoText from '../assests/LogoText.svg'; | ||
import Logo from '../assests/Logo.svg'; | ||
|
||
/** | ||
* Both of the logo and word are hyperlinks to the homepage. | ||
* @returns {React.Component} logo and nonlegit word beside it. | ||
*/ | ||
function logoIcon() { | ||
return ( | ||
<a href="wwww.reddit.com"> | ||
<Box sx={{ display: 'flex' }}> | ||
<Box sx={{ padding: '8px 8px 8px 0px', display: 'flex', justifyContent: 'center' }}> | ||
<img alt="" src={Logo} width={32} height={32} /> | ||
</Box> | ||
<Box sx={{ display: { xs: 'none', lg: 'flex' }, alignItems: 'center', paddingBottom: '4px' }}> | ||
<img alt="" src={LogoText} width={57} height={20} /> | ||
</Box> | ||
</Box> | ||
</a> | ||
); | ||
} | ||
|
||
export default logoIcon; | ||
</code></pre> | ||
</article> | ||
</section> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<nav> | ||
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#DrawerBottom">DrawerBottom</a></li><li><a href="global.html#ForgetPass">ForgetPass</a></li><li><a href="global.html#ForgetUser">ForgetUser</a></li><li><a href="global.html#HomeList">HomeList</a></li><li><a href="global.html#LogIn">LogIn</a></li><li><a href="global.html#Navbar">Navbar</a></li><li><a href="global.html#SNavbar">SNavbar</a></li><li><a href="global.html#SignUp">SignUp</a></li><li><a href="global.html#SignUpEmail">SignUpEmail</a></li><li><a href="global.html#ThirdPartyButton">ThirdPartyButton</a></li><li><a href="global.html#ThirdPartyContainer">ThirdPartyContainer</a></li><li><a href="global.html#UserList">UserList</a></li><li><a href="global.html#UserNamePasswordForm">UserNamePasswordForm</a></li><li><a href="global.html#logoIcon">logoIcon</a></li><li><a href="global.html#navIcons">navIcons</a></li><li><a href="global.html#responseFacebook">responseFacebook</a></li><li><a href="global.html#responseGoogleSuccess">responseGoogleSuccess</a></li><li><a href="global.html#searchButton">searchButton</a></li></ul> | ||
</nav> | ||
|
||
<br class="clear"> | ||
|
||
<footer> | ||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Fri Nov 11 2022 11:40:23 GMT+0200 (Eastern European Standard Time) | ||
</footer> | ||
|
||
<script> prettyPrint(); </script> | ||
<script src="scripts/linenumber.js"> </script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>JSDoc: Source: Navbar/NavIcons/NavIcons.jsx</title> | ||
|
||
<script src="scripts/prettify/prettify.js"> </script> | ||
<script src="scripts/prettify/lang-css.js"> </script> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> | ||
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="main"> | ||
|
||
<h1 class="page-title">Source: Navbar/NavIcons/NavIcons.jsx</h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<section> | ||
<article> | ||
<pre class="prettyprint source linenums"><code>import AddIcon from '@mui/icons-material/Add'; | ||
import Badge from '@mui/material/Badge'; | ||
import { grey } from '@mui/material/colors'; | ||
import OutboundOutlinedIcon from '@mui/icons-material/OutboundOutlined'; | ||
import NotificationsNoneIcon from '@mui/icons-material/NotificationsNone'; | ||
import { IconButton, Zoom, Box } from '@mui/material'; | ||
import StyledTooltip from './styles'; | ||
|
||
/** | ||
* | ||
* @returns {React.Component} the three icons in the navbar (Popular - notifications - create post) | ||
*/ | ||
function navIcons() { | ||
return ( | ||
<Box sx={{ display: { xs: 'none', sm: 'flex' }, flexDirection: 'row' }}> | ||
<StyledTooltip | ||
title="Popular" | ||
TransitionComponent={Zoom} | ||
enterDelay={700} | ||
enterNextDelay={700} | ||
> | ||
<IconButton | ||
size="large" | ||
aria-label="show 17 new notifications" | ||
color="inherit" | ||
sx={{ '&:hover': { backgroundColor: 'transparent' } }} | ||
> | ||
<OutboundOutlinedIcon sx={{ color: grey[600], fontSize: 25 }} /> | ||
</IconButton> | ||
</StyledTooltip> | ||
|
||
<StyledTooltip | ||
title="Notifications" | ||
TransitionComponent={Zoom} | ||
enterDelay={700} | ||
enterNextDelay={700} | ||
> | ||
<IconButton | ||
size="large" | ||
aria-label="show 17 new notifications" | ||
color="inherit" | ||
sx={{ '&:hover': { backgroundColor: 'transparent' } }} | ||
> | ||
<Badge badgeContent={17} color="error"> | ||
<NotificationsNoneIcon sx={{ color: grey[600], fontSize: 25 }} /> | ||
</Badge> | ||
</IconButton> | ||
</StyledTooltip> | ||
|
||
<StyledTooltip | ||
title="Add Post" | ||
TransitionComponent={Zoom} | ||
enterDelay={700} | ||
enterNextDelay={700} | ||
> | ||
<IconButton | ||
sx={{ '&:hover': { backgroundColor: 'transparent' } }} | ||
> | ||
<AddIcon sx={{ fontSize: 30 }} /> | ||
</IconButton> | ||
</StyledTooltip> | ||
</Box> | ||
); | ||
} | ||
|
||
export default navIcons; | ||
</code></pre> | ||
</article> | ||
</section> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<nav> | ||
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#DrawerBottom">DrawerBottom</a></li><li><a href="global.html#ForgetPass">ForgetPass</a></li><li><a href="global.html#ForgetUser">ForgetUser</a></li><li><a href="global.html#HomeList">HomeList</a></li><li><a href="global.html#LogIn">LogIn</a></li><li><a href="global.html#Navbar">Navbar</a></li><li><a href="global.html#SNavbar">SNavbar</a></li><li><a href="global.html#SignUp">SignUp</a></li><li><a href="global.html#SignUpEmail">SignUpEmail</a></li><li><a href="global.html#ThirdPartyButton">ThirdPartyButton</a></li><li><a href="global.html#ThirdPartyContainer">ThirdPartyContainer</a></li><li><a href="global.html#UserList">UserList</a></li><li><a href="global.html#UserNamePasswordForm">UserNamePasswordForm</a></li><li><a href="global.html#logoIcon">logoIcon</a></li><li><a href="global.html#navIcons">navIcons</a></li><li><a href="global.html#responseFacebook">responseFacebook</a></li><li><a href="global.html#responseGoogleSuccess">responseGoogleSuccess</a></li><li><a href="global.html#searchButton">searchButton</a></li></ul> | ||
</nav> | ||
|
||
<br class="clear"> | ||
|
||
<footer> | ||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Fri Nov 11 2022 11:40:23 GMT+0200 (Eastern European Standard Time) | ||
</footer> | ||
|
||
<script> prettyPrint(); </script> | ||
<script src="scripts/linenumber.js"> </script> | ||
</body> | ||
</html> |
Oops, something went wrong.