Giter VIP home page Giter VIP logo

sweep-south-technical-test's Introduction

Brief

Please use ReactJS to create a small app that enables a user to browse profiles

Profiles can be displayed as simple UI Cards that show a profile photo of a candidate, their name, city they are based in.

When you click a user profile you must navigate to another page that displays the full user profile.

You may fetch dummy data from here - https://randomuser.me/api/?results=50

Please note we are looking for a simple, clean UI and a considered approach to the structure of your small application. Structure of your code is important, try to think about reusable components and file structure.

About

Using next.js I'm building static html files rendered at build time. Next JS always me to build isomphoric apps leveraging the benefits of PWA and SSR (Serverless ๐Ÿคฏ) in one codebase. What this project tries to acheive is creating static HTML to be rendered before it is served to the client. We still need to keep the data in the UI fresh by using SWR to fetch new data when the app is rehydrated.

Implementation

This app has two pages. The root/ index page holds the collection of limited profiles from the randomuser api.

Gotchas

One of the problems with randomuser is that the data changes on each request. I've used a seed variable to make sure the data is always the same. I can't query a specific person so I have to pull all the profiles then find the specific user. I highly doubt you would ever have a backend implmentation with a REST structure like this IRL.

Links

Deployment dashoard: https://vercel.com/seak/sweep-south-technical-test

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Resources:

type-scale: https://type-scale.com/?size=14&scale=1.618&text=A%20Visual%20Type%20Scale&font=Roboto&fontweight=400&bodyfont=Poppins&bodyfontweight=400&lineheight=1.65&backgroundcolor=white&fontcolor=%23333&preview=false

Color palette:

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

TODO

see project

Learnings

https://nextjs.org/learn/basics/data-fetching https://stackoverflow.com/questions/55624695/loading-screen-on-next-js-page-transition https://reacttricks.com/animating-next-page-transitions-with-framer-motion/ https://flaviocopes.com/how-to-save-json-object-to-file-nodejs/

sweep-south-technical-test's People

Contributors

s3ak avatar

Watchers

 avatar  avatar  avatar

sweep-south-technical-test's Issues

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.