Repository navigation
feat: revamped styling and content of home page #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
89f32ed
feat: added featured skills section to home page
George-Madeley de5f648
feat: added github metrics to home page
George-Madeley 3333a30
feat: added courses list section to home page
George-Madeley 936688a
revert: removed skills section
George-Madeley 6dcb91e
feat: updated featured repos section on home page
George-Madeley 643de23
refactor: updated featured jobs section on the home page
George-Madeley d51a860
refactor: updated footer
George-Madeley e499dc2
feat: added featured recommendation to home page
George-Madeley f9add11
feat: featured metrics now get data from GitHub API
George-Madeley 3a93356
perf: improved rendering time by suspending featured repos section on…
George-Madeley 317bb47
perf: improved animations
George-Madeley 6dc3591
fix: radial background top margin issue
George-Madeley 4d408af
chore: applied review fixes
George-Madeley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| import "./.next/dev/types/routes.d.ts"; | ||
| import "./.next/types/routes.d.ts"; | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| export * from "./commits"; | ||
| export * from "./issues"; | ||
| export * from "./languages"; | ||
| export * from "./pullRequests"; | ||
| export * from "./readme"; | ||
| export * from "./repo"; | ||
| export * from "./tags"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| "use server"; | ||
|
|
||
| import { cache } from "react"; | ||
|
|
||
| import octokit from "./entry"; | ||
|
|
||
| const getTotalIssuesCreatedFn = async (owner: string): Promise<number> => { | ||
| try { | ||
| const response = await octokit.request("GET /search/issues", { | ||
| q: `type:issue author:${owner}`, | ||
| per_page: 1, | ||
|
George-Madeley marked this conversation as resolved.
Resolved
|
||
| headers: { | ||
| "X-GitHub-Api-Version": "2022-11-28", | ||
| }, | ||
| }); | ||
|
|
||
| if (response.status > 299) { | ||
| throw new Error( | ||
| `Failed to fetch number of issues created. Status: ${response.status}` | ||
| ); | ||
| } | ||
|
|
||
| return response.data.total_count; | ||
| } catch (error) { | ||
| console.error(error); | ||
| throw error; | ||
| } | ||
| }; | ||
|
|
||
| export const getTotalIssuesCreated = cache(getTotalIssuesCreatedFn); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| "use server"; | ||
|
|
||
| import { cache } from "react"; | ||
|
|
||
| import octokit from "./entry"; | ||
|
George-Madeley marked this conversation as resolved.
Resolved
|
||
|
|
||
| const getTotalPRsCreatedFn = async (owner: string): Promise<number> => { | ||
| try { | ||
| const response = await octokit.request("GET /search/issues", { | ||
| q: `type:pr author:${owner}`, | ||
| per_page: 1, | ||
|
George-Madeley marked this conversation as resolved.
Resolved
|
||
| headers: { | ||
| "X-GitHub-Api-Version": "2022-11-28", | ||
| }, | ||
| }); | ||
|
|
||
| if (response.status > 299) { | ||
| throw new Error( | ||
| `Failed to fetch number of pull requests. Status: ${response.status}` | ||
| ); | ||
| } | ||
|
|
||
| return response.data.total_count; | ||
| } catch (error) { | ||
| console.error(error); | ||
| throw error; | ||
| } | ||
| }; | ||
|
|
||
| export const getTotalPRsCreated = cache(getTotalPRsCreatedFn); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.