Skip to content

lanaschuster/interactive-comments-section

Repository files navigation

Interactive Comments Section

This is a solution to the Interactive comments section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Create, Read, Update, and Delete comments and replies
  • Upvote and downvote comments

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Scss
  • Storybook - for components documentation
  • Vue - JS library
  • Vue Test Utils - for testing
  • Pinia - for state management

What I learned

  • I have learned to use recursive component call, to render the post tree;
  • I have learned to use Pinia.

Continued development

  • Keep the posts with localStorage or IndexedDB;
  • Add toast to inform the current user about the actions.

Author

Setup

  $ yarn install      // to install dependencies
  $ yarn start        // to start the project in development mode
  $ yarn storybook    // start the storybook


	$ yarn test       	// run jest once
	$ yarn test:watch   // run jest in watch mode
	$ yarn test:ci      // run jest and collect the test coverage


  $ yarn build 	      // to generate the bundle in production mode

Contributing

Issues and Pull requests are welcome ❤️