🪧 Logo and positioning

This commit is contained in:
2021-08-12 16:44:52 -07:00
parent d25720caba
commit 9aee8176b0
3 changed files with 10 additions and 7 deletions

BIN
public/threetwo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -11,8 +11,8 @@ const Navbar: React.FunctionComponent = (props) => {
<div className="navbar-brand"> <div className="navbar-brand">
<a className="navbar-item" href="http://bulma.io"> <a className="navbar-item" href="http://bulma.io">
<img <img
src="http://bulma.io/images/bulma-logo.png" src="/public/threetwo.png"
alt="Bulma: a modern CSS framework based on Flexbox" alt="ThreeTwo! A comic book curator"
width="112" width="112"
height="28" height="28"
/> />

View File

@@ -31,7 +31,7 @@ export const Search = ({}: ISearchProps): ReactElement => {
format: "json", format: "json",
limit: "10", limit: "10",
offset: "0", offset: "0",
field_list: "id,name,deck,api_detail_url", field_list: "id,name,deck,api_detail_url,image,description",
resources: "volume", resources: "volume",
}, },
}), }),
@@ -77,16 +77,19 @@ export const Search = ({}: ISearchProps): ReactElement => {
</form> </form>
)} )}
/> />
{!isNil(comicVineSearchResults) && {!isNil(comicVineSearchResults.results) &&
!isEmpty(comicVineSearchResults) ? ( !isEmpty(comicVineSearchResults.results) ? (
<> <>
{comicVineSearchResults.results.map( {comicVineSearchResults.results.map(
({ id, name, deck, api_detail_url }) => { ({ id, name, description, api_detail_url, image }) => {
return ( return (
<div key={id}> <div key={id}>
{id} {name} {id} {name}
<p>{api_detail_url}</p> <p>{api_detail_url}</p>
<p>{deck}</p> <p>{description}</p>
<figure>
<img src={image.thumb_url} alt="name" />
</figure>
</div> </div>
); );
}, },