Skip to content

Commit

Permalink
style: fixed profile position
Browse files Browse the repository at this point in the history
  • Loading branch information
durdsvianna committed Oct 19, 2023
1 parent 285b2ce commit 3375907
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Cover/CoverHomeTasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
const CoverHomeTasks = () => {
const theme = useTheme();
const mdDown = useMediaQuery(theme.breakpoints.down('md'));
const xsDown = useMediaQuery(theme.breakpoints.down('xs'));
const smDown = useMediaQuery(theme.breakpoints.down('sm'));
return (
<Box display={'flex'} justifyContent={'center'} alignItems={'center'} height={304} >
Expand All @@ -23,7 +22,7 @@ const CoverHomeTasks = () => {

<Box >
<Box>
<Typography color={theme.colors.primary} fontWeight={"bold"} fontSize={mdDown ? 35 : xsDown ? 20 : 50}>
<Typography color={theme.colors.primary} fontWeight={"bold"} fontSize={smDown ? 20 : mdDown ? 30 : 50}>
WEB3TASK
</Typography>
</Box>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Cover/CoverUserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {
const CoverCreateTask = () => {
const theme = useTheme();
const mdDown = useMediaQuery(theme.breakpoints.down('md'));
const xsDown = useMediaQuery(theme.breakpoints.down('xs'));
const smDown = useMediaQuery(theme.breakpoints.down('xs'));
return (
<Box display={'flex'} justifyContent={'center'} alignItems={'center'} height={304} flexDirection={"row"} >

<Box ml={mdDown && 8}>
<Box style={{ zIndex: 3 }} >
<Typography color={theme.colors.primary} fontWeight={"bold"} fontSize={mdDown ? 35 : xsDown ? 20 : 50}>
<Typography color={theme.colors.primary} fontWeight={"bold"} fontSize={smDown ? 20 : mdDown ? 30 : 50}>
PERSONAL PROFILE
</Typography>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/content/applications/Users/profile/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const UserProfile = () => {
style={{
position: 'absolute',
top: 'calc(50% + 180px)',
left: smDown ? 'calc(50% + 165px)' : mdDown ? 'calc(50% + 210px)' : 'calc(50% - 250px)',
left: smDown ? 'calc(50% + 200px)' : mdDown ? 'calc(50% + 210px)' : 'calc(50% - 250px)',
transform: 'translate(-50%, -50%)',
zIndex: 2,
pointerEvents: 'none'
Expand Down

0 comments on commit 3375907

Please sign in to comment.