Coder Social home page Coder Social logo

code-test-news-articles's Introduction

Code test for News Articles Landing Page

Link to the deployed version of the landing page:

https://h2bvqmupci.us-east-1.awsapprunner.com

AWS App runner was used to deploy the application as it is easy and quick to deploy for demo purposes.

Run locally

To install dependencies:

npm install

To run the application:

npm start

Application is running on port 8080. View the application at http://localhost:8080/

#Project Description

Senior Code Test

You will be tested on your knowledge of HTML, JS and CSS, It's encouraged to keep the solution as lightweight and simple as possible. Expected time for this test should be around 2 hours. Your final code should be hosted on Github which displays a live version along with the original source code.

Actions

Recreate the highlighted module in the design folder

Requirements

  • Needs to be responsive
  • The content comes from a collection retrieved via 2 api endpoints. For the purpose of this test you can mock these JSON responses locally

First api endpoint returns collection info like the following. For this test use the “landing” collectiontype

[ { collectiontype: “home” collectionid:< use any unique key you wish> }, { collectiontype: “landing” collectionid:< use any unique key you wish> } ……….. mock more entries if you wish ]

Second API call passes through the collection id from the first api call Example: localhost/api/collection/ and returns a collection of articles belonging to the corresponding collection id. Note you should have at least 4 dummy articles in the result.

[ { Title: “live: Greg Inglis to announce nrl retirement….” Imageurl: <local image url> Intro: “Rabbitohs star Greg……” Published: 2 }, ………. mock more entries ]

These should map to the title, image, introduction paragraph and the publish time between the clock and speech bubble icon

Notes:

  • Faded areas of the screenshot you can leave it as white space but the module is still expected to sit in its current position within the layout
  • Font family just get as color and size as close as you can
  • Image content doesn’t have to reflect the screenshot as long as their aspect ratio is close.
  • Spacing doesn’t have to be pixel perfect as long as its close

code-test-news-articles's People

Contributors

perception30 avatar

Watchers

 avatar 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.