GoogleIcon.tsx 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import React, { Component } from "react";
  2. import styled from "styled-components";
  3. type PropsType = {};
  4. type StateType = {};
  5. export default class GHIcon extends Component<PropsType, StateType> {
  6. render() {
  7. return (
  8. <Svg width="46px" height="46px" viewBox="0 0 46 46" {...this.props}>
  9. <title>btn_google_light_normal_ios</title>
  10. <desc>Created with Sketch.</desc>
  11. <defs>
  12. <filter
  13. x="-50%"
  14. y="-50%"
  15. width="200%"
  16. height="200%"
  17. filterUnits="objectBoundingBox"
  18. id="filter-1"
  19. >
  20. <feOffset
  21. dx="0"
  22. dy="1"
  23. in="SourceAlpha"
  24. result="shadowOffsetOuter1"
  25. ></feOffset>
  26. <feGaussianBlur
  27. stdDeviation="0.5"
  28. in="shadowOffsetOuter1"
  29. result="shadowBlurOuter1"
  30. ></feGaussianBlur>
  31. <feColorMatrix
  32. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0"
  33. in="shadowBlurOuter1"
  34. type="matrix"
  35. result="shadowMatrixOuter1"
  36. ></feColorMatrix>
  37. <feOffset
  38. dx="0"
  39. dy="0"
  40. in="SourceAlpha"
  41. result="shadowOffsetOuter2"
  42. ></feOffset>
  43. <feGaussianBlur
  44. stdDeviation="0.5"
  45. in="shadowOffsetOuter2"
  46. result="shadowBlurOuter2"
  47. ></feGaussianBlur>
  48. <feColorMatrix
  49. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0"
  50. in="shadowBlurOuter2"
  51. type="matrix"
  52. result="shadowMatrixOuter2"
  53. ></feColorMatrix>
  54. <feMerge>
  55. <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
  56. <feMergeNode in="shadowMatrixOuter2"></feMergeNode>
  57. <feMergeNode in="SourceGraphic"></feMergeNode>
  58. </feMerge>
  59. </filter>
  60. <rect id="path-2" x="0" y="0" width="40" height="40" rx="2"></rect>
  61. </defs>
  62. <g
  63. id="Google-Button"
  64. stroke="none"
  65. stroke-width="1"
  66. fill="none"
  67. fill-rule="evenodd"
  68. >
  69. <g id="9-PATCH" transform="translate(-608.000000, -160.000000)"></g>
  70. <g
  71. id="btn_google_light_normal"
  72. transform="translate(-1.000000, -1.000000)"
  73. >
  74. <g
  75. id="button"
  76. transform="translate(4.000000, 4.000000)"
  77. filter="url(#filter-1)"
  78. >
  79. <g id="button-bg">
  80. <use fill="#FFFFFF" fill-rule="evenodd"></use>
  81. <use fill="none"></use>
  82. <use fill="none"></use>
  83. <use fill="none"></use>
  84. </g>
  85. </g>
  86. <g
  87. id="logo_googleg_48dp"
  88. transform="translate(15.000000, 15.000000)"
  89. >
  90. <path
  91. d="M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z"
  92. id="Shape"
  93. fill="#4285F4"
  94. ></path>
  95. <path
  96. d="M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z"
  97. id="Shape"
  98. fill="#34A853"
  99. ></path>
  100. <path
  101. d="M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z"
  102. id="Shape"
  103. fill="#FBBC05"
  104. ></path>
  105. <path
  106. d="M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z"
  107. id="Shape"
  108. fill="#EA4335"
  109. ></path>
  110. <path d="M0,0 L18,0 L18,18 L0,18 L0,0 Z" id="Shape"></path>
  111. </g>
  112. <g id="handles_square"></g>
  113. </g>
  114. </g>
  115. </Svg>
  116. );
  117. }
  118. }
  119. const Svg = styled.svg``;