Skip to content

Commit

Permalink
Merge pull request #434 from Plant-for-the-Planet-org/feature/update-…
Browse files Browse the repository at this point in the history
…twitter-icon

Replace twitter icon
  • Loading branch information
mariahosfeld authored Oct 18, 2023
2 parents 3294d9e + e46458d commit a8ac137
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 10 deletions.
73 changes: 64 additions & 9 deletions public/assets/icons/share/Twitter.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,76 @@
import React, { ReactElement } from "react";

interface Props {
color: string;
backGroundColor: string;
fontColor: string;
}

function Icon({ color }: Props): ReactElement {
function Icon({ backGroundColor, fontColor }: Props): ReactElement {
return (
<svg
version="1.1"
id="Ebene_1"
xmlns="http://www.w3.org/2000/svg"
height="20px"
width="20px"
viewBox="0 0 512 512"
x="0px"
y="0px"
viewBox="0 0 200 200"
>
<path
fill={color ? color : "black"}
d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"
/>
<g transform="matrix( 1, 0, 0, 1, 0,0) ">
<g>
<g id="Layer0_0_FILL">
<path
fill={backGroundColor ? backGroundColor : "white"}
d="M179.5,39.4c-2.7-3.6-5.7-7-8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,156.2,42.2 M95.8,83
c2.7,3.6,5.5,7.3,8.2,10.9c2.7,3.7,5.4,7.3,8.2,11c2.7,3.6,5.5,7.3,8.2,10.9c2.7,3.6,5.4,7.3,8.1,11c2.7,3.6,5.4,7.3,8.1,10.9
c2.8,3.7,5.5,7.3,8.2,10.9c0.4,0.4,0.7,0.9,1.1,1.4c-5.4,0.1-10.9,0.2-16.6,0.1c0,0-0.1,0-0.1,0c-2.7-3.6-5.4-7.3-8.1-10.9
c-2.7-3.7-5.5-7.3-8.2-11c-2.7-3.6-5.5-7.3-8.2-10.9c-2.7-3.6-5.4-7.3-8.2-10.9c-2.7-3.6-5.4-7.2-8.1-10.9
c-2.7-3.7-5.4-7.3-8.2-11c-2.7-3.6-5.5-7.3-8.2-10.9c-2.7-3.6-5.5-7.3-8.2-10.9c-2.7-3.6-5.4-7.3-8.2-10.9
c-0.4-0.5-0.7-1-1.1-1.5c5.6,0,11.1,0,16.7,0c0,0,0.1,0,0.2,0c2.7,3.6,5.5,7.3,8.2,10.9c2.7,3.6,5.4,7.3,8.2,11
C90.3,75.7,93,79.3,95.8,83z"
/>
</g>
</g>
</g>
</svg>
);
}
Expand Down
3 changes: 2 additions & 1 deletion src/Donations/Micros/ShareOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ const ShareOptions = ({
}
>
<TwitterIcon
color={currentHover === 4 ? "#00acee" : "backgroundColorDark"}
backGroundColor={currentHover === 4 ? "backgroundColorDark" : "#fff"}
fontColor={currentHover === 4 ? "#fff" : "backgroundColorDark"}
/>
</button>

Expand Down

0 comments on commit a8ac137

Please sign in to comment.