Skip to content

Commit

Permalink
Add contact section and favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
plhosk committed Jul 28, 2017
1 parent 548ae09 commit 7b1e188
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 2,165 deletions.
2,139 changes: 1 addition & 2,138 deletions README.md

Large diffs are not rendered by default.

Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico?v=6">

<link href="https://fonts.googleapis.com/css?family=Roboto|Kanit" rel="stylesheet">

Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"short_name": "Portfolio",
"name": "Portfolio of Web Programming",
"name": "Paul Hoskinson's Web Programming Portfolio",
"icons": [
{
"src": "favicon.ico",
"sizes": "192x192",
"sizes": "160x160",
"type": "image/png"
}
],
Expand Down
5 changes: 5 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@
height: 10px;
}
}

.App-footer {
text-align: right;
font-size: 1em;
}
17 changes: 13 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,24 @@ const App = () => (
<div className="App-title-divider" />
<Introduction />
<div className="App-title-divider" ref={(section) => { this.portfolio = section }} />
<SectionHeader text="Portfolio" color="#b2dbd5" />
<SectionHeader
text="Portfolio"
color="#b2dbd5"
handleClickTop={() => scrollToComponent(this.pagetop, scrollOptions)}
/>
<Projects />
<div className="App-title-divider" ref={(section) => { this.contact = section }} />
<SectionHeader text="Contact" color="#b2dbd5" />
<SectionHeader
text="Contact"
color="#fe7a47"
handleClickTop={() => scrollToComponent(this.pagetop, scrollOptions)}
/>
<Contact />
</Content>

<Footer>
2017 Paul Hoskinson
<Footer className="App-footer">
Site created in 2017 by Paul Hoskinson &nbsp;&nbsp;
<a href="https://github.com/plhosk/portfolio">GitHub</a>
</Footer>

</Layout>
Expand Down
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

13 changes: 7 additions & 6 deletions src/Contact.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.Contact-outer-div {
border: 2px solid red;
}
.Contact-outer-div {
margin-bottom: 30px;
}

.Contact-header {
border: 2px solid blue;
}
.Contact-email {
font-size: 1.5em;
text-align: center;
}
15 changes: 13 additions & 2 deletions src/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ import React from 'react'

import './Contact.css'

const abc = 'mai'
const use = 'plhosk'
const ser = '@gm'
const tld = 'om'

const Contact = () => (
<div className="Contact-outer-div">
<div className="Contact-header">
Contact
<div className="Contact-email">
I can be reached by email at the following address: <a
className="Contact-email-link"
href={`${abc}lto:${use}${ser}ail.c${tld}`}
target="_blank"
>
{`${use}${ser}ail.c${tld}`}
</a>
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/Introduction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Introduction = () => (
Full-stack Web Developer
</div>
<div className="Introduction-description">
Javascript . React . Node.js . HTML . CSS
Javascript . React . Node.js . UI/UX
</div>
<div className="Introduction-blurb">
Hello, I&apos;m a web developer currently living in Victoria, BC.
Expand Down
37 changes: 34 additions & 3 deletions src/SectionHeader.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.SectionHeader-main {
margin: 20px auto;
margin: 0 auto;
margin-top: 40px;
margin-bottom: 20px;
display: flex;
flex-flow: row nowrap;
justify-content: center;
Expand All @@ -15,7 +17,7 @@
}

.SectionHeader-background-color {
height: 10px;
height: 6px;
}

.SectionHeader-title {
Expand All @@ -27,5 +29,34 @@
border-width: 5px;
border-style: solid;
border-radius: 40px;
margin: 0 -3px;
/* margin: 0 -3px; */
margin: 0;
}

.SectionHeader-ph {
font-family: 'Kanit', sans-serif;
font-size: 2em;
line-height: 1.25em;
height: 48px;
margin: 10px;
background-color: #404040;
padding: 4px;
/* border-radius: 8px; */
transition: all 0.2s ease;
}

.SectionHeader-ph:hover {
background-color: #777;
}

.SectionHeader-ph-p {
color: #92aac7;
}

.SectionHeader-ph-h {
color: #fdd475;
}

.SectionHeader-ph-arrow {
color: #b3de81;
}
13 changes: 13 additions & 0 deletions src/SectionHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,32 @@ const SectionHeader = (props) => {

return (
<div className="SectionHeader-main">
<HeaderLine />
<HeaderLine />
<div
className="SectionHeader-title"
style={{ borderColor: props.color }}
>{props.text}</div>
<HeaderLine />
<div
className="SectionHeader-ph"
onClick={props.handleClickTop}
role="button"
tabIndex={0}
>
<span className="SectionHeader-ph-p">p</span>
<span className="SectionHeader-ph-h">h</span>
<span className="SectionHeader-ph-arrow">&uarr;</span>
</div>
<HeaderLine />
</div>
)
}

SectionHeader.propTypes = {
text: PropTypes.string.isRequired,
color: PropTypes.string.isRequired,
handleClickTop: PropTypes.func.isRequired,
}

export default SectionHeader

0 comments on commit 7b1e188

Please sign in to comment.