-
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
6 changed files
with
76 additions
and
60 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
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,16 +1,10 @@ | ||
export default function Bio() { | ||
|
||
return <div className="card"> | ||
|
||
<div className="thumb" style={ { backgroundImage: 'url(userpic.gif)' } }/> | ||
import Card from '../Card'; | ||
|
||
<article> | ||
<h1>Maksim Korinets</h1> | ||
|
||
<span>freelance software engineer</span> | ||
|
||
<p>Embrace simplicity: there is hard work behind it (most of the time).</p> | ||
</article> | ||
export default function Bio() { | ||
|
||
</div> | ||
return <Card thumb="userpic.gif" | ||
major="Maksim Korinets" | ||
minor="freelance software engineer" | ||
content="Embrace simplicity: there is hard work behind it (most of the time)." /> | ||
} |
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,8 @@ | ||
import Card from '../Card'; | ||
|
||
|
||
export default function Email() { | ||
|
||
return <Card thumb="gmail.gif" major="mkorinets@gmail.com" minor="hangouts on" href="mailto:mkorinets@gmail.com" | ||
content="Its a good way to start communication with an introductory email or message. Respect the working vibe." /> | ||
} |
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,34 +1,15 @@ | ||
import useGithub from '../../hooks/useGithub'; | ||
import Card from '../Card'; | ||
|
||
|
||
export default function GitHub() { | ||
|
||
const { yentsun, lastEvent } = useGithub(); | ||
|
||
return <div className="card" onClick={ () => window.location = 'https://github.com/yentsun' }> | ||
|
||
{ ! yentsun && | ||
<h1>Loading...</h1> } | ||
|
||
<div className="thumb" style={{ backgroundImage: 'url(github.gif)' }}/> | ||
|
||
<article> | ||
{ yentsun && <> | ||
|
||
<h1>repos: { yentsun.public_repos }</h1> | ||
|
||
<span>followers: { yentsun.followers }</span> | ||
|
||
{ lastEvent && | ||
<p> | ||
{ lastEvent.name }: | ||
[{ lastEvent.type }] { lastEvent.text } | ||
({ lastEvent.createdAgo } ago) | ||
</p> } | ||
|
||
</> } | ||
|
||
</article> | ||
|
||
</div> | ||
return <Card isLoading={ ! yentsun } thumb="github.gif" | ||
major={`repos: ${yentsun?.public_repos}` } | ||
minor={ `followers: ${yentsun.followers}` } | ||
content={ lastEvent | ||
? `${lastEvent.name}: [${lastEvent.type}] ${lastEvent.text} (${lastEvent.createdAgo} ago)` | ||
: null } /> | ||
} |
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,34 @@ | ||
import useGithub from '../../hooks/useGithub'; | ||
|
||
|
||
export default function GitHub() { | ||
|
||
const { yentsun, lastEvent } = useGithub(); | ||
|
||
return <div className="card" onClick={ () => window.location = 'https://github.com/yentsun' }> | ||
|
||
{ ! yentsun && | ||
<h1>Loading...</h1> } | ||
|
||
<div className="thumb" style={{ backgroundImage: 'url(github.gif)' }}/> | ||
|
||
<article> | ||
{ yentsun && <> | ||
|
||
<h1>repos: { yentsun.public_repos }</h1> | ||
|
||
<span>followers: { yentsun.followers }</span> | ||
|
||
{ lastEvent && | ||
<p> | ||
{ lastEvent.name }: | ||
[{ lastEvent.type }] { lastEvent.text } | ||
({ lastEvent.createdAgo } ago) | ||
</p> } | ||
|
||
</> } | ||
|
||
</article> | ||
|
||
</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