From fc99f67820f56595ea9fa447cc29e9b42f47b97f Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Sat, 4 Jan 2020 13:33:20 +0100 Subject: [PATCH] add Github logo - add logo to index page - add gradient fill so it looks like the other logos, especially facebook - add hover effect --- ui/src/components/social/Github.js | 10 +++++++++- ui/src/components/social/social.module.css | 7 +++---- ui/src/pages/index.js | 2 ++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ui/src/components/social/Github.js b/ui/src/components/social/Github.js index 60ff8f15f..c868c8858 100644 --- a/ui/src/components/social/Github.js +++ b/ui/src/components/social/Github.js @@ -3,7 +3,15 @@ import styles from './social.module.css'; const Github = () => ( - + + + + + + + + + ); diff --git a/ui/src/components/social/social.module.css b/ui/src/components/social/social.module.css index 149fed74a..715bdaa1a 100644 --- a/ui/src/components/social/social.module.css +++ b/ui/src/components/social/social.module.css @@ -58,20 +58,19 @@ .email {} -.facebook stop:first-child, .facebook stop:last-child { +.facebook stop:first-child, .github stop:last-child, .github stop:first-child, .facebook stop:last-child { stop-color: #fff; transition: all 0.5s ease-in-out; } -.facebook:hover stop:first-child{ +.facebook:hover stop:first-child, .github:hover stop:first-child{ stop-color: pink; transition: all 0.5s ease-in-out; } -.facebook:hover stop:last-child{ +.facebook:hover stop:last-child, .github:hover stop:last-child{ stop-color: blue; transition: all 0.5s ease-in-out; } -.github {} /* .instagram path:first-child, .instagram path:nth-child(2) { fill: #fff; diff --git a/ui/src/pages/index.js b/ui/src/pages/index.js index 268d327f2..e2755401c 100644 --- a/ui/src/pages/index.js +++ b/ui/src/pages/index.js @@ -3,6 +3,7 @@ import { graphql } from 'gatsby'; import Layout from '../layouts/Layout'; import Instagram from '../components/social/Instagram'; import Facebook from '../components/social/Facebook'; +import Github from '../components/social/Github'; import Discourse from '../components/social/Discourse'; import Logo from '../../static/media/biopunkkitchen-noBg-centered.svg'; import Hero from '../components/Hero'; @@ -45,6 +46,7 @@ export default ({ data }) => { +