Skip to content

Feature3 #460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react"

const ExamplePage = () => {
return (
return (<>
<div
style={{
position: "absolute",
Expand All @@ -15,6 +14,7 @@ const ExamplePage = () => {
Start editing the 'pages/index.js' file to import and show component
</h3>
</div>
</>
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,44 @@ const Complain = () => {
setInputDetails({ issue: "", message: "", name: "" })
}
return (
<Grid container direction="column" classes={{ root: classes.container }}>
<Grid item>
<Grid container direction="column" classes={{ root: classes.container }}

>
<Grid item style={{
margin:"auto"
}}>
<Typography variant="h4">Submit a complaint</Typography>
</Grid>

<Grid
item
container
direction="row"
justifyContent="space-between"
classes={{ root: classes.wrapper }}
style={{
margin:"auto"
}}
>
<Grid item>
<Grid
container
direction="column"
alignItems="center"
classes={{ root: classes.space }}
>
<Grid item>
<Typography variant="h4">What is about?</Typography>
style={{
margin:"auto"
}}>
<Grid item style={{
margin:"auto"
}}>
<Typography variant="h4" style={{
margin:"auto"
}}>What is about?</Typography>
</Grid>
<Grid item>
<Grid item style={{
margin:"auto"
}}>
<TextField
value={inputDetails.issue}
placeholder="Eg: payment issue"
Expand Down Expand Up @@ -90,7 +106,7 @@ const Complain = () => {
Username related to the complaint(optional)
</Typography>
</Grid>
<Grid item>
<Grid item >
<TextField
value={inputDetails.name}
placeholder="Eg: Type name here"
Expand All @@ -108,8 +124,12 @@ const Complain = () => {
</Grid>
</Grid>
</Grid>
<Grid item>
<Button classes={{ root: classes.btnStyle }} onClick={btnHandler}>
<Grid item style={{
margin:"auto"
}}>
<Button classes={{ root: classes.btnStyle }} onClick={btnHandler} style={{
margin:"auto"
}}>
<Typography variant="h3">Submit</Typography>
</Button>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Styles = makeStyles(theme => ({
borderRadius: 10,
backgroundColor: theme.palette.primary.light,
textTransform: "none",
"&:hover": { backgroundColor: theme.palette.primary.light },
"&:hover": { backgroundColor: theme.palette.primary.main },
},
"@global": {
".MuiInput-underline:before, .MuiInput-underline:hover:not(.Mui-disabled):before": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ import Styles from "./styles"
import { useMediaQuery } from "@material-ui/core"

const UserDetail = () => {

const [isHovering, setIsHovering] = useState(false);

const handleMouseEnter = () => {
setIsHovering(true);
};

const handleMouseLeave = () => {
setIsHovering(false);
};

const classes = Styles()
const matchesMD = useMediaQuery(theme => theme.breakpoints.down("sm"))
const [inputValues, setInputValues] = useState({
Expand Down Expand Up @@ -97,7 +108,13 @@ const UserDetail = () => {
</Grid>
<Grid item container justifyContent="center">
<Grid item>
<Button onClick={() => {}} classes={{ root: classes.logoutBtnStyle }}>
<Button onClick={() => {}} classes={{ root: classes.logoutBtnStyle }}
style={{
backgroundColor: isHovering ? 'red' : '',
}}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
<Typography variant="h6">Log out</Typography>
</Button>
</Grid>
Expand Down