ソースを参照

Add social media buttons

Johannes Zellner 10 年 前
親
コミット
96b17d205d
2 ファイル変更、43 行追加、1 行削除
  1. 36 0
      css/theme.css
  2. 7 1
      index.html

+ 36 - 0
css/theme.css

@@ -106,3 +106,39 @@ footer:hover {
     color: white;
     box-shadow: 0 4px 17px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);
 }
+
+.sticky {
+    position: fixed;
+    right: 10px;
+    top: 10px;
+    z-index: 1000;
+
+}
+
+@media screen and (max-width: 768px) {
+    .sticky {
+        display: none;
+    }
+}
+
+.social-link {
+    height: 32px;
+    width: 32px;
+    display: inline-block;
+    margin: 10px;
+    transition: 0.5s;
+}
+
+.social-link.github {
+    background: url('/img/social_sprites.png') no-repeat -210px -80px;
+}
+.social-link.github:hover ,.social-link.github:focus {
+    background: url('/img/social_sprites.png') no-repeat -210px -120px;
+}
+
+.social-link.twitter {
+    background: url('/img/social_sprites.png') no-repeat 0 0;
+}
+.social-link.twitter:hover ,.social-link.twitter:focus {
+    background: url('/img/social_sprites.png') no-repeat 0 -39px;
+}

+ 7 - 1
index.html

@@ -67,6 +67,11 @@
         </div>
     </div>
 
+    <div class="sticky">
+        <a href="https://github.com/nebulade/guacamoly" class="social-link github"></a><br/>
+        <a href="https://twitter.com/intent/tweet?text=Guacamoly a personal data manager http://guacamoly.rocks" class="social-link twitter" target="_blank"></a><br/>
+    </div>
+
     <header>
         <div class="container-fluid">
             <div class="row">
@@ -78,6 +83,7 @@
         </div>
     </header>
 
+
     <section id="highlight">
         <div class="container-fluid">
             <div class="row">
@@ -180,7 +186,7 @@
             <div class="row">
                 <div class="col-md-8 col-md-offset-2">
                     <h4>Get the code, contribute and enjoy</h4>
-                    <a href="https://github.com/nebulade/guacamoly">Fork me on <i class="fa fa-github"></i> Github</a>
+                    <a href="https://github.com/nebulade/guacamoly">Install instructions on Github <i class="fa fa-github"></i></a>
                 </div>
             </div>
         </div>