Skip to content

Commit 2195979

Browse files
Merge pull request #1166 from Rajesh-Nagarajan-11/add-academy-icon
feat(icons): add Academy icon
2 parents 397df63 + 8f1cd9e commit 2195979

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

src/icons/Academy/AcademyIcon.tsx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { FC } from 'react';
2+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, KEPPEL_GREEN_FILL,} from '../../constants/constants';
3+
import { IconProps } from '../types';
4+
5+
type AcademyIconProps = {
6+
topFill: string;
7+
centerFill: string;
8+
bottomFill: string;
9+
} & IconProps;
10+
11+
const AcademyIcon: FC<AcademyIconProps> = ({
12+
width = DEFAULT_WIDTH,
13+
height = DEFAULT_HEIGHT,
14+
topFill = KEPPEL_GREEN_FILL,
15+
centerFill = KEPPEL_GREEN_FILL,
16+
bottomFill = KEPPEL_GREEN_FILL,
17+
...props
18+
}) => {
19+
return (
20+
<svg
21+
width={width}
22+
height={height}
23+
xmlns="http://www.w3.org/2000/svg"
24+
viewBox="0 0 22 22"
25+
data-testid="academy-icon-svg"
26+
{...props}
27+
>
28+
<path
29+
fill={topFill}
30+
d="M22.5,4.5v.8c0,.2-.2.4-.4.4h-1.1v.6c0,.3-.3.6-.6.6H2.1c-.3,0-.6-.3-.6-.6v-.6H.4c-.2,0-.4-.2-.4-.4v-.8c0-.2,0-.3.2-.3L11.1,0c0,0,.2,0,.3,0l10.9,4.1c.1,0,.2.2.2.3Z"
31+
/>
32+
<path
33+
fill={centerFill}
34+
d="M3.8,7.5v9h-1.7c-.3,0-.6.3-.6.6v.9h19.5v-.9c0-.3-.3-.6-.6-.6h-1.7V7.5h-3v9h-3V7.5h-3v9h-3V7.5h-3Z"
35+
/>
36+
<path
37+
fill={bottomFill}
38+
d="M21.4,18.8H1.1c-.6,0-1.1.5-1.1,1.1v.8c0,.2.2.4.4.4h21.8c.2,0,.4-.2.4-.4v-.8c0-.6-.5-1.1-1.1-1.1Z"
39+
/>
40+
</svg>
41+
);
42+
};
43+
44+
export default AcademyIcon;

src/icons/Academy/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as AcademyIcon } from './AcademyIcon';

src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from './Academy';
12
export * from './Add';
23
export * from './AddCircle';
34
export * from './Application';

0 commit comments

Comments
 (0)