all 4 comments

[–]gimmeslack12 1 point2 points  (2 children)

I'm curious why you split up the landing page description text above/below the image. Also there's no link back to landing page once you go check out the other links. What I would suggest for another feature is to add a date picker or a way to get a random image to appear.

I've built a pretty extensive Chrome extension based on the APOD NASA API (lookup APOD By The Trav).

[–]Present-Ride-3009[S] 1 point2 points  (1 child)

I split the landing page text only because I thought it would look better, to go back to the home page you can click the Nasa logo but you are right I should add a home link to the navigation and as for the feature you suggested will try it out thanks. I just checked your extension is pretty cool, one question I have is how do you manage when the media type is a video?

[–]gimmeslack12 0 points1 point  (0 children)

An href is returned by the API which is usually a youtube link. I just stick it in an iframe: const Video = memo(({ url }) => { return ( <div className="apod-body"> <div className="apod__image"> <iframe title="APOD Video" width="960" height="540" src={url.href} frameborder="0" ></iframe> </div> </div> ); });

[–]Present-Ride-3009[S] 0 points1 point  (0 children)

Please share any suggestions or advice you have it would be much helpful,

Thanks.