Skip to content

Savannah Hayes - GitHub Tracker#85

Open
savannah-hayes wants to merge 24 commits into
Technigo:mainfrom
savannah-hayes:main
Open

Savannah Hayes - GitHub Tracker#85
savannah-hayes wants to merge 24 commits into
Technigo:mainfrom
savannah-hayes:main

Conversation

@savannah-hayes

Copy link
Copy Markdown

Comment thread src/javascript/index.js Outdated

const username = "savannah-hayes";
const USER_URL = `https://api.github.com/users/${username}`;
const API_TOKEN = TOKEN || process.env.API_KEY

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice with .env!

Comment thread src/javascript/index.js
displayHtml()

const displayProfileData = (profileData) => {
const { avatar_url, name, login, bio, followers, following, location } = profileData;

@jjwwkkmm jjwwkkmm Mar 2, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice with destructuring! I guess it's to make these data available outside of this function as well as "props"?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I get it now! These are values from the data retrieved in the fetch, so you reused them to simply display in the html. This was so clever.

Comment thread index.html
<header id="header" class="header"></header>
<main class="body-wrapper">
<aside class="aside" id="aside"></aside>
<section class="projects" id="projects">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of semantic tags

@jjwwkkmm jjwwkkmm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am impressed by the code and the styling of the page. Nice idea of making several linked pages and particularly impressed by the part where you destructured the returned data object from the fetch and made use of the values in the html form for display.

The progress bars styling was also a nice extra feature improving the UX.

The only question I might have is that the pull request a link is linked to #, which I guess you put there to make it a home-page kind of link, but when I first tried the website without looking at the code I was wondering why the link didn't work.

Great job and code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants