Skip to content

Commit

Permalink
Merge pull request #72 from Flared/mahinse/fix_loading_animation_shift
Browse files Browse the repository at this point in the history
Make sure the Flare logo animation is centered + use same animation as website
  • Loading branch information
TyMarc authored Nov 29, 2024
2 parents 3da3021 + 339bdb8 commit 077f4da
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

.flare-logo-loading-svg {
transform-origin: 50% 50%;
animation: rotate-flare-logo 0.4s linear infinite;
animation-name: rotate-flare-logo;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
animation-duration: 0.8s;
}

/* Animations */
Expand Down
98 changes: 52 additions & 46 deletions packages/react-components/src/components/icons/FlareLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,72 +12,78 @@ const FlareLogo: FC<{ remSize: number; hidden?: boolean }> = ({ remSize, hidden
<svg
width={`${remSize}rem`}
height={`${remSize}rem`}
viewBox="0 0 24 24"
fill="none"
version="1.1"
viewBox="0 0 9.5508 9.45"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.1966 7.5157C13.1965 5.33434 13.4865 2.08731 13.4915 2.01227C13.5187 1.52341 13.3569 1.04281 13.0396 0.670093C12.7223 0.297376 12.2738 0.0611214 11.7871 0.0103013C11.3004 -0.0405188 10.8129 0.0979925 10.4255 0.397124C10.0381 0.696256 9.78059 1.13307 9.70636 1.61702C9.70636 1.81714 9.20634 6.57011 12.3465 10.0473C12.7651 10.5032 13.2274 10.9171 13.7265 11.2831C15.1769 10.3201 16.8115 9.66923 18.5267 9.37186C17.1066 8.89656 16.0116 8.41126 15.1966 7.5157ZM11.9114 2.64266C11.8195 2.67299 11.7232 2.6882 11.6264 2.68769C11.4163 2.69066 11.2121 2.61834 11.0507 2.48378C10.8893 2.34923 10.7813 2.16132 10.7463 1.95404C10.7112 1.74676 10.7515 1.53377 10.8597 1.35359C10.9679 1.17341 11.137 1.03792 11.3364 0.971617C11.4275 0.937299 11.5241 0.92033 11.6214 0.921585C11.7373 0.920863 11.8521 0.94303 11.9594 0.986817C12.0666 1.0306 12.1642 1.09515 12.2464 1.17674C12.3296 1.25814 12.3955 1.35548 12.4401 1.46293C12.4848 1.57039 12.5074 1.68576 12.5065 1.80213C12.5065 1.98665 12.4493 2.16663 12.3427 2.3172C12.2361 2.46778 12.0854 2.5815 11.9114 2.64266Z"
fill="url(#paint0_linear_174_354)"
/>
<path
d="M10.9114 13.1542C10.4927 12.6983 10.0305 12.2844 9.53137 11.9185C8.08424 12.8842 6.45063 13.5353 4.73621 13.8296C6.15126 14.2999 7.23629 14.7902 8.06632 15.6858C10.0664 17.8622 9.77638 21.1142 9.76638 21.1892C9.73915 21.6781 9.90097 22.1587 10.2183 22.5314C10.5356 22.9041 10.9841 23.1404 11.4708 23.1912C11.9574 23.242 12.445 23.1035 12.8324 22.8044C13.2198 22.5053 13.4773 22.0684 13.5515 21.5845C13.5815 21.3844 14.0515 16.6264 10.9114 13.1542ZM11.9565 22.2299C11.863 22.2615 11.7651 22.2783 11.6664 22.2799C11.4321 22.2784 11.2077 22.185 11.0414 22.0198C10.9587 21.938 10.8932 21.8406 10.8485 21.7332C10.8039 21.6259 10.7811 21.5107 10.7814 21.3944C10.7824 21.2107 10.8401 21.0318 10.9466 20.8823C11.0531 20.7327 11.2033 20.6197 11.3764 20.5589C11.4682 20.5273 11.5644 20.5104 11.6614 20.5088C11.7784 20.5084 11.8944 20.5311 12.0025 20.5758C12.1106 20.6204 12.2089 20.6861 12.2915 20.769C12.3729 20.8504 12.4373 20.9471 12.4811 21.0536C12.5249 21.1601 12.5471 21.2742 12.5465 21.3894C12.5484 21.5736 12.4925 21.7538 12.3866 21.9046C12.2808 22.0554 12.1303 22.1692 11.9565 22.2299Z"
fill="url(#paint1_linear_174_354)"
/>
<path
d="M9.36134 4.68896C8.91132 6.11986 8.41131 7.20554 7.51127 8.02105C5.3312 10.0223 2.08608 9.73212 2.01108 9.72211C1.52251 9.69487 1.0422 9.85678 0.669698 10.1743C0.297201 10.4918 0.0610854 10.9405 0.0102952 11.4275C-0.040495 11.9145 0.0979348 12.4023 0.396891 12.7899C0.695846 13.1776 1.1324 13.4352 1.61607 13.5095C1.81607 13.5095 6.56624 14.0098 10.0414 10.8678C10.4983 10.4501 10.912 9.98752 11.2764 9.48696C10.3113 8.03842 9.65903 6.40423 9.36134 4.68896ZM2.4711 12.2587C2.3779 12.3558 2.26312 12.4295 2.13609 12.4738C2.04414 12.5042 1.94789 12.5194 1.85108 12.5189C1.73377 12.5189 1.61763 12.4957 1.50932 12.4506C1.40101 12.4055 1.30267 12.3395 1.21995 12.2563C1.13724 12.173 1.07179 12.0743 1.02735 11.9656C0.98292 11.857 0.960385 11.7407 0.961044 11.6233C0.962012 11.4396 1.01971 11.2608 1.12623 11.1112C1.23275 10.9616 1.38288 10.8487 1.55606 10.7878C1.64721 10.7538 1.74381 10.7368 1.84107 10.7377C2.07626 10.7377 2.30189 10.8309 2.46866 10.9968C2.63543 11.1627 2.72978 11.388 2.73111 11.6233C2.73337 11.7414 2.71148 11.8586 2.66676 11.9679C2.62205 12.0772 2.55546 12.1761 2.4711 12.2587Z"
fill="url(#paint2_linear_174_354)"
/>
<path
d="M21.6568 9.68683C21.4568 9.68683 16.7066 9.18652 13.2315 12.3335C12.7747 12.7513 12.361 13.2139 11.9965 13.7144C12.9634 15.1619 13.6158 16.7965 13.9115 18.5124C14.3815 17.0915 14.8716 16.0108 15.7616 15.1803C17.9417 13.179 21.1868 13.4692 21.2618 13.4792C21.7644 13.5316 22.2672 13.3821 22.6597 13.0636C23.0521 12.745 23.302 12.2835 23.3544 11.7806C23.4067 11.2777 23.2573 10.7746 22.939 10.382C22.6206 9.98929 22.1594 9.73925 21.6568 9.68683ZM22.0518 12.1884C21.9583 12.284 21.8435 12.356 21.7168 12.3985C21.6257 12.4325 21.5291 12.4495 21.4318 12.4486C21.2213 12.4528 21.0162 12.3814 20.8538 12.2472C20.6914 12.1131 20.5825 11.9251 20.5468 11.7175C20.5111 11.5098 20.551 11.2962 20.6592 11.1155C20.7675 10.9348 20.9369 10.7989 21.1368 10.7325C21.2279 10.6985 21.3245 10.6815 21.4218 10.6825C21.5381 10.6815 21.6534 10.7041 21.7608 10.7488C21.8682 10.7935 21.9655 10.8594 22.0468 10.9426C22.1298 11.0231 22.1956 11.1195 22.2403 11.2262C22.285 11.3328 22.3076 11.4474 22.3068 11.563C22.3106 11.6801 22.2898 11.7966 22.2459 11.9052C22.202 12.0137 22.1359 12.1119 22.0518 12.1934V12.1884Z"
fill="url(#paint3_linear_174_354)"
/>
<defs>
<linearGradient
id="paint0_linear_174_354"
x1="12.2064"
y1="0.831529"
x2="15.37"
y2="10.9768"
id="paint0_linear_0_1"
x1="18.858"
x2="23.714"
y1="1.8798"
y2="17.507"
gradientTransform="matrix(.26458 0 0 .26458 -27.332 149.54)"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#5D7DFB" />
<stop offset="1" stopColor="#4539E5" />
<stop stopColor="#5D7DFB" offset="0" />
<stop stopColor="#4539E5" offset="1" />
</linearGradient>
<linearGradient
id="paint1_linear_174_354"
x1="9.17136"
y1="23.2906"
x2="9.17136"
y2="11.9185"
id="paint1_linear_0_1"
x1="14.169"
x2="14.169"
y1="36.453"
y2="18.947"
gradientTransform="matrix(.26458 0 0 .26458 -27.332 149.54)"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#5D7DFB" />
<stop offset="1" stopColor="#4539E5" />
<stop stopColor="#5D7DFB" offset="0" />
<stop stopColor="#4539E5" offset="1" />
</linearGradient>
<linearGradient
id="paint2_linear_174_354"
x1="-0.0889928"
y1="9.11673"
x2="11.2714"
y2="9.11673"
id="paint2_linear_0_1"
x1="-.13749"
x2="17.414"
y1="14.634"
y2="14.634"
gradientTransform="matrix(.26458 0 0 .26458 -27.332 149.54)"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#5D7DFB" />
<stop offset="1" stopColor="#4539E5" />
<stop stopColor="#5D7DFB" offset="0" />
<stop stopColor="#4539E5" offset="1" />
</linearGradient>
<linearGradient
id="paint3_linear_174_354"
x1="11.9965"
y1="14.0796"
x2="23.3569"
y2="14.0796"
id="paint3_linear_0_1"
x1="18.534"
x2="36.085"
y1="22.274"
y2="22.274"
gradientTransform="matrix(.26458 0 0 .26458 -27.332 149.54)"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#4539E5" />
<stop offset="1" stopColor="#5D7DFB" />
<stop stopColor="#4539E5" offset="0" />
<stop stopColor="#5D7DFB" offset="1" />
</linearGradient>
</defs>
<g transform="translate(27.332 -149.7)" strokeWidth=".26458">
<path
d="m-21.12 152.76c-0.81756-0.88848-0.69903-2.211-0.69697-2.2416 0.01111-0.19911-0.05503-0.39486-0.18473-0.54666-0.1297-0.15181-0.31303-0.24804-0.51197-0.26874-0.19897-0.0207-0.39825 0.0357-0.5566 0.15755-0.15835 0.12184-0.2636 0.29975-0.29395 0.49687 0 0.0815-0.20439 2.0174 1.0792 3.4336 0.17116 0.18568 0.3601 0.35425 0.56412 0.50331 0.5929-0.39221 1.2611-0.6573 1.9622-0.77843-0.58047-0.19359-1.0281-0.39124-1.3613-0.75599zm-1.3429-1.9848c-0.03757 0.0123-0.07691 0.0186-0.1165 0.0183-0.08588 1e-3 -0.16936-0.0282-0.23535-0.083-0.06599-0.0548-0.11012-0.13134-0.12443-0.21577-0.01434-0.0844 0.0021-0.17117 0.04635-0.24456 0.04426-0.0734 0.11337-0.12857 0.19486-0.15558 0.03723-0.014 0.07676-0.0209 0.11652-0.0204 0.04733-3e-4 0.0943 9e-3 0.13814 0.0266 0.04384 0.0178 0.08371 0.0441 0.11734 0.0773 0.034 0.0332 0.06091 0.0728 0.07916 0.11657 0.01828 0.0438 0.02749 0.0908 0.02712 0.13815 2.6e-5 0.0752-0.02336 0.14846-0.06694 0.20979-0.04355 0.0613-0.10517 0.10765-0.17629 0.13256z"
fill="url(#paint0_linear_0_1)"
/>
<path
d="m-22.872 155.06c-0.17116-0.18571-0.3601-0.35427-0.56414-0.50334-0.59153 0.39335-1.2593 0.65855-1.9601 0.77843 0.57843 0.19156 1.022 0.39124 1.3613 0.75602 0.81756 0.88641 0.69903 2.211 0.69493 2.2415-0.01111 0.19913 0.05501 0.39487 0.18473 0.54666 0.1297 0.15182 0.31303 0.24805 0.51197 0.26874 0.19894 0.0207 0.39825-0.0357 0.5566-0.15754s0.2636-0.29977 0.29395-0.49686c0.01225-0.0815 0.20439-2.0194-1.0792-3.4336zm0.42717 3.6965c-0.03823 0.0129-0.07821 0.0197-0.11856 0.0204-0.09578-6.1e-4 -0.18751-0.0387-0.25548-0.10597-0.03379-0.0333-0.06059-0.073-0.07885-0.1167s-0.02757-0.0907-0.02744-0.13801c3.97e-4 -0.0748 0.02397-0.14767 0.06752-0.2086 0.04355-0.0609 0.10491-0.10692 0.17571-0.13171 0.03752-0.0129 0.07683-0.0197 0.1165-0.0204 0.04784-1.9e-4 0.0952 9e-3 0.13941 0.0273 0.04421 0.0182 0.08435 0.0449 0.11814 0.0787 0.03326 0.0332 0.05961 0.0725 0.0775 0.11592 0.01791 0.0434 0.02699 0.0898 0.02675 0.13676 7.68e-4 0.075-0.02209 0.14843-0.06535 0.20987-0.04326 0.0614-0.10478 0.10774-0.17584 0.13248z"
fill="url(#paint1_linear_0_1)"
/>
<path
d="m-23.506 151.61c-0.18396 0.5828-0.38836 1.025-0.75626 1.3572-0.89115 0.8151-2.2177 0.69691-2.2483 0.69284-0.19971-0.0111-0.39605 0.0549-0.54832 0.18418-0.15227 0.1293-0.24878 0.31207-0.26955 0.51043-0.02076 0.19833 0.03582 0.39703 0.15803 0.55491 0.1222 0.15788 0.30066 0.26281 0.49836 0.29305 0.08176 0 2.0235 0.20378 3.444-1.0759 0.18677-0.17012 0.35592-0.35853 0.50485-0.56242-0.39452-0.58999-0.66114-1.2556-0.78282-1.9542zm-2.8165 3.0831c-0.0381 0.0396-0.08502 0.0696-0.13694 0.0876-0.03758 0.0124-0.07693 0.0186-0.1165 0.0183-0.04795 0-0.09543-9e-3 -0.1397-0.0278-0.04427-0.0184-0.08447-0.0452-0.11828-0.0792-0.03381-0.0339-0.06057-0.0741-0.07873-0.11835-0.01816-0.0443-0.02737-0.0916-0.02711-0.13943 3.97e-4 -0.0748 0.02398-0.14767 0.06752-0.2086 0.04354-0.0609 0.10491-0.10692 0.1757-0.13171 0.03726-0.0138 0.07674-0.0207 0.1165-0.0204 0.09614 0 0.18837 0.0379 0.25654 0.10551 0.06817 0.0676 0.10674 0.15931 0.10728 0.25517 9.26e-4 0.0481-8e-3 0.0958-0.0263 0.14033-0.01828 0.0445-0.0455 0.0848-0.07998 0.11845z"
fill="url(#paint2_linear_0_1)"
/>
<path
d="m-18.48 153.65c-0.08176 0-2.0235-0.20378-3.444 1.078-0.18672 0.17018-0.35584 0.35859-0.50485 0.5624 0.39526 0.5896 0.66196 1.2554 0.78282 1.9542 0.19214-0.57872 0.39243-1.0188 0.75626-1.3571 0.89114-0.8151 2.2177-0.69692 2.2483-0.69284 0.20548 0.0213 0.411-0.0396 0.57142-0.16931 0.16042-0.12972 0.26257-0.31768 0.28398-0.52252 0.0214-0.20484-0.03966-0.40976-0.16981-0.56968-0.13012-0.15994-0.31866-0.26178-0.52411-0.28313zm0.16148 1.0189c-0.03821 0.0389-0.08514 0.0683-0.13695 0.0856-0.03725 0.0138-0.07673 0.0207-0.1165 0.0204-0.08607 2e-3 -0.16989-0.0274-0.23627-0.082-0.06638-0.0546-0.11091-0.13121-0.12549-0.2158-0.0146-0.0846 0.0017-0.17155 0.04596-0.24516 0.04426-0.0736 0.11353-0.12896 0.19521-0.156 0.03725-0.0138 0.07676-0.0207 0.11652-0.0204 0.04752-3.7e-4 0.09467 9e-3 0.13856 0.027 0.04389 0.0182 0.08366 0.0451 0.11692 0.079 0.03392 0.0328 0.06083 0.072 0.07908 0.11549 0.01828 0.0434 0.02752 0.0901 0.0272 0.13718 0.0015 0.0477-7e-3 0.0952-0.02492 0.13936-0.01794 0.0442-0.04495 0.0842-0.07932 0.11739z"
fill="url(#paint3_linear_0_1)"
/>
</g>
</svg>
</div>
);
Expand Down

0 comments on commit 077f4da

Please sign in to comment.