Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implements navbar #16

Merged
merged 3 commits into from
Feb 16, 2021
Merged

feat: implements navbar #16

merged 3 commits into from
Feb 16, 2021

Conversation

arufonsekun
Copy link
Member

@arufonsekun arufonsekun commented Feb 15, 2021

@@ -0,0 +1,36 @@
import React, {Component} from "react";
import "./navbar.scsss";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ocorreu este bug para mim:

image

Acredito que o import esteja incorreto:

Suggested change
import "./navbar.scsss";
import "./navbar.scss";

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opa, hei de arrumar

Copy link
Member

@jeanchilger jeanchilger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A navbar ficou bem bonita, no entanto ocorreu uma sobreposição, talvez pela navbar estar transparente (não sei se foi intencional):
image

Além disso, adicionei alguns comentários/sugestões à respeito do layout de código. Levarei algumas discussões à issue #5.


return (
<nav className="navbar navbar-fixed">
<a href={home} className="nav-item">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acredito que deveríamos utilizar um componente Link para isto, como indicado na documentação;

import "./navbar.scss";

class Navbar extends Component {
render(){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De acordo com o style guide do airbnb, adicionar o seguinte espaçamento melhora a legibilidade:

Suggested change
render(){
render () {

@@ -10,6 +11,7 @@ export default class IndexPage extends Component {
render() {
return (
<div>
<Navbar/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Também de acordo com o style guide do airbnb, seria "correto" utilizar o seguinte espaçamento:

Suggested change
<Navbar/>
<Navbar />

Copy link
Member

@jeanchilger jeanchilger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Apenas se formos seguir os padrões de código como na issue #5, há algumas inconsistências. Se as recomendações da issue estão incorretas, uma discussão deve ser levantada para encontrar padrões melhores e adotá-los pelo projeto todo.

@arufonsekun arufonsekun merged commit 1a73a75 into master Feb 16, 2021
@arufonsekun arufonsekun deleted the 11 branch February 16, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementar Navbar
2 participants