mirror of https://github.com/zulip/zulip.git
footer: Add social links with icons.
Fixes #27886 Removed old twitter link in the same column.
This commit is contained in:
parent
9191f1a7eb
commit
311f72dd56
|
@ -92,9 +92,13 @@
|
|||
<li><a href="/values/">{{ _("Values") }}</a></li>
|
||||
<li><a href="/jobs/">{{ _("Jobs") }}</a></li>
|
||||
<li><a href="https://blog.zulip.com/" target="_blank">{{ _("Blog") }}</a></li>
|
||||
<li><a href="https://twitter.com/zulip/">Twitter</a></li>
|
||||
<li><a href="https://zulip.com/help/support-zulip-project">{{ _("Support Zulip") }}</a></li>
|
||||
</ul>
|
||||
<div class="footer-social-links">
|
||||
<a class="footer-social-icon footer-social-icon-x" title="{{ _('X (Twitter)') }}" href="https://twitter.com/zulip"></a>
|
||||
<a class="footer-social-icon footer-social-icon-mastodon" title="{{ _('Mastodon') }}" href="https://fosstodon.org/@zulip"></a>
|
||||
<a class="footer-social-icon footer-social-icon-linkedin" title="{{ _('LinkedIn') }}" href="https://www.linkedin.com/company/zulip-by-kandra-labs/"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -26,6 +26,7 @@ IGNORED_PHRASES = [
|
|||
r"IP",
|
||||
r"JSON",
|
||||
r"Kerberos",
|
||||
r"LinkedIn",
|
||||
r"LDAP",
|
||||
r"Markdown",
|
||||
r"OTP",
|
||||
|
|
|
@ -7,6 +7,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* These need to be here so that other pages don't need to import a different library for these icons to work */
|
||||
.footer-social-icon-mastodon {
|
||||
--footer-social-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' viewBox='0 0 28 28'%3e%3cg fill='%23A3A5F8'%3e%3cpath d='M18.42 16.43h2.38v-6.02c0-1.23-.3-2.2-.94-2.93a3.27 3.27 0 0 0-2.55-1.1c-1.22 0-2.15.47-2.76 1.41l-.6 1-.58-1a3.07 3.07 0 0 0-2.76-1.4c-1.05 0-1.9.37-2.55 1.1a4.3 4.3 0 0 0-.94 2.92v6.02H9.5v-5.84c0-1.23.52-1.86 1.55-1.86 1.15 0 1.72.74 1.72 2.2v3.2h2.38v-3.2c0-1.46.57-2.2 1.71-2.2 1.04 0 1.56.63 1.56 1.86v5.84Z'/%3e%3cpath fill-rule='evenodd' d='M3 0a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3H3Zm18.39 3.6s3.26 1.45 3.26 6.43c0 0 .04 3.66-.46 6.2-.31 1.63-2.81 3.4-5.69 3.74-1.5.18-2.97.34-4.54.27-2.57-.12-4.6-.62-4.6-.62 0 .24.02.48.05.72.33 2.53 2.51 2.68 4.58 2.76 2.09.07 3.94-.52 3.94-.52l.09 1.89s-1.46.78-4.06.92c-1.43.08-3.21-.03-5.28-.58-4.5-1.19-5.27-5.98-5.39-10.84a100.6 100.6 0 0 1-.02-3v-.94c0-4.97 3.27-6.43 3.27-6.43 1.64-.76 4.46-1.07 7.39-1.1H14c2.93.03 5.75.34 7.39 1.1Z' clip-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
.footer-social-icon-x {
|
||||
--footer-social-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' viewBox='0 0 28 28'%3e%3cg fill='%23A3A5F8' clip-path='url(%23a)'%3e%3cpath d='M18.87 23.69h2.71L9.11 5.36H6.4L18.87 23.7Z'/%3e%3cpath fill-rule='evenodd' d='M3.04.04a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3v-22a3 3 0 0 0-3-3h-22ZM23.34 4l-7.44 8.89 8.1 12.1h-5.96l-5.45-8.15-6.83 8.15H4l7.8-9.32L4 4h5.96l5.16 7.72L21.58 4h1.77Z' clip-rule='evenodd'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3crect width='28' height='28' fill='white' rx='3'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
.footer-social-icon-linkedin {
|
||||
--footer-social-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' viewBox='0 0 28 28'%3e%3cg clip-path='url(%23a)'%3e%3cpath fill='%23A3A5F8' d='M28 3a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V3ZM8.27 23.9H4.19V10.5h4.18v13.4h-.1ZM6.17 8.7A2.42 2.42 0 0 1 3.8 6.3c0-1.3 1.1-2.4 2.39-2.4 1.3 0 2.39 1.1 2.39 2.4 0 1.3-1 2.4-2.4 2.4Zm17.65 15.2h-4.09v-6.5c0-1.5 0-3.5-2.2-3.5-2.18 0-2.48 1.7-2.48 3.4v6.6h-4.09V10.5h3.99v1.8h.1c.6-1 1.89-2.2 3.88-2.2 4.19 0 4.98 2.8 4.98 6.4v7.4h-.1Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 0h28v28H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
#footer {
|
||||
background: var(--color-footer-background);
|
||||
box-sizing: border-box;
|
||||
|
@ -139,6 +152,32 @@
|
|||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.footer-social-links {
|
||||
margin: -25px 0 20px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.footer-social-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
background-color: hsl(238.59deg 85.86% 80.59%);
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-image: var(--footer-social-icon);
|
||||
transition: all 150ms ease-out;
|
||||
|
||||
&:hover {
|
||||
background-color: hsl(238.6deg 84.31% 90%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: hsl(240deg 86.67% 97.06%);
|
||||
}
|
||||
}
|
||||
|
||||
/* #footer responsivity and global fixes */
|
||||
@media (width <= 940px) {
|
||||
.footer__container {
|
||||
|
|
Loading…
Reference in New Issue