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

style: fixed profile position #124

Merged
merged 1 commit into from
Oct 19, 2023
Merged
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
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
Loading