[www-doc] [Git][VideoLAN.org/websites][master] Properly display a Mastodon badge in the social part
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Wed Nov 6 11:34:04 UTC 2024
Felix Paul Kühne pushed to branch master at VideoLAN organization / websites
Commits:
034ebd33 by Nicolas Pomepuy at 2024-11-06T11:23:37+00:00
Properly display a Mastodon badge in the social part
Also fixes the poorly implemented Mastodon verification
for VideoLAN and VLC Android accounts
- - - - -
5 changed files:
- + www.videolan.org/images/icons/social/mastodon.svg
- www.videolan.org/include/footer.php
- www.videolan.org/include/header.php
- www.videolan.org/index.php
- www.videolan.org/style/style.scss
Changes:
=====================================
www.videolan.org/images/icons/social/mastodon.svg
=====================================
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ width="32"
+ height="32"
+ viewBox="0 0 32 32"
+ fill="#ffffff"
+ version="1.1"
+ id="svg4"
+ sodipodi:docname="mastodon.svg"
+ inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <defs
+ id="defs8" />
+ <sodipodi:namedview
+ id="namedview6"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageshadow="2"
+ inkscape:pageopacity="0.0"
+ inkscape:pagecheckerboard="0"
+ showgrid="false"
+ inkscape:zoom="11.050633"
+ inkscape:cx="36.966208"
+ inkscape:cy="39.5"
+ inkscape:window-width="2560"
+ inkscape:window-height="1376"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg4" />
+ <path
+ d="m 30.878937,7.2340122 c -0.462081,-3.3806183 -3.455675,-6.0447719 -7.00435,-6.56101511 -0.598703,-0.087231 -2.867149,-0.4046999 -8.12185,-0.4046999 h -0.03924 c -5.256165,0 -6.3838403,0.3174689 -6.9825429,0.4046999 C 5.2810763,1.1749376 2.1305782,3.5688156 1.366201,6.9894717 0.99854517,8.6740525 0.95930905,10.541674 1.0276089,12.254835 c 0.097363,2.456797 0.1162549,4.909297 0.3429518,7.356121 0.1567216,1.62527 0.4301189,3.237607 0.8181445,4.824931 0.7265917,2.931568 3.6678439,5.371216 6.5495056,6.366486 3.0852562,1.037959 6.4031742,1.210297 9.5823222,0.497675 0.349703,-0.08011 0.695595,-0.173027 1.037554,-0.278878 0.771649,-0.241662 1.677,-0.511946 2.342554,-0.986716 0.0091,-0.0066 0.01662,-0.01524 0.02189,-0.02518 0.0053,-0.0099 0.0082,-0.02084 0.0086,-0.03203 v -2.370972 c -1.63e-4,-0.01046 -0.0027,-0.02076 -0.0074,-0.03012 -0.0047,-0.0094 -0.01147,-0.01755 -0.01986,-0.024 -0.0084,-0.0064 -0.01808,-0.01095 -0.02842,-0.01322 -0.01038,-0.0023 -0.02112,-0.0022 -0.03146,1.22e-4 -2.036837,0.478783 -4.124067,0.718783 -6.218188,0.715013 -3.603891,0 -4.573175,-1.683162 -4.850756,-2.383864 -0.22312,-0.605586 -0.364809,-1.237329 -0.421444,-1.879086 -5.68e-4,-0.01074 0.0015,-0.02153 0.0059,-0.03138 0.0044,-0.0099 0.01119,-0.01857 0.01966,-0.02542 0.0085,-0.0068 0.01853,-0.01155 0.02923,-0.01386 0.0107,-0.0023 0.02181,-0.0021 0.03243,6.08e-4 2.002904,0.475541 4.05608,0.715541 6.116471,0.715014 0.495527,0 0.989594,0 1.485162,-0.01285 2.072229,-0.0572 4.256351,-0.161594 6.295175,-0.553459 0.05088,-0.01 0.101716,-0.01857 0.145337,-0.03146 3.215878,-0.607743 6.276283,-2.515418 6.58727,-7.346066 0.01163,-0.190176 0.0407,-1.99204 0.0407,-2.189391 0.0015,-0.670662 0.219446,-4.7577158 -0.03199,-7.2688368 z M 25.929384,19.287767 h -3.381527 v -8.151202 c 0,-1.7160396 -0.726608,-2.5912287 -2.204513,-2.5912287 -1.624662,0 -2.438432,1.0353239 -2.438432,3.0803097 v 4.461689 h -3.361216 v -4.461689 c 0,-2.0449858 -0.815229,-3.0803097 -2.439891,-3.0803097 -1.469189,0 -2.2030538,0.8751891 -2.2045133,2.5912287 v 8.151202 H 6.5206436 v -8.39862 c 0,-1.7160405 0.4451756,-3.0793376 1.3354863,-4.0898915 0.9184052,-1.008162 2.1231077,-1.525824 3.6184451,-1.525824 1.730716,0 3.038594,0.6549323 3.9105,1.9634186 l 0.841418,1.3900132 0.842838,-1.3900132 c 0.871905,-1.3084863 2.179783,-1.9634186 3.907621,-1.9634186 1.493878,0 2.69854,0.517662 3.619864,1.525824 0.890351,1.0096215 1.335486,2.3729185 1.335486,4.0898915 z"
+ fill="inherit"
+ id="path2"
+ style="stroke-width:0.405405" />
+</svg>
=====================================
www.videolan.org/include/footer.php
=====================================
@@ -19,6 +19,9 @@ function footer($tag = "", $alternate_lang=array(), $additional_class = "") {
<a class="social" href="https://www.twitter.com/videolan">
<i class="icon-twitter"></i>
</a>
+ <a class="social" href="https://floss.social/@videolan">
+ <i class="icon-mastodon"></i>
+ </a>
</div>
</div>
<div class="col-xs-6 col-md-2">
=====================================
www.videolan.org/include/header.php
=====================================
@@ -159,9 +159,6 @@ function start_head( $title,
<meta name="apple-itunes-app" content="app-id=650377962"/>
<title><?php echo _( $title ); ?> - VideoLAN</title>
- <a rel="me" href="https://floss.social/@VLC_Android">Mastodon</a>
- <a rel="me" href="https://floss.social/@videolan">Mastodon</a>
-
<?php /* Additional Meta */
if( isset($additional_meta) ) {
foreach($additional_meta as $meta) {
=====================================
www.videolan.org/index.php
=====================================
@@ -263,6 +263,12 @@ include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");
<a class="social" href="https://www.facebook.com/vlc.media.player">
<i class="icon-facebook"></i>
</a>
+ <!-- Also acts as verification for VLC's Mastodon account -->
+ <a class="social" rel="me" href="https://floss.social/@videolan">
+ <i class="icon-mastodon"></i>
+ </a>
+ <!-- Verification for VLC Android Mastodon account. Not displayed -->
+ <a rel="me" style="display:none;" href="https://floss.social/@VLC_Android">Mastodon</a>
</span>
</h1>
</div>
=====================================
www.videolan.org/style/style.scss
=====================================
@@ -966,6 +966,12 @@ a.social {
background-color: #00ACED;
}
}
+ .icon-mastodon {
+ background-image: url('//images.videolan.org/images/icons/social/mastodon.svg');
+ &:hover {
+ background-color: #563ACC;
+ }
+ }
}
/* ================================= DONATE BOX ================================== */
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/034ebd33d7c3bc9372f9494d1ae16cb491a77f2e
--
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/034ebd33d7c3bc9372f9494d1ae16cb491a77f2e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the www-doc
mailing list