Coder Social home page Coder Social logo

nextjs-image's Introduction

Matching-game-nextjs

What does that mean?

Concentration, also known as Matching Pairs, Match Match, Match Up, Memory, Pelmanism, Shinkei-suijaku, Pexeso or simply Pairs, is a card game in which all of the cards are laid face down on a surface and two cards are flipped face up over each turn. The object of the game is to turn over pairs of matching cards.

What required :

  • using this api to get images api
  • Game should have a win mechanism
  • Game should have a limit turns (saved in redux store)
  • Game should have a Play again Feature:

example :

alt text

Grid should be 4*4:

alt text

Design Rules

  • Be as Creative as you can having a good UI/UX is important

Software rules

Project structure

  • depending on what flow to take

    • Follow the component container pattern, so your two main folders inside the src will be the components folder that will contain your components and containers that will contain container components. You can read more about container components here or you can ask you team leader about it for more clarity.
  • You can use postcss if you are going with another library that uses something like tailwind

  • Global style variables will be inside a style folder inside the src inside a globals.css.

  • The main folder names inside the src should be lower case like components and container or pages other folders inside them should be TitleCase like ProgressBar and files inside these folder will be TitleCase too like ProgressBar.js. If you need styles then add them with the same .js file name like ProgressBar.scss

Your project hierarchy should look something similar to this:

.
├── src
	├── Pages
		├── Homepage
			├── ProgressBar.jsx
			├── ProgressBar.scss/css
	├── components
		├── ProgressBar
			├── ProgressBar.jsx
			├── ProgressBar.scss/css
	├── containers
		├── About
				├── ContactForm.jsx
				├── About.js
	├── style
		├── _variables.scss
  • All dependencies inside the package.json should be used in the project.
  • It's recommended to use Yarn to install the packages.
  • General use images should be inside a folder inside src under images and try to use svg as much as possible. Component specific images should be under their folders.
  • You should have prettier extension installed and make sure your code is well formatted before submitting it.

nextjs-image's People

Contributors

androidmini9x avatar

Watchers

 avatar

nextjs-image's Issues

Create Components

  • MatchGame: The main components that holds the Card.
  • Card: The Card that holds the pic.
  • Winner: The winner page.
  • Loser: The Loser page.

Build redux store

Build redux store by using redux/toolkit library, the store also will have the fetch method.

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.