forked from linode/manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upcoming: [M3-7866] - Improve Proxy Account Visibility with Distinct …
…Visual Indicators (linode#10277) Co-authored-by: Jaalah Ramos <[email protected]>
- Loading branch information
1 parent
b59e794
commit 62229f0
Showing
5 changed files
with
103 additions
and
34 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-10277-upcoming-features-1710340806902.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Upcoming Features | ||
--- | ||
|
||
Improve Proxy Account Visibility with Distinct Visual Indicators ([#10277](https://github.com/linode/manager/pull/10277)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import * as React from 'react'; | ||
|
||
import ProxyUserIcon from 'src/assets/icons/parent-child.svg'; | ||
import { Box } from 'src/components/Box'; | ||
|
||
interface Props { | ||
height?: number; | ||
width?: number; | ||
} | ||
|
||
export const GravatarForProxy = ({ height = 34, width = 34 }: Props) => { | ||
return ( | ||
<Box | ||
sx={(theme) => ({ | ||
background: `linear-gradient(60deg, ${theme.color.blue}, ${theme.color.teal} )`, | ||
backgroundSize: '300% 300%', | ||
borderRadius: '50%', | ||
height, | ||
padding: '3px', | ||
width, | ||
})} | ||
> | ||
<Box | ||
sx={(theme) => ({ | ||
background: theme.color.white, | ||
borderRadius: '50%', | ||
color: theme.palette.text.primary, | ||
height: `calc(${height}px - 6px)`, | ||
overflow: 'hidden', | ||
position: 'relative', | ||
width: `calc(${width}px - 6px)`, | ||
})} | ||
> | ||
<StyledProxyUserIcon /> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
const StyledProxyUserIcon = styled(ProxyUserIcon, { | ||
label: 'styledProxyUserIcon', | ||
})(() => ({ | ||
bottom: 0, | ||
left: 0, | ||
position: 'absolute', | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters