-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Housekeeping Cleaning Optimized MDX layout Done hooks Added footer More light/dark theme
- Loading branch information
Marvin Heilemann
committed
Jan 12, 2020
1 parent
e4fdc15
commit 627239a
Showing
66 changed files
with
772 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React from 'react' | ||
|
||
import AngularIcon from '../images/icons/angular.svg' | ||
import AppleIcon from '../images/icons/apple.svg' | ||
import CodepenIcon from '../images/icons/codepen.svg' | ||
import DiscordIcon from '../images/icons/discord.svg' | ||
import DribbbleIcon from '../images/icons/dribbble.svg' | ||
import GithubIcon from '../images/icons/github.svg' | ||
import HackernewsIcon from '../images/icons/hackernews.svg' | ||
import InstagramIcon from '../images/icons/instagram.svg' | ||
import IonicIcon from '../images/icons/ionic.svg' | ||
import LeagueOfLegendsIcon from '../images/icons/league-of-legends.svg' | ||
import MarkdownIcon from '../images/icons/markdown.svg' | ||
import NodejsIcon from '../images/icons/nodejs.svg' | ||
import NpmIcon from '../images/icons/npm.svg' | ||
import PythonIcon from '../images/icons/python.svg' | ||
import SassIcon from '../images/icons/sass.svg' | ||
import SteamIcon from '../images/icons/steam.svg' | ||
import TwitchIcon from '../images/icons/twitch.svg' | ||
import TwitterIcon from '../images/icons/twitter.svg' | ||
import UnsplashIcon from '../images/icons/unsplash.svg' | ||
import WindowsIcon from '../images/icons/windows.svg' | ||
import WordpressIcon from '../images/icons/wordpress.svg' | ||
import XingIcon from '../images/icons/xing.svg' | ||
import YoutubeIcon from '../images/icons/youtube.svg' | ||
|
||
const icons = { | ||
angular: <AngularIcon />, | ||
apple: <AppleIcon />, | ||
codepen: <CodepenIcon />, | ||
discord: <DiscordIcon />, | ||
dribbble: <DribbbleIcon />, | ||
github: <GithubIcon />, | ||
hackernews: <HackernewsIcon />, | ||
instagram: <InstagramIcon />, | ||
ionic: <IonicIcon />, | ||
lol: <LeagueOfLegendsIcon />, | ||
markdown: <MarkdownIcon />, | ||
nodejs: <NodejsIcon />, | ||
npm: <NpmIcon />, | ||
python: <PythonIcon />, | ||
sass: <SassIcon />, | ||
steam: <SteamIcon />, | ||
twitch: <TwitchIcon />, | ||
twitter: <TwitterIcon />, | ||
unsplash: <UnsplashIcon />, | ||
windows: <WindowsIcon />, | ||
wordpress: <WordpressIcon />, | ||
xing: <XingIcon />, | ||
youtube: <YoutubeIcon />, | ||
} | ||
|
||
const Icon = ({ name }) => { | ||
const IconElement = icons[name] || <span>Icon not found</span> | ||
return ( | ||
<span className="icon" name={name}> | ||
{IconElement} | ||
</span> | ||
) | ||
} | ||
|
||
export default Icon |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
import React from 'react' | ||
import { useStaticQuery, graphql } from 'gatsby' | ||
import { Link } from 'gatsby' | ||
|
||
import logo from '../images/logo-white.svg' | ||
import { useSiteData } from '../hooks/use-site-data' | ||
import LogoComponent from '../images/logo.svg' | ||
|
||
const Logo = () => { | ||
const data = useStaticQuery(query) | ||
const sitedata = useSiteData() | ||
|
||
return ( | ||
<div id="logo"> | ||
<a href="/"> | ||
<img src={logo} alt={data.site.siteMetadata.title} /> | ||
</a> | ||
<div className="logo"> | ||
<Link href="/"> | ||
<LogoComponent alt={`Logo of ${sitedata.title}`} /> | ||
</Link> | ||
</div> | ||
) | ||
} | ||
|
||
const query = graphql` | ||
query SiteMetaQuery { | ||
site { | ||
siteMetadata { | ||
title | ||
} | ||
} | ||
} | ||
` | ||
|
||
export default Logo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useStaticQuery, graphql } from 'gatsby' | ||
|
||
export const useFooterLinks = () => { | ||
const results = useStaticQuery( | ||
graphql` | ||
query FooterLinks { | ||
site { | ||
siteMetadata { | ||
footerLinks { | ||
name | ||
link | ||
} | ||
} | ||
} | ||
} | ||
` | ||
) | ||
|
||
return results.site.siteMetadata.footerLinks | ||
} |
Oops, something went wrong.