The website let's you search users & navigate the search suggestions using either mouse or keyboard up/down arrow keys.
Experience here: https://pezcoder.github.io/search-users
- UI for Search, Suggestions, No results
- Mouse focus behaviour
- Keyboard navigation of list using up & down arrow keys
- One card should highlight when use both mouse & keyboard
- Focused element to scroll into view
- Mouse & keyboard events to play along
Search Results Found | No Search results |
---|---|
- Bootstrapped by Create React App
- Redux, redux-thunk to manage data.
- SCSS for styling
- BEM pattern for css class names
- Redux ducks pattern for redux
Clone the repository & run these:
npm install
npm start
└─ src
├─ components -- Contains all the individual components
│ ├─ search-bar
│ │ ├─ searchBar.scss
│ │ └─ SearchBar.js
│ └─ ...
│ └─ ...
├─ redux -- All state logic here
│ ├─ store.js
│ └─ ducks -- Follows redux duck pattern: https://github.com/erikras/ducks-modular-redux
│ └─ search
│ ├─ search.js. -- Actions, Creators, Reducer, Selectors for the duck
│ └─ ...
├─ styles
│ └─ -- All common styles here --
└─ utilities
└─ -- All utilities here--