├── .DS_Store
├── .env.example
├── .eslintrc.cjs
├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── pull_request_template.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── _test_
└── example.test.js
├── contributing.md
├── index.html
├── jest.config.ts
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
├── .DS_Store
├── favicon.png
├── flame.png
└── logo.png
├── src
├── .DS_Store
├── APIs
│ └── GetProfileData.js
├── App.css
├── App.jsx
├── Pages
│ ├── AboutUs.jsx
│ ├── Blog.jsx
│ ├── Faq.jsx
│ ├── Home.jsx
│ ├── LandingPage.jsx
│ ├── Meme.jsx
│ ├── Project.jsx
│ ├── ProjectDetail.jsx
│ ├── ProjectIdea.jsx
│ └── mentorship.jsx
├── assets
│ ├── buttonArrow.jsx
│ ├── compare meme collection.png
│ ├── gorilla-bg-min.jpg
│ ├── icons
│ │ └── hamburger.png
│ ├── images
│ │ ├── background.jpg
│ │ ├── summary.png
│ │ └── summary2.png
│ ├── index.js
│ ├── meme.png
│ └── memes
│ │ ├── eighth.png
│ │ ├── fifth.png
│ │ ├── first.png
│ │ ├── fourth.png
│ │ ├── index.js
│ │ ├── ninth.png
│ │ ├── second.png
│ │ ├── seventh.png
│ │ ├── sixth.png
│ │ ├── tenth.png
│ │ └── third.png
├── components
│ ├── Card.jsx
│ ├── CompareButton.jsx
│ ├── Container.jsx
│ ├── InputText.jsx
│ ├── LinneChart.jsx
│ ├── Loader.jsx
│ ├── MemeGenerator.jsx
│ ├── Mentorship.jsx
│ ├── Nav.jsx
│ ├── PlusModel.jsx
│ └── icons
│ │ ├── ChevronDownIcon.jsx
│ │ ├── Discord.jsx
│ │ ├── Github.jsx
│ │ ├── X.jsx
│ │ ├── Youtube.jsx
│ │ └── index.jsx
├── hooks
│ └── useGetLeaderboard.js
├── index.css
├── main.jsx
├── sections
│ ├── CommunityLead.jsx
│ ├── Footer.jsx
│ ├── Hero.jsx
│ ├── Leaderboard.jsx
│ ├── SearchIcon.jsx
│ ├── Topthree.jsx
│ ├── data.js
│ ├── index.js
│ └── utils.js
└── utils
│ └── constants.js
├── tailwind.config.js
├── vercel.json
└── vite.config.js
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Githubstreak/Githubstreak-frontend/3239930141b7f5ecc987e23c649c179b6d77ea1c/.DS_Store
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | VITE_CLERK_PUBLISHABLE_KEY=publishable_key
--------------------------------------------------------------------------------
/.eslintrc.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: { browser: true, es2020: true },
4 | extends: [
5 | 'eslint:recommended',
6 | 'plugin:react/recommended',
7 | 'plugin:react/jsx-runtime',
8 | 'plugin:react-hooks/recommended',
9 | ],
10 | ignorePatterns: ['dist', '.eslintrc.cjs'],
11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12 | settings: { react: { version: '18.2' } },
13 | plugins: ['react-refresh'],
14 | rules: {
15 | 'react-refresh/only-export-components': [
16 | 'warn',
17 | { allowConstantExport: true },
18 | ],
19 | },
20 | }
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug Report
3 | about: Report a bug in GitHubStreak
4 | title: '[BUG] '
5 | labels: 'bug'
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Additional context**
32 | Add any other context about the problem here.
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature Request
3 | about: Suggest a new feature or enhancement for GitHubStreak
4 | title: '[FEATURE] '
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
22 | **Environment (please complete the following information):**
23 | - OS: [e.g. iOS]
24 | - Browser [e.g. chrome, safari]
25 | - Version [e.g. 22]
26 |
27 | **Would you be willing to submit a pull request?**
28 | Yes / No
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Pull Request
3 | about: Create a pull request to contribute to GitHubStreak
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Description**
11 | A clear and concise description of what this pull request does.
12 |
13 | **Related Issue**
14 | If applicable, provide a link to the issue this pull request addresses.
15 |
16 | **Proposed Changes**
17 | - List the changes you've made in this pull request.
18 | - Use bullet points or a checklist for clarity.
19 |
20 | **Additional Context**
21 | Add any other context or screenshots about the changes here.
22 |
23 | **Checklist**
24 | - [ ] I have tested my changes locally.
25 | - [ ] I have updated the documentation, if applicable.
26 | - [ ] I have added tests for new functionality or bug fixes.
27 | - [ ] My changes follow the project's coding style and conventions.
28 |
29 | **Note**
30 | Please ensure that your pull request meets the project's contribution guidelines before submitting.
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
131 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | ## GitHubStreak Code of Conduct
2 |
3 | GitHubStreak is committed to providing a friendly, safe, and welcoming environment for all contributors, regardless of experience level, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other defining characteristics. We expect all participants in our community to adhere to this Code of Conduct.
4 |
5 | ## Our Standards
6 |
7 | Examples of behavior that contributes to creating a positive environment include:
8 |
9 | Respect: Treat others with respect and kindness.
10 | Inclusivity: Be inclusive and welcoming to all individuals.
11 | Open-mindedness: Listen to and consider diverse perspectives and ideas.
12 | Collaboration: Work together towards common goals, supporting each other's efforts.
13 | Constructive Feedback: Provide feedback in a constructive and respectful manner.
14 |
15 | Examples of unacceptable behavior include:
16 |
17 | Harassment: Any form of harassment, discrimination, or unwelcome behavior.
18 | Intolerance: Discrimination, derogatory language, or any behavior that promotes exclusion.
19 | Disrespect: Deliberate intimidation, trolling, insulting, or personal attacks.
20 | Invasion of Privacy: Sharing personal or confidential information without consent.
21 | Unwelcome Advancements: Unwelcome advances, sexualized language or imagery, and inappropriate attention or contact.
22 |
23 | ## Enforcement Responsibilities
24 |
25 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior. They have the right and responsibility to address any reported instances of unacceptable behavior promptly and fairly. Community leaders have the discretion to take appropriate actions, including temporary or permanent bans, to maintain a positive and inclusive community.
26 |
27 | Reporting Violations
28 |
29 | If you experience or witness behavior that violates this Code of Conduct, please report it here at githubstreak@gmail.com. All reports will be kept confidential and will be reviewed and addressed promptly.
30 |
31 | Consequences of Violations
32 | Participants who engage in behavior that violates this Code of Conduct may face consequences, including but not limited to:
33 |
34 | Warning: Verbal or written warnings may be issued.
35 | Temporary Ban: Temporary suspension of participation in the project or community.
36 | Permanent Ban: Permanent removal from the project or community.
37 |
38 | Acknowledgment
39 |
40 | By participating in GitHubStreak, you agree to abide by this Code of Conduct. We appreciate your cooperation in creating a positive and inclusive community where all members feel welcome and respected.
41 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Edmond Akwasi
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 | # GitHubStreak
2 |
3 | GitHubStreak is an open-source project that aims to rank developers based on their contributions to GitHub repositories and the number of consecutive days they have committed code (known as a "streak"). This project serves as a valuable tool for developers to showcase their commitment and activity on GitHub, and for potential employers or collaborators to identify dedicated and productive contributors.
4 |
5 | ## Features
6 |
7 | - **Contribution Ranking**: Developers are ranked based on the number of contributions (commits, pull requests, issues, etc.) they have made to GitHub repositories.
8 | - **Streak Tracking**: The application tracks and displays the longest streak of consecutive days a developer has committed code to a repository.
9 | - **Leaderboard**: A leaderboard showcases the top-ranked developers based on their contributions and streaks.
10 | - **User Profiles**: Detailed profiles for each developer, displaying their contributions, streak history, and other relevant information.
11 | - **GitHub Integration**: GitHubStreak seamlessly integrates with the GitHub API to fetch and analyze developer data.
12 |
13 | ## Installation
14 |
15 | 1. Clone the repository: `git clone (https://github.com/Githubstreak/Githubstreak-frontend.git)`
16 | 2. Navigate to the project's root directory
17 | 3. Install dependencies: `npm install`
18 | 4. Set up environment variables (see `.env.example` file)
19 | 5. Start the development server: `npm run dev`
20 |
21 | ## Usage
22 |
23 | 1. Visit the GitHubStreak website or application. `https://githubstreak-frontend.vercel.app/`
24 | 2. Connect your GitHub account to grant access to your contribution data.
25 | 3. View the leaderboard to see the top-ranked developers based on contributions and streaks.
26 | 4. Explore individual developer profiles for detailed information.
27 |
28 | ## Contributing
29 |
30 | We welcome contributions from developers of all skill levels! Please follow our [contributing.md](contributing.md) to get started.
31 |
32 | ## Code of Conduct
33 |
34 | We aim to foster an open and welcoming community. Please review our [Code of Conduct](contributing.md) to understand the expectations for participation in this project.
35 |
36 | ## License
37 |
38 | This project is licensed under the [MIT License](LICENSE).
39 |
40 | ## Acknowledgments
41 |
42 | GitHubStreak was inspired by the need to recognize and celebrate the hard work and dedication of developers. We would like to thank all the contributors who have made this project possible.
43 |
--------------------------------------------------------------------------------
/_test_/example.test.js:
--------------------------------------------------------------------------------
1 | test('adds 1 + 2 to equal 3', () => {
2 | expect(1 + 2).toBe(3);
3 | });
--------------------------------------------------------------------------------
/contributing.md:
--------------------------------------------------------------------------------
1 |
2 | # Contributing to GitHubStreak
3 |
4 | 1. **Fork the Repository**
5 | Click the "Fork" button at the top right of this page to create your own copy of the repository.
6 |
7 | 2. **Clone Your Fork**
8 | Run the following command to download your fork to your local machine:
9 | ```bash
10 | git clone https://github.com/your-username/githubstreak.-me-.git
11 | ```
12 | 3. **Setting up Environment Variables**
13 |
14 | 1. Create a new file named `.env` in the root directory of the project.
15 | 2. Copy the contents of `.env.example` into the new `.env` file.
16 | 3. Replace the placeholder values with your own credentials and configuration settings.
17 |
18 | Note: The `.env` file should never be committed to version control, as it contains sensitive information.
19 |
20 | 4. **Create a New Branch**
21 | Switch to a new branch where you’ll make your changes:
22 | ```bash
23 | git checkout -b your-branch-name
24 | ```
25 |
26 | 5. **Make Your Changes**
27 | Edit the code as needed and commit your changes with a clear, concise message:
28 | ```bash
29 | git commit -m "Describe your changes here"
30 | ```
31 |
32 | 6. **Push Your Changes**
33 | Upload your changes to your fork on GitHub:
34 | ```bash
35 | git push origin your-branch-name
36 | ```
37 |
38 | 7. **Submit a Pull Request**
39 | Go to the original repository on GitHub and open a pull request from your fork. Provide a clear description of your changes and why they are necessary.
40 |
41 | ## Code of Conduct
42 |
43 | By participating in this project, you are expected to uphold our [Code of Conduct](CODE_OF_CONDUCT.md). Please read it carefully before making any contributions.
44 |
45 |
46 | ## Coding Style and Conventions
47 |
48 | - Follow the [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript) for JavaScript code.
49 | - Use consistent naming conventions and follow the existing project structure.
50 | - Write clear and concise comments to explain complex logic or sections of code.
51 |
52 | ## Reporting Issues
53 |
54 | If you encounter any bugs or have feature requests, please open a new issue on the [issue tracker](https://github.com/edmondakwasi/githubstreak./issues). When reporting a bug, please include as much detail as possible, including steps to reproduce the issue and any relevant error messages or screenshots.
55 |
56 | ## Pull Requests
57 |
58 | 1. Ensure that your code is well-documented and follows the project's coding style and conventions.
59 | 2. Update the project's documentation if your changes introduce new features or modify existing behavior.
60 | 3. Include relevant tests for any new functionality or bug fixes.
61 | 4. Describe your changes in detail in the pull request description.
62 | 5. Be responsive to feedback and questions during the review process.
63 |
64 | ## License
65 |
66 | By contributing to GitHubStreak, you agree that your contributions will be licensed under the [MIT License](LICENSE).
67 |
68 | Thank you for your contributions! We appreciate your efforts to make GitHubStreak better.
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | GGithubstreak
14 |
15 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/jest.config.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * For a detailed explanation regarding each configuration property, visit:
3 | * https://jestjs.io/docs/configuration
4 | */
5 |
6 | import type {Config} from 'jest';
7 |
8 | const config: Config = {
9 | // All imported modules in your tests should be mocked automatically
10 | // automock: false,
11 |
12 | // Stop running tests after `n` failures
13 | // bail: 0,
14 |
15 | // The directory where Jest should store its cached dependency information
16 | // cacheDirectory: "C:\\Users\\USER\\AppData\\Local\\Temp\\jest",
17 |
18 | // Automatically clear mock calls, instances, contexts and results before every test
19 | clearMocks: true,
20 |
21 | // Indicates whether the coverage information should be collected while executing the test
22 | collectCoverage: true,
23 |
24 | // An array of glob patterns indicating a set of files for which coverage information should be collected
25 | // collectCoverageFrom: undefined,
26 |
27 | // The directory where Jest should output its coverage files
28 | coverageDirectory: "coverage",
29 |
30 | // An array of regexp pattern strings used to skip coverage collection
31 | // coveragePathIgnorePatterns: [
32 | // "\\\\node_modules\\\\"
33 | // ],
34 |
35 | // Indicates which provider should be used to instrument code for coverage
36 | // coverageProvider: "babel",
37 |
38 | // A list of reporter names that Jest uses when writing coverage reports
39 | // coverageReporters: [
40 | // "json",
41 | // "text",
42 | // "lcov",
43 | // "clover"
44 | // ],
45 |
46 | // An object that configures minimum threshold enforcement for coverage results
47 | // coverageThreshold: undefined,
48 |
49 | // A path to a custom dependency extractor
50 | // dependencyExtractor: undefined,
51 |
52 | // Make calling deprecated APIs throw helpful error messages
53 | // errorOnDeprecated: false,
54 |
55 | // The default configuration for fake timers
56 | // fakeTimers: {
57 | // "enableGlobally": false
58 | // },
59 |
60 | // Force coverage collection from ignored files using an array of glob patterns
61 | // forceCoverageMatch: [],
62 |
63 | // A path to a module which exports an async function that is triggered once before all test suites
64 | // globalSetup: undefined,
65 |
66 | // A path to a module which exports an async function that is triggered once after all test suites
67 | // globalTeardown: undefined,
68 |
69 | // A set of global variables that need to be available in all test environments
70 | // globals: {},
71 |
72 | // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
73 | // maxWorkers: "50%",
74 |
75 | // An array of directory names to be searched recursively up from the requiring module's location
76 | // moduleDirectories: [
77 | // "node_modules"
78 | // ],
79 |
80 | // An array of file extensions your modules use
81 | // moduleFileExtensions: [
82 | // "js",
83 | // "mjs",
84 | // "cjs",
85 | // "jsx",
86 | // "ts",
87 | // "tsx",
88 | // "json",
89 | // "node"
90 | // ],
91 |
92 | // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
93 | // moduleNameMapper: {},
94 |
95 | // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
96 | // modulePathIgnorePatterns: [],
97 |
98 | // Activates notifications for test results
99 | // notify: false,
100 |
101 | // An enum that specifies notification mode. Requires { notify: true }
102 | // notifyMode: "failure-change",
103 |
104 | // A preset that is used as a base for Jest's configuration
105 | // preset: undefined,
106 |
107 | // Run tests from one or more projects
108 | // projects: undefined,
109 |
110 | // Use this configuration option to add custom reporters to Jest
111 | // reporters: undefined,
112 |
113 | // Automatically reset mock state before every test
114 | // resetMocks: false,
115 |
116 | // Reset the module registry before running each individual test
117 | // resetModules: false,
118 |
119 | // A path to a custom resolver
120 | // resolver: undefined,
121 |
122 | // Automatically restore mock state and implementation before every test
123 | // restoreMocks: false,
124 |
125 | // The root directory that Jest should scan for tests and modules within
126 | // rootDir: undefined,
127 |
128 | // A list of paths to directories that Jest should use to search for files in
129 | // roots: [
130 | // ""
131 | // ],
132 |
133 | // Allows you to use a custom runner instead of Jest's default test runner
134 | // runner: "jest-runner",
135 |
136 | // The paths to modules that run some code to configure or set up the testing environment before each test
137 | // setupFiles: [],
138 |
139 | // A list of paths to modules that run some code to configure or set up the testing framework before each test
140 | // setupFilesAfterEnv: [],
141 |
142 | // The number of seconds after which a test is considered as slow and reported as such in the results.
143 | // slowTestThreshold: 5,
144 |
145 | // A list of paths to snapshot serializer modules Jest should use for snapshot testing
146 | // snapshotSerializers: [],
147 |
148 | // The test environment that will be used for testing
149 | // testEnvironment: "jest-environment-node",
150 |
151 | // Options that will be passed to the testEnvironment
152 | // testEnvironmentOptions: {},
153 |
154 | // Adds a location field to test results
155 | // testLocationInResults: false,
156 |
157 | // The glob patterns Jest uses to detect test files
158 | // testMatch: [
159 | // "**/__tests__/**/*.[jt]s?(x)",
160 | // "**/?(*.)+(spec|test).[tj]s?(x)"
161 | // ],
162 |
163 | // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
164 | // testPathIgnorePatterns: [
165 | // "\\\\node_modules\\\\"
166 | // ],
167 |
168 | // The regexp pattern or array of patterns that Jest uses to detect test files
169 | // testRegex: [],
170 |
171 | // This option allows the use of a custom results processor
172 | // testResultsProcessor: undefined,
173 |
174 | // This option allows use of a custom test runner
175 | // testRunner: "jest-circus/runner",
176 |
177 | // A map from regular expressions to paths to transformers
178 | // transform: undefined,
179 |
180 | // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
181 | // transformIgnorePatterns: [
182 | // "\\\\node_modules\\\\",
183 | // "\\.pnp\\.[^\\\\]+$"
184 | // ],
185 |
186 | // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
187 | // unmockedModulePathPatterns: undefined,
188 |
189 | // Indicates whether each individual test should be reported during the run
190 | // verbose: undefined,
191 |
192 | // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
193 | // watchPathIgnorePatterns: [],
194 |
195 | // Whether to use watchman for file crawling
196 | // watchman: true,
197 | };
198 |
199 | export default config;
200 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "githubstreak",
3 | "private": true,
4 | "version": "0.0.0",
5 | "type": "module",
6 | "scripts": {
7 | "dev": "vite",
8 | "build": "vite build",
9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
10 | "preview": "vite preview",
11 | "test": "jest"
12 | },
13 | "dependencies": {
14 | "@clerk/clerk-react": "^5.2.7",
15 | "@fortawesome/fontawesome-svg-core": "^6.6.0",
16 | "@fortawesome/free-solid-svg-icons": "^6.6.0",
17 | "@fortawesome/react-fontawesome": "^0.2.2",
18 | "@nextui-org/react": "^2.4.3",
19 | "@vercel/analytics": "^1.3.1",
20 | "@vercel/speed-insights": "^1.0.12",
21 | "animate.css": "^4.1.1",
22 | "axios": "^1.7.7",
23 | "chart.js": "^4.4.6",
24 | "express-session": "^1.18.0",
25 | "framer-motion": "^10.18.0",
26 | "html2canvas": "^1.4.1",
27 | "lucide-react": "^0.475.0",
28 | "passport": "^0.7.0",
29 | "passport-github2": "^0.1.12",
30 | "react": "^18.2.0",
31 | "react-chartjs-2": "^5.2.0",
32 | "react-dom": "^18.2.0",
33 | "react-icons": "^5.3.0",
34 | "react-paginate": "^8.2.0",
35 | "react-router-dom": "^6.29.0"
36 | },
37 | "devDependencies": {
38 | "@types/react": "^18.2.43",
39 | "@types/react-dom": "^18.2.17",
40 | "@vitejs/plugin-react": "^4.2.1",
41 | "autoprefixer": "^10.4.17",
42 | "daisyui": "^4.6.0",
43 | "eslint": "^8.55.0",
44 | "eslint-plugin-react": "^7.33.2",
45 | "eslint-plugin-react-hooks": "^4.6.0",
46 | "eslint-plugin-react-refresh": "^0.4.5",
47 | "jest": "^29.7.0",
48 | "postcss": "^8.4.33",
49 | "tailwindcss": "^3.4.1",
50 | "vite": "^5.0.8"
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/postcss.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/public/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Githubstreak/Githubstreak-frontend/3239930141b7f5ecc987e23c649c179b6d77ea1c/public/.DS_Store
--------------------------------------------------------------------------------
/public/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Githubstreak/Githubstreak-frontend/3239930141b7f5ecc987e23c649c179b6d77ea1c/public/favicon.png
--------------------------------------------------------------------------------
/public/flame.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Githubstreak/Githubstreak-frontend/3239930141b7f5ecc987e23c649c179b6d77ea1c/public/flame.png
--------------------------------------------------------------------------------
/public/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Githubstreak/Githubstreak-frontend/3239930141b7f5ecc987e23c649c179b6d77ea1c/public/logo.png
--------------------------------------------------------------------------------
/src/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Githubstreak/Githubstreak-frontend/3239930141b7f5ecc987e23c649c179b6d77ea1c/src/.DS_Store
--------------------------------------------------------------------------------
/src/APIs/GetProfileData.js:
--------------------------------------------------------------------------------
1 | import axios from "axios";
2 |
3 | export const GetProfileData = async (userName) => {
4 | try {
5 | const response = await axios.get(
6 | `https://github-contributions-api.jogruber.de/v4/${userName}`,
7 | );
8 | return response.data;
9 | } catch (error) {
10 | console.error("some error:", error);
11 | throw error;
12 | }
13 | };
14 |
15 | export const GetGitHubInfo = async (userName) => {
16 | try {
17 | const response = await axios.get(
18 | `https://api.github.com/users/${userName}`,
19 | );
20 | return response.data;
21 | } catch (error) {
22 | console.error("some error:", error);
23 | throw error;
24 | }
25 | };
--------------------------------------------------------------------------------
/src/App.css:
--------------------------------------------------------------------------------
1 | @import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100..900&display=swap');
2 |
3 | *{
4 | font-family: "Raleway", sans-serif!important;
5 | }
6 |
7 | .body-container {
8 | background-image: radial-gradient(circle at var(--x) var(--y), var(--color1) 0%, var(--color2) var(--position2)), url('assets/gorilla-bg-min.jpg');
9 | background-position: center top;
10 | background-size: cover;
11 | }
--------------------------------------------------------------------------------
/src/App.jsx:
--------------------------------------------------------------------------------
1 |
2 | import { Route,Routes } from "react-router-dom";
3 | import { Analytics } from "@vercel/analytics/react"
4 | import Nav from "./components/Nav"
5 | import Footer from './sections/Footer'
6 | import Project from "./Pages/Project";
7 | import Meme from "./Pages/Meme";
8 | import LandingPage from "./Pages/LandingPage";
9 |
10 | const App = () => {
11 | return (
12 | <>
13 |
14 |
15 |
16 | }/>
17 |
18 |
19 | }/>
20 |
21 |
22 | }/>
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | >
33 | );
34 | };
35 |
36 | export default App;
37 |
38 |
39 | // {/*
40 | //
41 | //
42 |
43 | //
44 | // */}
--------------------------------------------------------------------------------
/src/Pages/AboutUs.jsx:
--------------------------------------------------------------------------------
1 | export default function AboutUs() {
2 | return (
3 |
4 |
43 | );
44 | };
45 |
46 | export default BlogPosts;
47 |
--------------------------------------------------------------------------------
/src/Pages/Faq.jsx:
--------------------------------------------------------------------------------
1 | import { useState } from 'react';
2 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3 | import { faChevronDown } from '@fortawesome/free-solid-svg-icons';
4 | import '@fortawesome/fontawesome-svg-core/styles.css';
5 | import { config } from '@fortawesome/fontawesome-svg-core';
6 | config.autoAddCss = false;
7 |
8 | const faqData = [
9 | {
10 | question: "What is this platform about?",
11 | answer: "This platform (Githubstreak) is designed to help developers in any way as much as possible."
12 | },
13 | {
14 | question: "How do I get involved?",
15 | answer: "Joining Githubstreak is simple! On this our community website, signup with your Github account, and start your coding journey. Engage with solo projects, team projects, and contribute to open-source initiatives.."
16 | },
17 | {
18 | question: "What if I'm new to coding?",
19 | answer: "The Githubstreak community is inclusive and beginner-friendly. Our community values growth, and members at all skill levels are encouraged to participate. Ask questions, seek guidance, and learn alongside experienced developers."
20 | },
21 | {
22 | question: "What's the significance of the green boxes?",
23 | answer: "The green boxes represent your coding journey. They showcase your dedication to personal projects, teamwork, and open-source contributions. It's a visual representation of your progress and the collective achievements of the community."
24 | }
25 | ];
26 |
27 | const FAQ = () => {
28 | const [activeIndex, setActiveIndex] = useState(null);
29 |
30 | const toggleFAQ = (index) => {
31 | if (activeIndex === index) {
32 | setActiveIndex(null);
33 | } else {
34 | setActiveIndex(index);
35 | }
36 | };
37 |
38 | return (
39 |
40 |
41 |
Frequently Asked Questions
42 |
Find answers to the most commonly asked questions below.
11 | Consistency beats talent because it is more sustainable, adaptable,
12 | and rewarding.
13 | It helps one improve skills, achieve goals, and overcome challenges.
14 |