Debian Codegraph @

node/@patternfly/react-core/src/components/Avatar/examples/AvatarBasic.tsx

raw
1 import { Avatar } from '@patternfly/react-core';
2 import avatarImg from '../../assets/img_avatar-light.svg';
3
4 const rhdsLogo = (
5 <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">
6 <g>
7 <rect width="48" height="48" fill="#147878"></rect>
8 <rect x="36" y="42" width="6" height="6" fill="#004D4D"></rect>
9 <rect x="6" y="42" width="6" height="6" fill="#004D4D"></rect>
10 <rect x="12" y="36" width="24" height="6" fill="#004D4D"></rect>
11 <rect x="18" y="30" width="12" height="6" fill="#004D4D"></rect>
12 <rect width="6" height="24" transform="matrix(-1 0 0 1 48 12)" fill="#004D4D"></rect>
13 <rect width="6" height="6" transform="matrix(-1 0 0 1 42 30)" fill="#004D4D"></rect>
14 <rect width="6" height="6" transform="matrix(-1 0 0 1 36 24)" fill="#004D4D"></rect>
15 <rect width="6" height="6" transform="matrix(-1 0 0 1 42 18)" fill="#004D4D"></rect>
16 <rect width="6" height="6" transform="matrix(-1 0 0 1 36 12)" fill="#004D4D"></rect>
17 <rect width="6" height="6" transform="matrix(-1 0 0 1 42 6)" fill="#004D4D"></rect>
18 <rect x="18" width="12" height="12" fill="#004D4D"></rect>
19 <rect x="6" y="30" width="6" height="6" fill="#004D4D"></rect>
20 <rect x="12" y="24" width="6" height="6" fill="#004D4D"></rect>
21 <rect x="6" y="18" width="6" height="6" fill="#004D4D"></rect>
22 <rect x="12" y="12" width="6" height="6" fill="#004D4D"></rect>
23 <rect x="6" y="6" width="6" height="6" fill="#004D4D"></rect>
24 <rect y="12" width="6" height="24" fill="#004D4D"></rect>
25 </g>
26 </svg>
27 );
28
29 export const AvatarBasic: React.FunctionComponent = () => (
30 <>
31 <Avatar src={avatarImg} alt="Basic avatar with image" />
32 <Avatar alt="Basic avatar with children">{rhdsLogo}</Avatar>
33 </>
34 );