├── .eslintrc.js
├── .github
└── workflows
│ ├── ci.yml
│ └── codeql-analysis.yml
├── .gitignore
├── .prettierignore
├── .prettierrc
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── assets
├── images
│ ├── noResults.gif
│ ├── pixelsHashLogo.png
│ ├── pixelsHashLogo2.png
│ └── pixelsHashLogoDark.png
└── svgs
│ ├── CalendarIcon.jsx
│ ├── ChevDoubleUpIcon.jsx
│ ├── ChevLeftIcon.jsx
│ ├── ChevRightIcon.jsx
│ ├── DownloadIcon.jsx
│ ├── GithubIcon.jsx
│ ├── GridIcon.jsx
│ ├── InstagramIcon.jsx
│ ├── InternetIcon.jsx
│ ├── ListIcon.jsx
│ ├── MapIcon.jsx
│ ├── MoonIcon.jsx
│ ├── SunIcon.jsx
│ └── TwitterIcon.jsx
├── components
├── Alert
│ └── Alert.jsx
├── BioDetails
│ └── BioDetails.jsx
├── CardFooter
│ └── CardFooter.jsx
├── CreatorDetails
│ └── CreatorDetails.jsx
├── DarkModeToggleButton
│ └── DarkModeToggleButton.jsx
├── GridViewImage
│ └── GridViewImage.jsx
├── GridViewToggleButton
│ └── GridViewToggleButton.jsx
├── ImageCard
│ ├── ImageCard.jsx
│ └── utils.js
├── ImageDetails
│ └── ImageDetails.jsx
├── ImageListing
│ ├── ImageListing.jsx
│ ├── imageListingReducer.js
│ └── utils.js
├── InfiniteScroll
│ └── InfiniteScroll.jsx
├── ListViewImage
│ └── ListViewImage.jsx
├── Loader
│ └── Loader.jsx
├── Location
│ └── Location.jsx
├── Modal
│ └── Modal.jsx
├── Navbar
│ └── Navbar.jsx
├── NoResults
│ └── NoResults.jsx
├── ProfileDetails
│ └── ProfileDetails.jsx
├── ScrollToTopButton
│ └── ScrollToTopButton.jsx
├── SocialLinks
│ └── SocialLinks.jsx
└── Tags
│ └── Tags.jsx
├── data
├── constants.js
└── strings.js
├── next.config.js
├── package.json
├── pages
├── 404.js
├── _app.js
├── index.css
└── index.js
├── postcss.config.js
├── public
├── android-icon-144x144.png
├── android-icon-192x192.png
├── android-icon-36x36.png
├── android-icon-48x48.png
├── android-icon-72x72.png
├── android-icon-96x96.png
├── apple-icon-114x114.png
├── apple-icon-120x120.png
├── apple-icon-144x144.png
├── apple-icon-152x152.png
├── apple-icon-180x180.png
├── apple-icon-57x57.png
├── apple-icon-60x60.png
├── apple-icon-72x72.png
├── apple-icon-76x76.png
├── apple-icon-precomposed.png
├── apple-icon.png
├── browserconfig.xml
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon-96x96.png
├── favicon.ico
├── manifest.json
├── ms-icon-144x144.png
├── ms-icon-150x150.png
├── ms-icon-310x310.png
├── ms-icon-70x70.png
├── pixelsHashLogo.png
└── vercel.svg
├── tailwind.config.js
├── utils
├── formatDate.js
└── hooks
│ └── useIntersectionObserver.js
└── yarn.lock
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | browser: true,
4 | es6: true,
5 | node: true,
6 | },
7 | "ignorePatterns": [ "**/src/*"],
8 | parser: "babel-eslint",
9 | extends: [
10 | "eslint:recommended",
11 | "plugin:react/recommended",
12 | "prettier",
13 | ],
14 | parserOptions: {
15 | ecmaVersion: "2017",
16 | ecmaFeatures: {
17 | experimentalObjectRestSpread: true,
18 | jsx: true,
19 | },
20 | sourceType: "module",
21 | },
22 | plugins: ["babel", "react", "import","react-hooks"],
23 | rules: {
24 | "import/no-duplicates": "error",
25 | "import/no-unresolved": "off",
26 | "import/named": "error",
27 | "react/no-typos": "error",
28 | "react/jsx-no-bind": "off",
29 | "react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
30 | "react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
31 | "react/jsx-uses-react": "off",
32 | "react/react-in-jsx-scope": "off",
33 | "array-callback-return": "error",
34 | "consistent-return": "error",
35 | "babel/no-invalid-this": "error",
36 | "no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
37 | "react/prop-types": "off",
38 | "react/no-unescaped-entities":"off"
39 | },
40 | settings: {
41 | react: {
42 | pragma: "React",
43 | version: "detect",
44 | flowVersion: "0.63.1",
45 | },
46 | },
47 | };
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: Build and Test
2 |
3 | on:
4 | push:
5 | branches:
6 | - main
7 | pull_request:
8 | branches:
9 | - main
10 |
11 | jobs:
12 | test:
13 | runs-on: ${{matrix.os}}
14 | strategy:
15 | matrix:
16 | os:
17 | - ubuntu-latest
18 | - macos-latest
19 | - windows-latest
20 |
21 | node-version:
22 | - 14.x
23 | - 16.x
24 |
25 | steps:
26 | - name: Checkout
27 | uses: actions/checkout@master
28 |
29 | - name: setup node ${{matrix.node-version}}
30 | uses: actions/setup-node@v1.4.4
31 | with:
32 | node-version: ${{matrix.node-version}}
33 |
34 | - name: Get yarn cache directory path
35 | id: yarn-cache-dir-path
36 | run: echo "::set-output name=dir::$(yarn cache dir)"
37 |
38 | - uses: actions/cache@v2
39 | id: yarn-cache
40 | with:
41 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
42 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43 | restore-keys: |
44 | ${{ runner.os }}-yarn-
45 | - name: Install dependencies
46 | run: yarn
47 |
48 | - name: Build the project
49 | run: yarn build
50 |
51 | - name: Lint
52 | run: yarn lint
53 |
--------------------------------------------------------------------------------
/.github/workflows/codeql-analysis.yml:
--------------------------------------------------------------------------------
1 | name: "CodeQL analysis"
2 |
3 | on:
4 | push:
5 | branches: [main]
6 | pull_request:
7 | branches: [main]
8 | schedule:
9 | - cron: '0 16 * * 3'
10 |
11 | jobs:
12 | analyze:
13 | name: Analyze
14 | runs-on: ubuntu-latest
15 |
16 | strategy:
17 | fail-fast: false
18 | matrix:
19 | language: ['javascript']
20 |
21 | steps:
22 | - name: Checkout repository
23 | uses: actions/checkout@v2
24 | with:
25 | fetch-depth: 2
26 |
27 | - run: git checkout HEAD^2
28 | if: ${{ github.event_name == 'pull_request' }}
29 |
30 | - name: Initialize CodeQL
31 | uses: github/codeql-action/init@v1
32 | with:
33 | languages: ${{ matrix.language }}
34 |
35 | - name: Perform CodeQL Analysis
36 | uses: github/codeql-action/analyze@v1
37 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 |
27 | # local env files
28 | .env.local
29 | .env.development.local
30 | .env.test.local
31 | .env.production.local
32 |
33 | # vercel
34 | .vercel
35 |
36 | .env.local
37 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | build
3 | dist
4 | coverage
5 | .eslintrc.js
6 | .next
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "semi": false,
3 | "printWidth": 100,
4 | "useTabs": true,
5 | "tabWidth": 4,
6 | "trailingComma": "all",
7 | "singleQuote": true
8 | }
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | sohamshah456@gmail.com.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to **pixelsHash 📸**
2 |
3 | This documentation contains a set of guidelines to help you during the contribution process. We are happy to welcome all the contributions from anyone willing to improve/add new scripts to this project. Thank you for helping out and remember, no contribution is too small.
4 |
5 | ## How to contribute
6 |
7 | **Step 1**: Fork the Project
8 |
9 | - Fork this Repository. This will create a Local Copy of this Repository on your Github Profile. Keep a reference to the original project in upstream remote.
10 |
11 | ```
12 | git clone https://github.com//pixelsHash
13 | cd pixelsHash
14 | git remote add upstream https://github.com/sohamsshah/pixelsHash
15 | ```
16 |
17 | **Step 2**: Keep yourself Updated
18 |
19 | ```
20 | git remote update
21 | git checkout
22 | git rebase upstream/
23 | ```
24 |
25 | **Step 3**: Create a feature branch and work remotely
26 |
27 | ```
28 | git checkout -b branch_name
29 | ```
30 |
31 | **Step 4**: Work on the assigned issue
32 |
33 | - Work on the issue(s) assigned to you.
34 | - Add all the files/folders needed.
35 | - After you've made changes or made your contribution to the project add changes to the branch you've just created by:
36 |
37 | ```
38 | # To add all new files to branch Branch_Name
39 | git add .
40 |
41 | # To add only a few files to Branch_Name
42 | git add
43 | ```
44 |
45 | **Step 5**: Commit
46 |
47 | This message get associated with all files you have changed
48 |
49 | ```
50 | git commit -m "message"
51 | ```
52 |
53 | **Step 6**: Work Remotely
54 |
55 | - Now you are ready to your work to the remote repository.
56 | - When your work is ready and complies with the project conventions, upload your changes to your fork:
57 |
58 | ```
59 | # To push your work to your remote repository
60 | git push -u origin Branch_Name
61 | ```
62 |
63 | **Step 7**: Make a PR
64 |
65 | - Go to your repository in browser and click on compare and pull requests. Then add a title and description to your pull request that explains your contribution.
66 |
67 | - Voila! Your Pull Request has been submitted and will be reviewed by the moderators and merged.🥳 Make sure you make a PR to `develop` branch as the base.
68 |
69 | ## Run Tests
70 |
71 | Before Raising a PR, make sure you run `yarn lint:fix` in order to avoid any linting or formatting inconsistensies.
72 |
73 | Also check for any tests if any.
74 |
75 | ## Code of Conduct
76 |
77 | We have adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect project contributors to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.
78 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Soham Shah
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |