This is an automated email from the ASF dual-hosted git repository.

ianmcook pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 196d7f87d81 [Website] Fix Twitter button and add LinkedIn button (#570)
196d7f87d81 is described below

commit 196d7f87d81e2f15fc77b5f39486465ea360fae3
Author: Ian Cook <[email protected]>
AuthorDate: Fri Jan 10 09:28:54 2025 -0500

    [Website] Fix Twitter button and add LinkedIn button (#570)
    
    This fixes the broken Twitter follow button at the top of the Arrow
    homepage, replacing it with an X follow button. This also adds a
    LinkedIn follow button.
---
 NOTICE.txt             |  4 ++++
 _includes/socials.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 _layouts/home.html     | 11 ++---------
 css/main.scss          |  2 +-
 4 files changed, 54 insertions(+), 10 deletions(-)

diff --git a/NOTICE.txt b/NOTICE.txt
index 786d3897df1..f9a6829016d 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -4,6 +4,10 @@ Copyright 2017-2022 The Apache Software Foundation
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
 
+This product includes software from https://github.com/buttons/github-buttons 
(BSD 2-Clause)
+ * Copyright (c) 2025, なつき
+ * All rights reserved.
+
 The deployed version of the website includes files generated by Jekyll (MIT)
  * Copyright (c) 2008-2022 Tom Preston-Werner and Jekyll contributors
  * https://github.com/jekyll/jekyll
diff --git a/_includes/socials.html b/_includes/socials.html
new file mode 100644
index 00000000000..33e255435a4
--- /dev/null
+++ b/_includes/socials.html
@@ -0,0 +1,47 @@
+{% comment %}
+Unofficial github:buttons
+
+Copyright (c) 2025, なつき
+All rights reserved.
+
+BSD 2-Clause License
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+{% endcomment %}
+<div class="social-badges">
+  <div class="social-badge"> <!-- GitHub -->
+    <a class="github-button" href="https://github.com/apache/arrow"; 
data-size="large" data-show-count="true" aria-label="Star apache/arrow on 
GitHub">Star</a>
+  </div>
+  <style type="text/css">
+    .custom-social-badge{display:inline;padding:4px}.custom-social-badge 
a{text-decoration:none;outline:0}.custom-social-badge 
.widget{display:inline-block;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe
 
UI,Helvetica,Arial,sans-serif;font-size:0;line-height:0;white-space:nowrap}.custom-social-badge
 .btn:not(:last-child){border-radius:.25em 0 0 .25em}.custom-social-badge 
.widget-lg .btn{height:28px;padding:5px 
10px;font-size:12px;line-height:16px}.custom-social-badge .b [...]
+  </style>
+  <div class="custom-social-badge"> <!-- LinkedIn -->
+    <span>
+      <div class="widget widget-lg"><a class="btn" 
href="https://www.linkedin.com/company/apache-arrow/"; rel="noopener" 
target="_blank" aria-label="Follow Apache Arrow on LinkedIn"><svg 
xmlns="http://www.w3.org/2000/svg"; width="16" height="16" viewBox="0 0 16 16" 
fill="none" role="img" aria-hidden="true"><path d="M14.5455 0H1.45455C0.650909 
0 0 0.650909 0 1.45455V14.5455C0 15.3491 0.650909 16 1.45455 16H14.5455C15.3491 
16 16 15.3491 16 14.5455V1.45455C16 0.650909 15.3491 0 14.5455 0ZM5.0 [...]
+    </span>
+  </div>
+  <div class="custom-social-badge"> <!-- X -->
+    <span>
+      <div class="widget widget-lg"><a class="btn" 
href="https://x.com/ApacheArrow"; rel="noopener" target="_blank" 
aria-label="Follow Apache Arrow on X"><svg xmlns="http://www.w3.org/2000/svg"; 
fill="none" viewBox="0 0 16 16" width="16" height="16" role="img" 
aria-hidden="true"><path fill="#000" d="M9.332 6.925 14.544 1h-1.235L8.783 
6.145 5.17 1H1l5.466 7.78L1 14.993h1.235l4.78-5.433 3.816 5.433H15L9.332 
6.925ZM7.64 8.848l-.554-.775L2.68 1.91h1.897l3.556 4.975.554.775 4.622 
6.466h-1.897L7 [...]
+    </span>
+  </div>
+</div>
diff --git a/_layouts/home.html b/_layouts/home.html
index 4bb9602cd85..7b9bacda0ef 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -9,14 +9,7 @@
       <img src="{{ site.baseurl }}/img/arrow-inverse.png" style="max-width: 
70%;"/>
       <p class="lead">The universal columnar format and multi-language toolbox 
for fast data interchange and in-memory analytics</p>
 
-      <div class="social-badges">
-        <div class="social-badge">
-          <a class="github-button" href="https://github.com/apache/arrow"; 
data-size="large" data-show-count="true" aria-label="Star apache/arrow on 
GitHub">Star</a>
-        </div>
-        <div class="social-badge">
-          <a href="https://twitter.com/ApacheArrow?ref_src=twsrc%5Etfw"; 
class="twitter-follow-button" data-show-count="true">Follow 
@ApacheArrow</a><script async src="https://platform.twitter.com/widgets.js"; 
charset="utf-8"></script>
-        </div>
-      </div>
+      {% include socials.html %}
     </div>
   </div>
   <div class="container p-4 pt-5">
@@ -26,7 +19,7 @@
 
     {% include footer.html %}
   </div>
-<!-- Place this tag in your head or just before your close body tag. -->
+
 <script async defer src="https://buttons.github.io/buttons.js";></script>
 </body>
 </html>
diff --git a/css/main.scss b/css/main.scss
index 202f977b568..ffe40235ab2 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -117,5 +117,5 @@ figure {
 
 .social-badge {
   display: inline;
-  padding: 12px;
+  padding: 4px;
 }

Reply via email to