Added Props support to images, improved logo
This commit is contained in:
@ -129,6 +129,7 @@ export default class Image extends React.Component {
|
|||||||
<picture>
|
<picture>
|
||||||
{ sourceElements }
|
{ sourceElements }
|
||||||
<img
|
<img
|
||||||
|
{ ...sourceProps }
|
||||||
onLoad={ this.onLoad.bind(this) }
|
onLoad={ this.onLoad.bind(this) }
|
||||||
onError={ this.onError.bind(this) }
|
onError={ this.onError.bind(this) }
|
||||||
src={ defaultSrc }
|
src={ defaultSrc }
|
||||||
|
@ -54,7 +54,23 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
"platforms": {
|
"platforms": {
|
||||||
"heading": "Platforms I work with",
|
"heading": "Platforms I work with",
|
||||||
"footer": "... And many more!"
|
"footer": "... And many more!",
|
||||||
|
"shopify": "Shopify",
|
||||||
|
"react": "React",
|
||||||
|
"monogame": "MonoGame",
|
||||||
|
"nodejs": "NodeJS",
|
||||||
|
"csharp": "C#",
|
||||||
|
"php": "PHP",
|
||||||
|
"java": "Java",
|
||||||
|
"neto": "neto",
|
||||||
|
"pgsql": "PostgreSQL",
|
||||||
|
"mysql": "MySQL",
|
||||||
|
"heroku": "Heroku",
|
||||||
|
"opengl": "OpenGL",
|
||||||
|
"discord": "Discord",
|
||||||
|
"twitch": "Twitch",
|
||||||
|
"twitter": "Twitter",
|
||||||
|
"googlecloud": "Google Cloud Platform"
|
||||||
},
|
},
|
||||||
"work": {
|
"work": {
|
||||||
"heading": "Some of my work",
|
"heading": "Some of my work",
|
||||||
|
@ -28,6 +28,7 @@ import { NavLink } from 'react-router-dom'
|
|||||||
import PageBoundary from './../../page/PageBoundary';
|
import PageBoundary from './../../page/PageBoundary';
|
||||||
import Language from './../../language/Language';
|
import Language from './../../language/Language';
|
||||||
import HamburgerMenu from './../menu/HamburgerMenu';
|
import HamburgerMenu from './../menu/HamburgerMenu';
|
||||||
|
import Image from './../../image/Image';
|
||||||
|
|
||||||
const NavbarLink = function(props) {
|
const NavbarLink = function(props) {
|
||||||
return (
|
return (
|
||||||
@ -51,10 +52,13 @@ class Navbar extends React.Component {
|
|||||||
|
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
<NavLink to="/" className="c-navbar__logo-container" activeClassName="is-active">
|
<NavLink to="/" className="c-navbar__logo-container" activeClassName="is-active">
|
||||||
<img
|
<Image
|
||||||
src={ require('./../../images/logo.svg') }
|
src={ require('./../../images/logo.svg') }
|
||||||
className="c-navbar__logo"
|
className="c-navbar__logo"
|
||||||
alt={ Language.get("site.name") }
|
alt={ Language.get("site.name") }
|
||||||
|
title={ Language.get("site.name") }
|
||||||
|
width="780"
|
||||||
|
height="200"
|
||||||
/>
|
/>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ const Platform = (props) => {
|
|||||||
|
|
||||||
if(props.to) {
|
if(props.to) {
|
||||||
children = (
|
children = (
|
||||||
<a href={props.to} target="_blank" className="p-home-page__brands-link">
|
<a href={props.to} target="_blank" className="p-home-page__brands-link" title={props.title}>
|
||||||
{image}
|
{image}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
@ -77,12 +77,14 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/shopify/shopify_glyph.svg')}
|
src={require('./../../../images/branding/shopify/shopify_glyph.svg')}
|
||||||
from="left"
|
from="left"
|
||||||
to="//www.shopify.com"
|
to="//www.shopify.com"
|
||||||
|
title={ Language.get("pages.home.platforms.shopify") }
|
||||||
/>
|
/>
|
||||||
{/* React */}
|
{/* React */}
|
||||||
<Platform
|
<Platform
|
||||||
src={require('./../../../images/branding/react/react-logo.svg')}
|
src={require('./../../../images/branding/react/react-logo.svg')}
|
||||||
from="top"
|
from="top"
|
||||||
to="//reactjs.org"
|
to="//reactjs.org"
|
||||||
|
title={ Language.get("pages.home.platforms.react") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* MonoGame */}
|
{/* MonoGame */}
|
||||||
@ -90,6 +92,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/monogame/monogame-logo.svg')}
|
src={require('./../../../images/branding/monogame/monogame-logo.svg')}
|
||||||
from="bottom"
|
from="bottom"
|
||||||
to="http://www.monogame.net"
|
to="http://www.monogame.net"
|
||||||
|
title={ Language.get("pages.home.platforms.monogame") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* PGSQL */}
|
{/* PGSQL */}
|
||||||
@ -97,6 +100,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/pgsql/pgsql-logo.svg')}
|
src={require('./../../../images/branding/pgsql/pgsql-logo.svg')}
|
||||||
from="right"
|
from="right"
|
||||||
to="//www.postgresql.org"
|
to="//www.postgresql.org"
|
||||||
|
title={ Language.get("pages.home.platforms.pgsql") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* NodeJS */}
|
{/* NodeJS */}
|
||||||
@ -104,6 +108,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/nodejs/nodejs-logo.svg')}
|
src={require('./../../../images/branding/nodejs/nodejs-logo.svg')}
|
||||||
from="top"
|
from="top"
|
||||||
to="//nodejs.org"
|
to="//nodejs.org"
|
||||||
|
title={ Language.get("pages.home.platforms.nodejs") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* C# */}
|
{/* C# */}
|
||||||
@ -111,6 +116,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/csharp/csharp-logo.svg')}
|
src={require('./../../../images/branding/csharp/csharp-logo.svg')}
|
||||||
from="top"
|
from="top"
|
||||||
to="//docs.microsoft.com/en-us/dotnet/csharp/"
|
to="//docs.microsoft.com/en-us/dotnet/csharp/"
|
||||||
|
title={ Language.get("pages.home.platforms.csharp") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* PHP */}
|
{/* PHP */}
|
||||||
@ -118,6 +124,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/php/php-logo.svg')}
|
src={require('./../../../images/branding/php/php-logo.svg')}
|
||||||
from="top"
|
from="top"
|
||||||
to="//php.net"
|
to="//php.net"
|
||||||
|
title={ Language.get("pages.home.platforms.php") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Java */}
|
{/* Java */}
|
||||||
@ -125,13 +132,15 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/java/java-logo.svg')}
|
src={require('./../../../images/branding/java/java-logo.svg')}
|
||||||
from="top"
|
from="top"
|
||||||
to="//java.com"
|
to="//java.com"
|
||||||
|
title={ Language.get("pages.home.platforms.java") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* neto */}
|
{/* neto */}
|
||||||
<Platform
|
<Platform
|
||||||
src={require('./../../../images/branding/neto/neto-logo.svg')}
|
src={require('./../../../images/branding/neto/neto-logo.svg')}
|
||||||
from="bottom"
|
from="bottom"
|
||||||
to="http://www.monogame.net"
|
to="//www.neto.com.au"
|
||||||
|
title={ Language.get("pages.home.platforms.neto") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* MySQL */}
|
{/* MySQL */}
|
||||||
@ -139,6 +148,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/mysql/mysql-logo.svg')}
|
src={require('./../../../images/branding/mysql/mysql-logo.svg')}
|
||||||
from="bottom"
|
from="bottom"
|
||||||
to="//www.mysql.com"
|
to="//www.mysql.com"
|
||||||
|
title={ Language.get("pages.home.platforms.mysql") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Heroku */}
|
{/* Heroku */}
|
||||||
@ -146,6 +156,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/heroku/heroku-logo.svg')}
|
src={require('./../../../images/branding/heroku/heroku-logo.svg')}
|
||||||
from="bottom"
|
from="bottom"
|
||||||
to="//heroku.com"
|
to="//heroku.com"
|
||||||
|
title={ Language.get("pages.home.platforms.heroku") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* OpenGL */}
|
{/* OpenGL */}
|
||||||
@ -153,6 +164,7 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/opengl/opengl-logo.svg')}
|
src={require('./../../../images/branding/opengl/opengl-logo.svg')}
|
||||||
from="bottom"
|
from="bottom"
|
||||||
to="//www.opengl.org"
|
to="//www.opengl.org"
|
||||||
|
title={ Language.get("pages.home.platforms.opengl") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Discord */}
|
{/* Discord */}
|
||||||
@ -160,6 +172,7 @@ export default (props) => {
|
|||||||
src={ require('./../../../images/branding/discord/discord-logo.svg') }
|
src={ require('./../../../images/branding/discord/discord-logo.svg') }
|
||||||
from="right"
|
from="right"
|
||||||
to="//discordapp.com"
|
to="//discordapp.com"
|
||||||
|
title={ Language.get("pages.home.platforms.discord") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Twitch */}
|
{/* Twitch */}
|
||||||
@ -167,6 +180,7 @@ export default (props) => {
|
|||||||
src={ require('./../../../images/branding/twitch/twitch-logo.svg') }
|
src={ require('./../../../images/branding/twitch/twitch-logo.svg') }
|
||||||
from="right"
|
from="right"
|
||||||
to="//twitch.tv"
|
to="//twitch.tv"
|
||||||
|
title={ Language.get("pages.home.platforms.twitch") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Twitter */}
|
{/* Twitter */}
|
||||||
@ -174,15 +188,15 @@ export default (props) => {
|
|||||||
src={require('./../../../images/branding/twitter/twitter-logo.svg')}
|
src={require('./../../../images/branding/twitter/twitter-logo.svg')}
|
||||||
from="left"
|
from="left"
|
||||||
to="//twitter.com"
|
to="//twitter.com"
|
||||||
|
title={ Language.get("pages.home.platforms.twitter") }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Google Cloud */}
|
{/* Google Cloud */}
|
||||||
<Platform
|
<Platform
|
||||||
src={
|
src={ require('./../../../images/branding/google-cloud/google-cloud-logo.svg') }
|
||||||
require('./../../../images/branding/google-cloud/google-cloud-logo.svg')
|
|
||||||
}
|
|
||||||
from="left"
|
from="left"
|
||||||
to="//console.cloud.google.com"
|
to="//console.cloud.google.com"
|
||||||
|
title={ Language.get("pages.home.platforms.googlecloud") }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user