Skip to content

Commit

Permalink
Fix Logo Position, enable BuyProduct Btn
Browse files Browse the repository at this point in the history
Fix #123
  • Loading branch information
AdhamHaisami committed Apr 21, 2021
1 parent 5baf0e9 commit 57d15dd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
6 changes: 3 additions & 3 deletions client/src/component/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ const Header = () => {
(role === 'guest' ? (
<>
<Button
className={classes.logout}
className={`${classes.logout} ${classes.rightBtn}`}
variant="outlined"
onClick={() => handleMenuClick('/signin')}
>
Log In
</Button>
<Button
className={classes.signup}
className={`${classes.signup} ${classes.rightBtn}`}
variant="contained"
onClick={() => handleMenuClick('/signup')}
>
Expand Down Expand Up @@ -130,7 +130,7 @@ const Header = () => {
<AccountCircle />
</IconButton>
<Button
className={classes.logout}
className={classes.rightBtn}
variant="outlined"
onClick={() => logOutClick()}
>
Expand Down
19 changes: 15 additions & 4 deletions client/src/component/header/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import { makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
// flexGrow: 1,
[theme.breakpoints.up('sm')]: {
marginTop: '5px',
},
width: '90%',
},
header: {
[theme.breakpoints.up('sm')]: {
flexGrow: 1,
// flexGrow: 1,
},
display: 'flex',
flexDirection: 'row',
Expand All @@ -18,6 +19,7 @@ const useStyles = makeStyles((theme) => ({
width: '100%',
},
title: {
// flexGrow: 1,
display: 'block',
fontSize: '2em',
color: '#fff',
Expand All @@ -34,6 +36,16 @@ const useStyles = makeStyles((theme) => ({
},
},
headerLeftSide: {
// flexGrow: 1,
justifyContent: 'center',
},
headerRightSide: {
// flexGrow: 1,
// justifyContent: 'flex-end',
justifyContent: 'space-between',
},
RightSideElements: {
width: 'auto',
justifyContent: 'space-between',
},

Expand All @@ -50,15 +62,14 @@ const useStyles = makeStyles((theme) => ({
backgroundColor: '#0e1717',
},
signup: {
marginLeft: '1em',
color: '#fff',
'&:hover': {
color: 'f8f8ff',
transform: 'scale(1.1)',
boxShadow: '#888888',
},
},
logout: {
rightBtn: {
marginLeft: '1em',
},
logoutMobile: {
Expand Down
3 changes: 2 additions & 1 deletion client/src/pages/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Header,
} from '../../component';

import { BLOGS, BOOK } from '../../utils/router.constant';
import { BLOGS, BOOK, PRODUCTS } from '../../utils/router.constant';

import useStyles from './style';

Expand Down Expand Up @@ -60,6 +60,7 @@ const Home = () => {
<ButtonComponent
variant="contained"
className={`${classes.button} ${classes.buyNowBtn}`}
onClick={() => history.push(PRODUCTS)}
>
BuyProduct
</ButtonComponent>
Expand Down

0 comments on commit 57d15dd

Please sign in to comment.