Skip to content
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

Customer #31

Open
elicharlese opened this issue Feb 6, 2023 · 0 comments
Open

Customer #31

elicharlese opened this issue Feb 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@elicharlese
Copy link
Member

elicharlese commented Feb 6, 2023

import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import {
  Card,
  CardContent,
  Grid,
  Typography,
  Button,
  Divider,
} from '@material-ui/core';

const useStyles = makeStyles((theme) => ({
  root: {
    display: 'flex',
    justifyContent: 'center',
    alignItems: 'center',
    height: '100vh',
    backgroundColor: theme.palette.background.default,
  },
  card: {
    minWidth: 275,
    backgroundColor: theme.palette.background.paper,
    boxShadow: '0px 3px 3px -2px rgba(0,0,0,0.2)',
    borderRadius: 10,
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
    color: theme.palette.text.primary,
    textAlign: 'center',
  },
  divider: {
    margin: theme.spacing(2, 0),
  },
  content: {
    display: 'flex',
    flexDirection: 'column',
    alignItems: 'center',
    justifyContent: 'center',
    padding: theme.spacing(3),
  },
  button: {
    marginTop: theme.spacing(3),
    backgroundColor: theme.palette.secondary.main,
    color: theme.palette.secondary.contrastText,
    '&:hover': {
      backgroundColor: theme.palette.secondary.dark,
    },
  },
}));

const CustomerAccount = () => {
  const classes = useStyles();

  return (
    <div className={classes.root}>
      <Card className={classes.card}>
        <CardContent className={classes.content}>
          <Typography className={classes.title} gutterBottom>
            My Account
          </Typography>
          <Divider className={classes.divider} />
          <Grid container spacing={2}>
            <Grid item xs={12} sm={6}>
              <Typography>
                Name: <strong>John Doe</strong>
              </Typography>
            </Grid>
            <Grid item xs={12} sm={6}>
              <Typography>
                Email: <strong>johndoe@example.com</strong>
              </Typography>
            </Grid>
            <Grid item xs={12} sm={6}>
              <Typography>
                Phone: <strong>+1 123 456 7890</strong>
              </Typography>
            </Grid>
            <Grid item xs={12} sm={6}>
              <Typography>
                Address: <strong>123 Main St, Anytown, USA</strong>
              </Typography>
            </Grid>
          </Grid>
          <Button
            className={classes.button}
            variant="contained"
            disableElevation
          >
            Edit Account Information
          </Button>
        </CardContent>
      </Card>
    </div>
  );
};

export default CustomerAccount;

This component displays the customer's account information, including name, email, phone, and address. The customer can also edit their account information by clicking the "Edit Account Information" button. The component uses Material-UI's Card, CardContent, Typography, Grid, Button, and Divider components to create a clean and modern user interface.

@elicharlese elicharlese added the bug Something isn't working label Feb 6, 2023
@elicharlese elicharlese added this to the Front-End base for all dapps in Framer milestone Feb 6, 2023
@elicharlese elicharlese self-assigned this Feb 6, 2023
@elicharlese elicharlese removed this from the Front-End base for all dapps in Framer milestone Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant