Skip to content

Commit

Permalink
Ajuste de estilos nav
Browse files Browse the repository at this point in the history
  • Loading branch information
hendaniel committed Sep 7, 2020
1 parent 2fb4e87 commit 38be913
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 41 deletions.
21 changes: 21 additions & 0 deletions src/components/FilterPanel/filter.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.pagination-info,
.filter {
font-family: "Raleway", sans-serif;
text-transform: uppercase;
font-size: 15px;
letter-spacing: 2px;
font-weight: 1000;
color: #292727;
}

.filter {
margin-left: 70px;
margin-right: 10px;
}
.filter-select {
padding-left: 5px;
outline: none;
border: none;
border-radius: 100px;
height: 19px;
}
23 changes: 1 addition & 22 deletions src/components/Products/products.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,28 +145,7 @@
border: none;
}

.pagination-info,
.filter {
font-family: "Raleway", sans-serif;
text-transform: uppercase;
font-size: 15px;
letter-spacing: 2px;
font-weight: 1000;
color: #292727;
}

.filter {
margin-left: 70px;
margin-right: 10px;
}
.filter-select {
padding-left: 5px;
outline: none;
border: none;
border-radius: 100px;
height: 19px;
}
.empty {
display: flex;
justify-content: center;
}
}
13 changes: 7 additions & 6 deletions src/components/User/UserPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const UserPanel = () => {
return (
<li key={key}>
<NavLink
exact
className="nav-item"
to={route.path}
activeClassName="selected-nav"
Expand All @@ -38,15 +39,15 @@ const UserPanel = () => {
});
return (
<>
<div className="profile">
{coinsModal && (
<CoinsModal isShowing={coinsModal} hide={toggleCoinsModal} />
)}
{coinsModal && (
<CoinsModal isShowing={coinsModal} hide={toggleCoinsModal} />
)}
<div className="user-panel">
<div className="navigation">
<ul className="options">{links}</ul>
</div>
<div className="user-panel">
<div>{name}</div>
<div className="profile">
<div className="name">{name}</div>
<div className="coins-user">
<img src={coin} onClick={openCoinsModal} alt="Coins" />
<span className="points">{points}</span>
Expand Down
49 changes: 36 additions & 13 deletions src/components/User/user.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.user-panel {
display: flex;
justify-content: flex-end;
align-items: center;
background-color: #ffffff;
width: 100%;
Expand All @@ -13,22 +12,46 @@
font-weight: 500;
color: #868686;

.coins-user {
margin-right: 10px;
border-radius: 100px;
.profile {
width: 50%;
display: flex;
justify-content: center;
background-color: #ededed;
width: 110px;
span {
display: inline-flex;
justify-content: flex-end;
.name {
display: flex;
align-items: center;
color: gray;
}
.coins-user {
margin-right: 10px;
border-radius: 100px;
display: flex;
justify-content: center;
background-color: #ededed;
width: 110px;
span {
display: inline-flex;
align-items: center;
color: gray;
}
}
img {
&:hover {
cursor: pointer;
}
}
}
img {
&:hover {
cursor: pointer;

.navigation {
width: 50%;
display: flex;
ul > li {
display: inline-block;
margin-left: 40px;
}
}
.nav-item {
color: gray;
}
.selected-nav {
color: #45d2f7;
}
}

0 comments on commit 38be913

Please sign in to comment.