A simple react based web application to implement a search engine for gifs and preview them.
-
SearchBar - Fn component with input to get search queries with callback
-
GifView - Fn component which is core building block of the list of gifs. Each component is standalone image with loader and overlay view to show cta when cursor moves to the GIF
-
GifList - Simple wrapper based on grid layout to render the GifView component tree.
-
PaginationTab - Pagniation component ui which has list of buttons to navigate.
-
Toggle Switch - Basic Standalone toggle switch component.
The application uses aggregation of simple components composed together in a single page. The search bar is a basic wrapper with an input which is used to get user input.
The GifList is a responsive grid wrapper and comprises the GifView which is combination static image and gif image to be toggled on hover.
PaginationTab is a list of buttons to implement pagination.
Toggleswitch is basic check input which has UI based purely on CSS.
$ git clone git@github.com:naveenvignesh5/gifted.git
$ cp .env.template .env # Update GIPHY API key in .env file
$ yarn install
$ PORT=5000 yarn start # you can set any port you want
Testing is based on jest framework.
$ yarn test
- Test
- Build and Deploy
Test
$ yarn install
$ yarn test
Build and Deploy
$ yarn install
$ yarn build
$ mv build public
- VS Code
- GITLAB CI / CD
- Jest