UNPKG

@atlaskit/logo

Version:

A logo is a visual representation of a brand or app. It can be a word, an image, or a combination of both.

43 lines (42 loc) • 3.82 kB
/** * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen} * @codegen <<SignedSource::3e7904ce3158e379c19fd8ecbb634f97>> * @codegenCommand afm workspace @atlaskit/logo generate:components */ import React from 'react'; import { fg } from '@atlaskit/platform-feature-flags/fg'; import { LogoWrapper } from '../../../utils/logo-wrapper'; // `height` is set to 100% to allow the SVG to scale with the parent element // The text color is set to "currentColor" to allow the SVG to inherit the color set by the parent based on the theme. const svg = `<svg height="100%" viewBox="0 0 103 32"> <path fill="var(--tile-color,#1868db)" d="M0 8a8 8 0 0 1 8-8h16a8 8 0 0 1 8 8v16a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8z"/> <path fill="var(--icon-color, white)" d="M25.375 15.31H19.99l4.664-2.693-1.024-1.775-4.664 2.693 2.692-4.663-1.775-1.025-2.692 4.663V7.125h-2.048v5.386l-2.694-4.664-1.774 1.024 2.693 4.664-4.664-2.693-1.024 1.774 4.664 2.693H6.959v2.049h5.384L7.68 20.05l1.024 1.774 4.663-2.692-2.692 4.664 1.774 1.024 2.693-4.664v5.385h2.049v-5.385l2.692 4.664 1.774-1.024-2.692-4.665 4.663 2.693 1.025-1.774-4.664-2.693h5.385zm-9.208 3.81a2.797 2.797 0 1 1 0-5.593 2.797 2.797 0 0 1 0 5.593"/> <path fill="var(--text-color, #1e1f21)" d="M42.67 25.34V3.93h3.93v21.41zm37.7-14.55h3.75v1.78c.8-1.42 2.66-2.19 4.26-2.19 1.98 0 3.58.86 4.32 2.43 1.15-1.77 2.69-2.42 4.61-2.42 2.69 0 5.26 1.63 5.26 5.53v9.43h-3.81v-8.63c0-1.57-.77-2.75-2.57-2.75-1.68 0-2.69 1.3-2.69 2.87v8.52h-3.9v-8.63c0-1.57-.8-2.75-2.57-2.75-1.71 0-2.72 1.27-2.72 2.87v8.52h-3.93zM55.48 25.77c-4.43 0-7.63-3.28-7.63-7.7 0-4.34 3.2-7.7 7.64-7.7 4.46 0 7.63 3.39 7.63 7.7 0 4.38-3.21 7.7-7.63 7.7m0-11.84a4.15 4.15 0 0 0-4.14 4.14 4.15 4.15 0 0 0 4.14 4.14 4.15 4.15 0 0 0 4.14-4.14 4.15 4.15 0 0 0-4.14-4.14m16.02 11.84c-4.43 0-7.63-3.28-7.63-7.7 0-4.34 3.2-7.7 7.63-7.7 4.46 0 7.64 3.39 7.64 7.7 0 4.38-3.21 7.7-7.63 7.7m0-11.89c-2.31 0-4.19 1.88-4.19 4.19s1.88 4.19 4.19 4.19 4.19-1.88 4.19-4.19-1.88-4.19-4.19-4.19"/> </svg> `; const refreshedSvg = `<svg height="100%" viewBox="0 0 85 24"> <path fill="var(--text-color, #1e1f21)" d="M77.19 12.61V19h-1.98v-6.95c0-2.07-.83-2.99-2.71-2.99-1.84 0-3.1 1.22-3.1 3.54V19h-1.99V7.5h1.98v1.89c.74-1.36 2.09-2.12 3.63-2.12 1.96 0 3.29.99 3.86 2.81.64-1.77 2.19-2.81 4.09-2.81 2.58 0 4 1.75 4 4.99V19h-1.98v-6.39c0-2.37-.83-3.54-2.71-3.54-1.84 0-3.1 1.22-3.1 3.54m-17.5 6.62c-3.45 0-5.47-2.55-5.47-6s2.02-5.96 5.47-5.96c3.43 0 5.43 2.51 5.43 5.96s-2 6-5.43 6m0-10.12c-2.46 0-3.54 1.93-3.54 4.12s1.08 4.16 3.54 4.16c2.44 0 3.5-1.98 3.5-4.16s-1.06-4.12-3.5-4.12M47.17 19.23c-3.45 0-5.47-2.55-5.47-6s2.02-5.96 5.47-5.96c3.43 0 5.43 2.51 5.43 5.96s-2 6-5.43 6m0-10.12c-2.46 0-3.54 1.93-3.54 4.12s1.08 4.16 3.54 4.16c2.44 0 3.5-1.98 3.5-4.16s-1.06-4.12-3.5-4.12M32.05 3.89h2.07v13.13h6.85V19h-8.92z"/> <path fill="var(--tile-color,#1868db)" d="M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6z"/> <path fill="var(--icon-color, white)" d="M19.031 11.482h-4.039l3.498-2.02-.768-1.33-3.498 2.019 2.019-3.498-1.331-.768-2.019 3.497V5.344h-1.536v4.039l-2.02-3.498-1.331.768 2.02 3.498-3.498-2.019-.768 1.33 3.498 2.02h-4.04v1.536h4.039l-3.497 2.02.768 1.33 3.498-2.019-2.02 3.498 1.331.768 2.019-3.498v4.039h1.537v-4.038l2.019 3.497 1.331-.768-2.02-3.498 3.498 2.019.768-1.33-3.497-2.02h4.038zm-6.906 2.858a2.098 2.098 0 1 1 0-4.195 2.098 2.098 0 0 1 0 4.195"/> </svg> `; /** * __LoomLogoCS__ * * A component to represent the logo for Loom. * */ export function LoomLogoCS({ size = 'medium', appearance = 'brand', label = 'Loom', testId }) { return /*#__PURE__*/React.createElement(LogoWrapper, { svg: fg('platform_dst_loom_logo_refresh') ? refreshedSvg : svg, label: label, appearance: appearance, size: size, testId: testId }); }