Giter Site home page Giter Site logo

twitter-styling's Introduction

We've acquired some data from the Twitter Streaming API. Using React, let's create a Twitter feed to display this data. The finished website should look like this:

Twitter Feed 1

Setup

From your challenges directory, run the following:

$ et get twitter-feed
$ cd twitter-feed
$ npm install
$ npm start

If you go to localhost:8080, the page will display nothing, and the console will show no errors. You'll find the data for your application in src/constants/data.js. DO NOT MODIFY this data.

Deliverables

  1. The finished application should contain the information in the mock-up.
  2. When clicking on the reply icon, an alert box should pop up with the text "reply".
  3. When clicking on the retweet icon, an alert box should pop up with the text "retweet".
  4. When clicking on the like icon, an alert box should pop up with the text "like".
  5. When clicking on the more icon, an alert box should pop up with the text "favorite".
  6. When the tweet object's favorited property is true, then the like icon should be red.
  7. When the tweet object's retweeted property is true, then the retweet icon should be green.
  8. If the tweet includes a media entity, remove the corresponding display_url from the tweet text and show the image in the tweet.
  9. Front-end developers style their applications. You're a front-end developer. Therefore, you must style your application so it matches the mock-up.

Pro Tips

  • To complete this challenge, you should not have to create additional components. The Tweet and TwitterFeed components should be all that you need to create a functioning application.
  • Start by looking over the provided data and make sure you understand the data structure. While investigating the data structure, you should note that tweets with images contain an object which possesses a media_url and a display_url. The media_url is the URL to the image, so use this URL to display the image in your application. The display_url is a URL found in the tweet text. Make sure you remove the display_url from the tweet text before displaying it in your application.
  • Foundation and Font Awesome are available for you to use via a CDN. Rejoice!

twitter-styling's People

Contributors

charrhia avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.