nalodeni.pirati.cz/src/nalodeni/templates/social_buttons.html

36 lines
3.7 KiB
HTML

<div id="kc-social-providers" class="sso-social-buttons">
{% if 'pirati' in AUTH_AVAIL_IDP %}
<div class="sso-social-button sso-social-button-pirati"><a href="/sso/login/">
<div class="sso-social-button-icon">
<svg id="pirati" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52.2 55.2"> <style> .st0{fill:none} </style> <path d="M24.7 7.2c-5.9 0-11.4 2.3-15.5 6.4-4.2 4.1-6.5 9.7-6.5 15.5C2.7 35 5 40.5 9.1 44.7c4.2 4.1 9.7 6.4 15.5 6.4 5.9 0 11.4-2.3 15.5-6.4 4.2-4.1 6.4-9.7 6.4-15.5 0-5.9-2.3-11.4-6.4-15.5-4-4.3-9.5-6.5-15.4-6.5m0 41.8c-11 0-19.9-8.9-19.9-19.9 0-11 8.9-19.9 19.9-19.9 11 0 19.9 8.9 19.9 19.9 0 11-8.9 19.9-19.9 19.9"/> <path d="M18.1 16.1V13h-1.9v3.6c-1.3.4-2.1.8-1.9 1.1.4-.1 1.1-.2 1.9-.1V36c-2 3.8.9 9.7.9 9.7s-2.1-6.3 2.6-9.3c4.3-2.7 19.3-1.5 19.2-9.9-.1-11.9-13.9-11.9-20.8-10.4m6.1 11.6c-.7 3.2-4.1 4.8-6.2 6.2V17.8c3.5.8 7.6 3.5 6.2 9.9"/> <path class="st0" d="M0 0h52.2v55.2H0z"/> </svg>
</div>
<div class="sso-social-button-text">Piráti</div>
</a></div>
{%endif%}
{% if 'twitter' in AUTH_AVAIL_IDP %}
<div class="sso-social-button sso-social-button-twitter"><a href="/sso/login/twitter">
<div class="sso-social-button-icon">
<svg class="svg-inline--fa fa-twitter fa-w-16 fa-fw" aria-hidden="true" data-fa-processed="" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" 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"></path></svg><!-- <i class="fab fa-fw fa-twitter"></i> -->
</div>
<div class="sso-social-button-text">Twitter</div>
</a></div>
{%endif%}
{% if 'facebook' in AUTH_AVAIL_IDP %}
<div class="sso-social-button sso-social-button-facebook">
<a href="/sso/login/facebook/">
<div class="sso-social-button-icon"><svg class="svg-inline--fa fa-facebook-f fa-w-9 fa-fw" aria-hidden="true" data-fa-processed="" data-prefix="fab" data-icon="facebook-f" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></div>
<div class="sso-social-button-text">Facebook</div>
</a>
</div>
{%endif%}
{% if 'google' in AUTH_AVAIL_IDP %}
<div class="sso-social-button sso-social-button-google"><a href="/sso/login/google">
<div class="sso-social-button-icon">
<svg class="svg-inline--fa fa-google fa-w-16 fa-fw" aria-hidden="true" data-fa-processed="" data-prefix="fab" data-icon="google" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 488 512"><path fill="currentColor" d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"></path></svg><!-- <i class="fab fa-fw fa-google"></i> -->
</div>
<div class="sso-social-button-text">Google</div>
</a></div>
{%endif%}
</div>