Add MS Teams
Co-authored-by: Dimitrios Douros <dourosdimitris@outlook.com> See: https://github.com/kytta/shareon/pull/66pull/67/head
commit
e97fc400a2
|
@ -102,6 +102,7 @@ names of which match the names of the social networks (or `copy-url`, for the
|
||||||
<a class="pinterest"></a>
|
<a class="pinterest"></a>
|
||||||
<a class="pocket"></a>
|
<a class="pocket"></a>
|
||||||
<a class="reddit"></a>
|
<a class="reddit"></a>
|
||||||
|
<a class="teams"></a>
|
||||||
<a class="telegram"></a>
|
<a class="telegram"></a>
|
||||||
<a class="twitter"></a>
|
<a class="twitter"></a>
|
||||||
<a class="viber"></a>
|
<a class="viber"></a>
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
<a class="pinterest"></a>
|
<a class="pinterest"></a>
|
||||||
<a class="pocket"></a>
|
<a class="pocket"></a>
|
||||||
<a class="reddit"></a>
|
<a class="reddit"></a>
|
||||||
|
<a class="teams"></a>
|
||||||
<a class="telegram"></a>
|
<a class="telegram"></a>
|
||||||
<a class="twitter"></a>
|
<a class="twitter"></a>
|
||||||
<a class="viber"></a>
|
<a class="viber"></a>
|
||||||
|
@ -56,6 +57,7 @@
|
||||||
<button class="pinterest"></button>
|
<button class="pinterest"></button>
|
||||||
<button class="pocket"></button>
|
<button class="pocket"></button>
|
||||||
<button class="reddit"></button>
|
<button class="reddit"></button>
|
||||||
|
<button class="teams"></button>
|
||||||
<button class="telegram"></button>
|
<button class="telegram"></button>
|
||||||
<button class="twitter"></button>
|
<button class="twitter"></button>
|
||||||
<button class="viber"></button>
|
<button class="viber"></button>
|
||||||
|
@ -80,6 +82,7 @@
|
||||||
<a class="pinterest"></a>
|
<a class="pinterest"></a>
|
||||||
<a class="pocket"></a>
|
<a class="pocket"></a>
|
||||||
<a class="reddit"></a>
|
<a class="reddit"></a>
|
||||||
|
<a class="teams"></a>
|
||||||
<a class="telegram"></a>
|
<a class="telegram"></a>
|
||||||
<a class="twitter" data-via="nickkaramoff"></a>
|
<a class="twitter" data-via="nickkaramoff"></a>
|
||||||
<a class="viber"></a>
|
<a class="viber"></a>
|
||||||
|
@ -97,11 +100,12 @@
|
||||||
<a class="messenger" data-fb-app-id="3619024578167617"></a>
|
<a class="messenger" data-fb-app-id="3619024578167617"></a>
|
||||||
<a class="odnoklassniki"></a>
|
<a class="odnoklassniki"></a>
|
||||||
<a class="pinterest">Pin</a>
|
<a class="pinterest">Pin</a>
|
||||||
<a class="pocket"></a>
|
<a class="pocket">Save</a>
|
||||||
<a class="reddit"></a>
|
<a class="reddit"></a>
|
||||||
<br />
|
<br />
|
||||||
|
<a class="teams"></a>
|
||||||
<a class="telegram"></a>
|
<a class="telegram"></a>
|
||||||
<a class="twitter">트윗</a>
|
<a class="twitter">Tweet</a>
|
||||||
<a class="viber"></a>
|
<a class="viber"></a>
|
||||||
<a class="vkontakte">Отправить</a>
|
<a class="vkontakte">Отправить</a>
|
||||||
<a class="whatsapp"></a>
|
<a class="whatsapp"></a>
|
||||||
|
|
|
@ -147,6 +147,13 @@
|
||||||
background-image: url("data:image/svg+xml,%3Csvg fill='%23fff' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.888 3.551c.168-.003.54.039.781.235.162.14.264.335.288.547.026.156.06.514.033.793-.302 3.189-1.616 10.924-2.285 14.495-.282 1.512-.838 2.017-1.378 2.066-1.17.11-2.058-.773-3.192-1.515-1.774-1.165-2.777-1.889-4.5-3.025-1.99-1.31-.7-2.033.434-3.209.297-.309 5.455-5.002 5.556-5.427.012-.054.024-.252-.094-.356-.117-.104-.292-.069-.418-.04-.178.04-3.013 1.915-8.504 5.62-.806.554-1.534.823-2.187.806-.72-.013-2.104-.405-3.134-.739C1.025 13.39.022 13.174.11 12.476c.045-.363.546-.734 1.5-1.114 5.878-2.56 9.796-4.249 11.758-5.064 5.599-2.328 6.763-2.733 7.521-2.747Z'/%3E%3C/svg%3E");
|
background-image: url("data:image/svg+xml,%3Csvg fill='%23fff' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.888 3.551c.168-.003.54.039.781.235.162.14.264.335.288.547.026.156.06.514.033.793-.302 3.189-1.616 10.924-2.285 14.495-.282 1.512-.838 2.017-1.378 2.066-1.17.11-2.058-.773-3.192-1.515-1.774-1.165-2.777-1.889-4.5-3.025-1.99-1.31-.7-2.033.434-3.209.297-.309 5.455-5.002 5.556-5.427.012-.054.024-.252-.094-.356-.117-.104-.292-.069-.418-.04-.178.04-3.013 1.915-8.504 5.62-.806.554-1.534.823-2.187.806-.72-.013-2.104-.405-3.134-.739C1.025 13.39.022 13.174.11 12.476c.045-.363.546-.734 1.5-1.114 5.878-2.56 9.796-4.249 11.758-5.064 5.599-2.328 6.763-2.733 7.521-2.747Z'/%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.shareon > .teams {
|
||||||
|
background-color: #6264a7;
|
||||||
|
}
|
||||||
|
.shareon > .teams:before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg fill='%23fff' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.625 8.127q-.55 0-1.025-.205-.475-.205-.832-.563-.358-.357-.563-.832Q18 6.053 18 5.502q0-.54.205-1.02t.563-.837q.357-.358.832-.563.474-.205 1.025-.205.54 0 1.02.205t.837.563q.358.357.563.837.205.48.205 1.02 0 .55-.205 1.025-.205.475-.563.832-.357.358-.837.563-.48.205-1.02.205zm0-3.75q-.469 0-.797.328-.328.328-.328.797 0 .469.328.797.328.328.797.328.469 0 .797-.328.328-.328.328-.797 0-.469-.328-.797-.328-.328-.797-.328zM24 10.002v5.578q0 .774-.293 1.46-.293.685-.803 1.194-.51.51-1.195.803-.686.293-1.459.293-.445 0-.908-.105-.463-.106-.85-.329-.293.95-.855 1.729-.563.78-1.319 1.336-.756.557-1.67.861-.914.305-1.898.305-1.148 0-2.162-.398-1.014-.399-1.805-1.102-.79-.703-1.312-1.664t-.674-2.086h-5.8q-.411 0-.704-.293T0 16.881V6.873q0-.41.293-.703t.703-.293h8.59q-.34-.715-.34-1.5 0-.727.275-1.365.276-.639.75-1.114.475-.474 1.114-.75.638-.275 1.365-.275t1.365.275q.639.276 1.114.75.474.475.75 1.114.275.638.275 1.365t-.275 1.365q-.276.639-.75 1.113-.475.475-1.114.75-.638.276-1.365.276-.188 0-.375-.024-.188-.023-.375-.058v1.078h10.875q.469 0 .797.328.328.328.328.797zM12.75 2.373q-.41 0-.78.158-.368.158-.638.434-.27.275-.428.639-.158.363-.158.773 0 .41.158.78.159.368.428.638.27.27.639.428.369.158.779.158.41 0 .773-.158.364-.159.64-.428.274-.27.433-.639.158-.369.158-.779 0-.41-.158-.773-.159-.364-.434-.64-.275-.275-.639-.433-.363-.158-.773-.158zM6.937 9.814h2.25V7.94H2.814v1.875h2.25v6h1.875zm10.313 7.313v-6.75H12v6.504q0 .41-.293.703t-.703.293H8.309q.152.809.556 1.5.405.691.985 1.19.58.497 1.318.779.738.281 1.582.281.926 0 1.746-.352.82-.351 1.436-.966.615-.616.966-1.43.352-.815.352-1.752zm5.25-1.547v-5.203h-3.75v6.855q.305.305.691.452.387.146.809.146.469 0 .879-.176.41-.175.715-.48.304-.305.48-.715t.176-.879Z'/%3E%3C/svg%3E");
|
||||||
|
}
|
||||||
|
|
||||||
.shareon > .twitter {
|
.shareon > .twitter {
|
||||||
background-color: #1da1f2;
|
background-color: #1da1f2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ const urlBuilderMap = {
|
||||||
pinterest: (d) => `https://pinterest.com/pin/create/button/?url=${d.url}&description=${d.title}${d.media ? `&media=${d.media}` : ''}`,
|
pinterest: (d) => `https://pinterest.com/pin/create/button/?url=${d.url}&description=${d.title}${d.media ? `&media=${d.media}` : ''}`,
|
||||||
pocket: (d) => `https://getpocket.com/edit.php?url=${d.url}`,
|
pocket: (d) => `https://getpocket.com/edit.php?url=${d.url}`,
|
||||||
reddit: (d) => `https://www.reddit.com/submit?title=${d.title}&url=${d.url}`,
|
reddit: (d) => `https://www.reddit.com/submit?title=${d.title}&url=${d.url}`,
|
||||||
|
teams: (d) => `https://teams.microsoft.com/share?href=${d.url}${d.text ? `&msgText=${d.text}` : ''}`,
|
||||||
telegram: (d) => `https://telegram.me/share/url?url=${d.url}${d.text ? `&text=${d.text}` : ''}`,
|
telegram: (d) => `https://telegram.me/share/url?url=${d.url}${d.text ? `&text=${d.text}` : ''}`,
|
||||||
twitter: (d) => `https://twitter.com/intent/tweet?url=${d.url}&text=${d.title}${d.via ? `&via=${d.via}` : ''}${d.hashtags? `&hashtags=${d.hashtags}` : ''}`,
|
twitter: (d) => `https://twitter.com/intent/tweet?url=${d.url}&text=${d.title}${d.via ? `&via=${d.via}` : ''}${d.hashtags? `&hashtags=${d.hashtags}` : ''}`,
|
||||||
viber: (d) => `viber://forward?text=${d.title}%0D%0A${d.url}${d.text ? `%0D%0A%0D%0A${d.text}` : ''}`,
|
viber: (d) => `viber://forward?text=${d.title}%0D%0A${d.url}${d.text ? `%0D%0A%0D%0A${d.text}` : ''}`,
|
||||||
|
|
Loading…
Reference in New Issue