Skip to content

React app template ready to be deployed for development

Notifications You must be signed in to change notification settings

Ddd1945/kids-tech-app

Repository files navigation

Kids Tech App

There is an API endpoint GET https://logiclike.com/docs/courses.json The endpoint API returns a list of platform educational courses. Each course has “tags”, topics to which this course relates. For example, a chess course refers to topics “Puzzles”, “Chess” and “Logic and Thinking”. Your task is to develop a simple page, according to the layout, that displays a list courses and allows you to filter courses by selected topic (tags). All content including the list of topics should be generated dynamically based on the response from the backend

Behavior at different screen resolutions is shown as a separate frame. Block with “tags” is fixed in width. The block on the right takes up everything else place. Exactly 3 courses are displayed in one line, which are divided among themselves accessible place.

Deployed App

https://ddd1945.github.io/kids-tech-app/

Deployment

npm i

Install all packages from package.json

Api configuration

Here is a strange thing :) Initially it's supposed to work with dev, predprod and prod api urls. But consider the fact that I don't have them I found some usage of that for Route configuration. When running app on localhost home route ny default is / but when it's running on github home route is the name of repo. In my case it is /kids-tech-app. So I decided to do it that way cause it's pretty funny ;)

npm run dev

starts a local web server with HMR for development

npm run build

builds the project, and outputs to the folder ./dist

npm run preview

start a local web server that serves the built solution from ./dist for previewing

npm run pages

upload/update build to the github branch gh-pages

Screenshots

Display of courses for tag "All topics". With every navigation to the page every card will randomly update its color

image

Display of courses for tag "Trips". Consider that current api does not return any data for this tag thus "no data" text animation will be displayed. With every navigation to the page new emoji is being displayed

cowabanga

404 page. Displayed in case if user navigated to incorrect route. After clicking on button user will get navigated to the main page

Untitled

Note

  1. I've settled redux as it's most often used in big apps plus I'm using it to store choosen tag index in cache. I found it more convinient for user to stay on the same tag after reopening, refreshing or using new session for page.

  2. Unfortunately 404 page doesn't work on github. Github actually replacing my 404 page with its own.

  3. Sometimes I didn't follow pixel-perfect pattern cause images was so stretched that I couldn't leave it as it is :D

About

React app template ready to be deployed for development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published