Skip to content

Commit 60baa4b

Browse files
committed
use SVG instead of icon.
1 parent 2b52c4b commit 60baa4b

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

src/assets/Logos.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const InstructureBug: FC = () => (
2222
<InlineSVG height="100%" title="Logo" viewBox="0 0 100 100">
2323
<svg viewBox="0 0 53.42 53.42" xmlns="http://www.w3.org/2000/svg">
2424
<title>Instructure Logo</title>
25-
<g data-name="Layer 1" id="Layer_1-2">
25+
<g>
2626
<rect
2727
fill="none"
2828
height="53.42"
@@ -41,7 +41,7 @@ const InstructureBugColor: FC = () => (
4141
<InlineSVG height="100%" title="Logo" viewBox="0 0 100 100" width="100%">
4242
<svg viewBox="0 0 53.42 53.42" xmlns="http://www.w3.org/2000/svg">
4343
<title>Instructure Logo</title>
44-
<g data-name="Layer 1" id="Layer_1-2">
44+
<g>
4545
<rect fill="#0b1722" height="53.42" width="53.42" />
4646
<path
4747
d="M30.24,37.26h0c0-2.05,1.66-3.71,3.71-3.71s3.71,1.66,3.71,3.71-1.66,3.71-3.71,3.71-3.71-1.66-3.71-3.71"
@@ -53,6 +53,20 @@ const InstructureBugColor: FC = () => (
5353
</InlineSVG>
5454
);
5555

56+
const InstructureBugClassic: FC = () => (
57+
<InlineSVG height="100%" title="Logo" viewBox="0 0 252 270" width="100%">
58+
<svg viewBox="0 0 252 270" xmlns="http://www.w3.org/2000/svg">
59+
<title>Instructure Logo</title>
60+
<g fill="#fff">
61+
<polygon points="65.38,166.52 126,200.65 186.62,166.52 126,132.38" />
62+
<polygon points="158.64,119.24 186.62,103.48 158.63,87.72 130.64,103.48" />
63+
<polygon points="153.99,85.11 125.99,69.35 98.01,85.1 126,100.86" />
64+
<polygon points="121.35,103.48 93.36,87.72 65.38,103.48 93.37,119.24" />
65+
</g>
66+
</svg>
67+
</InlineSVG>
68+
);
69+
5670
const InstructureLogo: FC = () => (
5771
<InlineSVG height="100%" viewBox="0 0 374.89 52.08" width="300px">
5872
<svg
@@ -62,7 +76,7 @@ const InstructureLogo: FC = () => (
6276
xmlns="http://www.w3.org/2000/svg"
6377
>
6478
<title>Instructure Logo</title>
65-
<g data-name="Layer 1" id="Layer_1-2">
79+
<g>
6680
<rect
6781
height="12.73"
6882
rx="6.37"
@@ -159,4 +173,5 @@ export {
159173
CanvasBug,
160174
InstructureBugColor,
161175
StudioBug,
176+
InstructureBugClassic,
162177
};

src/components/Banner.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Heading } from "@instructure/ui-heading";
2-
import { IconInstructureLogoLine } from "@instructure/ui-icons";
32
import { Link } from "@instructure/ui-link";
43
import { View } from "@instructure/ui-view";
5-
import { InstructureBugColor } from "../assets/Logos";
4+
import { InstructureBugClassic, InstructureBugColor } from "../assets/Logos";
65

76
interface BannerProps {
87
href?: string;
@@ -13,7 +12,7 @@ const Banner = ({ href }: BannerProps): React.ReactElement => {
1312
typeof window !== "undefined" && window.location.hash === "#/test";
1413
const LogoComponent = isTestRoute
1514
? InstructureBugColor
16-
: IconInstructureLogoLine;
15+
: InstructureBugClassic;
1716

1817
return (
1918
<View as="div" borderRadius="medium" overflowX="hidden" overflowY="hidden">

0 commit comments

Comments
 (0)