-
Notifications
You must be signed in to change notification settings - Fork 153
Fix: profile ui improvements #372
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
2e2b676
6af546d
3e8dc3e
08b6bc8
845568d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| import { makeStyles, Grid, Card, CardContent, Typography, Link, Hidden } from "@material-ui/core"; | ||
| import React from "react"; | ||
| import KeyboardArrowRightIcon from "@material-ui/icons/KeyboardArrowRight"; | ||
| import { makeStyles, Grid, Card, CardContent, Typography, Link, Hidden } from "@material-ui/core"; | ||
|
|
||
| function ActivityCard({ props }) { | ||
| const classes = useStyles(); | ||
|
|
@@ -10,9 +11,16 @@ function ActivityCard({ props }) { | |
| <Card className={classes.card}> | ||
| <CardContent className={classes.cardContent}> | ||
| <img src={icon} className={classes.image} /> | ||
| <Typography variant="h6" color="textSecondary" gutterBottom className={classes.title}> | ||
| {title} | ||
| </Typography> | ||
| <div className={classes.titleCont}> | ||
| <Typography variant="h6" color="textSecondary" gutterBottom className={classes.title}> | ||
| {title} | ||
| </Typography> | ||
| <Typography variant="body2" gutterBottom> | ||
| <Link> | ||
| <KeyboardArrowRightIcon style={{ marginLeft: ".05rem" }} /> | ||
| </Link> | ||
| </Typography> | ||
| </div> | ||
|
||
| <Typography variant="h4" className={classes.margin} gutterBottom> | ||
| {subtitle} | ||
| </Typography> | ||
|
|
@@ -21,9 +29,6 @@ function ActivityCard({ props }) { | |
| {description} | ||
| </Typography> | ||
| </Hidden> | ||
| <Typography variant="body2" className={classes.margin} gutterBottom> | ||
| <Link>View</Link> | ||
| </Typography> | ||
| </CardContent> | ||
| </Card> | ||
| </Grid> | ||
|
|
@@ -35,6 +40,12 @@ const useStyles = makeStyles((theme) => ({ | |
| maxWidth: 400, | ||
| boxShadow: "0px 4px 15px rgba(55, 64, 161, 0.25)", | ||
| textAlign: "left", | ||
| [theme.breakpoints.down("sm")]: { | ||
| height: 70, | ||
| }, | ||
| }, | ||
| titleCont: { | ||
| display: "flex", | ||
| }, | ||
| title: { | ||
| textTransform: "uppercase", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { Container, makeStyles, Typography } from "@material-ui/core"; | ||
| import { Container, makeStyles } from "@material-ui/core"; | ||
| import React from "react"; | ||
| import ProfileHero from "../../components/ProfileComponents/ProfileHero"; | ||
| import ProfileTabComponent from "../../components/ProfileComponents/ProfileTabComponent"; | ||
|
|
@@ -9,9 +9,9 @@ function ProfilePage() { | |
| return ( | ||
| <Container className={classes.root}> | ||
| <ProfileHero /> | ||
| <Typography className={classes.title} variant="h2" color="textPrimary"> | ||
| {/* <Typography className={classes.title} variant="h2" color="textPrimary"> | ||
| Profile & settings | ||
| </Typography> | ||
| </Typography> */} | ||
|
||
| <ProfileTabComponent /> | ||
| </Container> | ||
| ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, @rajatgupta24 for mobile view the tab section is looking grate but by defining the
widththe tab component has lost its responsiveness as a tab variant isscrollable. so instead of defining the width, we can use the native CSS class for the component by that it will not lose its responsiveness. and can we reduce the width on the web and tab around15pxby adding breakpoints?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can reduce the gap here!