Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Commit

Permalink
Pequenas alterações
Browse files Browse the repository at this point in the history
  • Loading branch information
brneor committed Feb 5, 2020
1 parent e8e6641 commit aa3a6b1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 31 deletions.
1 change: 1 addition & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*/

// You can delete this file if you're not using it
import "./src/styles/global.css"
6 changes: 2 additions & 4 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ const Header = (props) => (
</div>
<nav>
<ul>
{/* <li><a href="javascript:;" onClick={() => {props.onOpenArticle('intro')}}>Intro</a></li> */}
<li><a href="javascript:;" onClick={() => {props.onOpenArticle('work')}}>Work</a></li>
<li><a href="javascript:;" onClick={() => {props.onOpenArticle('about')}}>About</a></li>
<li><a href="javascript:;" onClick={() => {props.onOpenArticle('contact')}}>Contact</a></li>
<li><a href="javascript:;" onClick={() => {props.onOpenArticle('about')}}>Sobre</a></li>
<li><a href="javascript:;" onClick={() => {props.onOpenArticle('contact')}}>Contato</a></li>
</ul>
</nav>
</header>
Expand Down
39 changes: 12 additions & 27 deletions src/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,53 +13,38 @@ class Main extends React.Component {
return (
<div ref={this.props.setWrapperRef} id="main" style={this.props.timeout ? {display: 'flex'} : {display: 'none'}}>

<article id="intro" className={`${this.props.article === 'intro' ? 'active' : ''} ${this.props.articleTimeout ? 'timeout' : ''}`} style={{display:'none'}}>
<h2 className="major">Intro</h2>
<span className="image main"><img src={pic01} alt="" /></span>
<p>Aenean ornare velit lacus, ac varius enim ullamcorper eu. Proin aliquam facilisis ante interdum congue. Integer mollis, nisl amet convallis, porttitor magna ullamcorper, amet egestas mauris. Ut magna finibus nisi nec lacinia. Nam maximus erat id euismod egestas. By the way, check out my <a href="#work">awesome work</a>.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis dapibus rutrum facilisis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam tristique libero eu nibh porttitor fermentum. Nullam venenatis erat id vehicula viverra. Nunc ultrices eros ut ultricies condimentum. Mauris risus lacus, blandit sit amet venenatis non, bibendum vitae dolor. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In non lorem sit amet elit placerat maximus. Pellentesque aliquam maximus risus, vel sed vehicula.</p>
{close}
</article>

<article id="work" className={`${this.props.article === 'work' ? 'active' : ''} ${this.props.articleTimeout ? 'timeout' : ''}`} style={{display:'none'}}>
<h2 className="major">Work</h2>
<span className="image main"><img src={pic02} alt="" /></span>
<p>This is where I'll write about my work.</p>
{close}
</article>

<article id="about" className={`${this.props.article === 'about' ? 'active' : ''} ${this.props.articleTimeout ? 'timeout' : ''}`} style={{display:'none'}}>
<h2 className="major">About</h2>
<span className="image main"><img src={pic03} alt="" /></span>
<p>This is where I'll write about me and my hobbies.</p>
<h2 className="major">Sobre</h2>
{/* <span className="image main"><img src={pic03} alt="" /></span> */}
<p>Analista de desenvolvimento de sistemas e entusiasta de teclados mecânicos.</p>
{close}
</article>

<article id="contact" className={`${this.props.article === 'contact' ? 'active' : ''} ${this.props.articleTimeout ? 'timeout' : ''}`} style={{display:'none'}}>
<h2 className="major">Contact</h2>
<h2 className="major">Contato</h2>
<form method="post" action="#">
<div className="field half first">
<label htmlFor="name">Name</label>
<label htmlFor="name">Nome</label>
<input type="text" name="name" id="name" />
</div>
<div className="field half">
<label htmlFor="email">Email</label>
<input type="text" name="email" id="email" />
</div>
<div className="field">
<label htmlFor="message">Message</label>
<label htmlFor="message">Mensagem</label>
<textarea name="message" id="message" rows="4"></textarea>
</div>
<ul className="actions">
<li><input type="reset" value="Reset" /></li>
<li><input type="submit" value="Send Message" className="special" /></li>
{/* <li><input type="reset" value="Reset" /></li> */}
<li><input type="submit" value="Enviar mensagem" className="special" /></li>
</ul>
</form>
<ul className="icons">
<li><a href="#" className="icon fa-twitter"><span className="label">Twitter</span></a></li>
<li><a href="#" className="icon fa-facebook"><span className="label">Facebook</span></a></li>
<li><a href="#" className="icon fa-instagram"><span className="label">Instagram</span></a></li>
<li><a href="#" className="icon fa-github"><span className="label">GitHub</span></a></li>
{/* <li><a href="#" className="icon fa-twitter"><span className="label">Twitter</span></a></li> */}
{/* <li><a href="#" className="icon fa-facebook"><span className="label">Facebook</span></a></li> */}
{/* <li><a href="#" className="icon fa-instagram"><span className="label">Instagram</span></a></li> */}
<li><a href="https://github.com/brneor" className="icon fa-github"><span className="label">GitHub</span></a></li>
</ul>
{close}
</article>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
header nav ul li a {
width: 200px;
}

0 comments on commit aa3a6b1

Please sign in to comment.