Cambios visuales, no mas json en la busqueda

This commit is contained in:
Daniel Cortes
2020-06-03 21:37:36 -04:00
parent c60dec9d9a
commit 49ff517875
2 changed files with 11 additions and 4 deletions

View File

@@ -88,7 +88,6 @@ export class Search extends React.Component {
artists = ( artists = (
<Fragment> <Fragment>
<SearchList artists={this.state.artists}/> <SearchList artists={this.state.artists}/>
<ReactJson src={this.state.artists} enableClipboard={false} displayDataTypes={false}/>
</Fragment> </Fragment>
); );
} }
@@ -97,8 +96,8 @@ export class Search extends React.Component {
<main> <main>
<h1>Busqueda</h1> <h1>Busqueda</h1>
<SearchBar query={this.state.query} onQueryChanged={this.handleQueryChange} history={this.props.history}/> <SearchBar query={this.state.query} onQueryChanged={this.handleQueryChange} history={this.props.history}/>
{paginate && paginate}
{artists ? artists : <p>Loading...</p>} {artists ? artists : <p>Loading...</p>}
{paginate && paginate}
</main> </main>
); );
} }

View File

@@ -1,8 +1,9 @@
:root { :root {
--light-gray: hsl(0, 0%, 95%);
--gray: hsl(0, 0%, 85%); --gray: hsl(0, 0%, 85%);
--dark-gray: hsl(0, 0%, 30%); --dark-gray: hsl(0, 0%, 30%);
--black: hsl(0, 0%, 20%); --black: hsl(0, 0%, 20%);
--emerald: hsl(138, 70%, 50%); --emerald: hsl(138, 70%, 60%);
} }
body { body {
@@ -59,8 +60,11 @@ ul.pagination {
padding: 0 1em; padding: 0 1em;
} }
.page-item.active {
background-color: var(--emerald);
}
.page-item.active a { .page-item.active a {
color: var(--emerald); color: white;
} }
.full-width { .full-width {
@@ -96,6 +100,10 @@ li.entity:not(:first-child) {
border-top: none; border-top: none;
} }
li.entity:hover {
background-color: var(--light-gray)
}
li.entity a { li.entity a {
display: flex; display: flex;