Skip to content

Commit

Permalink
it's prettier now
Browse files Browse the repository at this point in the history
  • Loading branch information
aydrian committed Apr 15, 2018
1 parent ba6504a commit 7f87265
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
Binary file modified webui/public/favicon.ico
Binary file not shown.
9 changes: 9 additions & 0 deletions webui/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

ul.responses {
list-style: none;
}

ul.gif-list li {
padding: 5px;
display: inline-block;
}
15 changes: 13 additions & 2 deletions webui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,21 @@ class App extends Component {
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Giphy Responder</h1>
</header>
<ul>
<p className="App-intro">
Send an email to gifme@sup.aydrian.me with a subject of what you want gifs of.
</p>
<ul className="responses">
{ this.state.responses.map(response => {
return (
<li key={response._id}>{response.search}</li>
<li key={response._id}><h2>{response.search}</h2>
<ul className="gif-list">
{ response.gifs.map(gif => {
return (
<li key={gif.id}><a href={gif.url} target="_blank"><img src={gif.src} alt={gif.title || "no title"} /></a></li>
)
})}
</ul>
</li>
);
})}
</ul>
Expand Down
8 changes: 1 addition & 7 deletions webui/src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f87265

Please sign in to comment.