-
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.
- Loading branch information
Showing
7 changed files
with
96 additions
and
62 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
import React from 'react'; | ||
import Navigation from '../Navigation'; | ||
import Portfolio from '../Portfolio'; | ||
import '../../styles.scss'; | ||
|
||
|
||
export default class App extends React.Component { | ||
render() { | ||
return ( | ||
<div className="container"> | ||
<main className="main"> | ||
<section className="about"> | ||
<h1><span className="emphasis">👋🏻 Hello,</span> my name is Laszlo Heves.</h1> | ||
<blockquote>I have eight years of experience building medium and large sized websites and web applications. I am specialized in creating user facing features from UX planning through site-building to deployment.</blockquote> | ||
</section> | ||
<Portfolio/> | ||
</main> | ||
<div> | ||
<Navigation /> | ||
<div className="container"> | ||
<main className="main"> | ||
<section className="about"> | ||
<h1><span className="emphasis">👋🏻 Hello,</span> my name is Laszlo Heves.</h1> | ||
<blockquote>I'm a Senior Frontend Developer with eight years of experience building medium and large sized websites and web applications with an emphasis on developing user interface related features from UX planning through site-build to deployment.</blockquote> | ||
</section> | ||
<Portfolio/> | ||
</main> | ||
</div> | ||
</div>); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
import React from 'react'; | ||
|
||
export default function PortfolioItem(props) { | ||
return ( | ||
<div className="portfolio__item"> | ||
{props.title} | ||
</div> | ||
); | ||
} | ||
export default class PortfolioItem extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.clickHandler = this.props.url ? this.clickHandler.bind(this) : () => true; | ||
} | ||
|
||
clickHandler() { | ||
window.open(this.props.url, '_blank'); | ||
} | ||
|
||
render() { | ||
const activeClass = this.props.url ? 'portfolio__item--active': ''; | ||
return ( | ||
<div onClick={this.clickHandler} className={`portfolio__item ${activeClass}`}> | ||
{this.props.title} | ||
</div> | ||
); | ||
} | ||
} |
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