From 2f7b57333c53642b721c30aa708e102510391941 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Wed, 9 Feb 2022 23:58:43 -0500 Subject: [PATCH 1/5] Added sort to getRepos action --- src/actions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/index.js b/src/actions/index.js index 50f6fa0..e74406b 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -14,7 +14,7 @@ export const getUser = (username) => async (dispatch, getState) => { }; export const getRepos = (username) => async (dispatch, getState) => { - const response = await github.get(`/users/${username}/repos`); // axios request for repositories + const response = await github.get(`/users/${username}/repos`, {params: {sort: 'updated'}}); // axios request for repositories dispatch({ type: 'GET_REPOS', From c8072a72f43e9454286a1f57d45c444ddbcd8560 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Mon, 14 Feb 2022 13:44:46 -0500 Subject: [PATCH 2/5] Added button to main homepage --- src/components/css/App.css | 9 +++++++++ src/components/subcomponents/Topic.js | 1 + 2 files changed, 10 insertions(+) diff --git a/src/components/css/App.css b/src/components/css/App.css index 91b8dcc..cffe44f 100644 --- a/src/components/css/App.css +++ b/src/components/css/App.css @@ -30,6 +30,15 @@ html, body { height:100%; } +.btn { + border-style: solid; + border-color: #837483; + border-radius: 5px; + border-width: 1px; + background-color: #373747; + padding: 6px; +} + @media only screen and (max-width: 600px) { .App { flex-direction: column-reverse; diff --git a/src/components/subcomponents/Topic.js b/src/components/subcomponents/Topic.js index d53f3f6..1b2bcdd 100644 --- a/src/components/subcomponents/Topic.js +++ b/src/components/subcomponents/Topic.js @@ -23,6 +23,7 @@ const Card = (props) => {
{props.children}
+ Learn More ); From 98873dd7651e88be29795a9ef089e09ee95176e7 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Mon, 14 Feb 2022 13:44:58 -0500 Subject: [PATCH 3/5] Modified github card for /about --- src/components/About.js | 12 ++++++------ src/components/css/About.css | 12 +++++++++++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/components/About.js b/src/components/About.js index f0d1121..1fb5ea4 100644 --- a/src/components/About.js +++ b/src/components/About.js @@ -43,9 +43,9 @@ class About extends React.Component { social media below, just click the image and it'll bring you to the selected website. - - You can access a list of github repositories that I've created directly on this site. - + +

You can access a list of github repositories that I've created directly on this site.

+ Learn More
@@ -58,18 +58,18 @@ class About extends React.Component {
- + Github - + LinkedIn Hacker Rank - + Hack The Box diff --git a/src/components/css/About.css b/src/components/css/About.css index eec3836..271b20d 100644 --- a/src/components/css/About.css +++ b/src/components/css/About.css @@ -12,7 +12,7 @@ } .About .title { - margin-top: 2rem; + margin-top: 4rem; color: #BF8D8C !important; font-size: 48px; } @@ -46,6 +46,16 @@ margin: 10px; } +.About .link.bg-white { + background-color: white; + border-radius: 5px; + display:flex; + height: 10rem; + align-items: center; + justify-content: center; +} + + @media only screen and (max-width: 600px) { .About .links .link img { width: 25vw; From b8348d07057de12bbb4b24eda9a1d4d3f92142db Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Mon, 14 Feb 2022 13:46:37 -0500 Subject: [PATCH 4/5] Changed style of next page button --- src/components/subcomponents/GithubRepos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/subcomponents/GithubRepos.js b/src/components/subcomponents/GithubRepos.js index fe5441b..7209118 100644 --- a/src/components/subcomponents/GithubRepos.js +++ b/src/components/subcomponents/GithubRepos.js @@ -88,7 +88,7 @@ class GithubRepos extends React.Component {
{render} {this.props.page < pages ? -
this.props.nextPage()}>Load More ({this.props.page}/{pages})
+
this.props.nextPage()}>Load More ({this.props.page}/{pages})
: "" }
From 8bb1293a466e2bdddae32a84f115b783dc32b46b Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Mon, 14 Feb 2022 13:47:58 -0500 Subject: [PATCH 5/5] GithubRepos import is no longer needed --- src/components/About.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/About.js b/src/components/About.js index 1fb5ea4..288e025 100644 --- a/src/components/About.js +++ b/src/components/About.js @@ -3,8 +3,6 @@ import { Link } from 'react-router-dom'; import './css/About.css'; import Theater from './subcomponents/Theater'; import Card from './subcomponents/Card'; -import GithubRepos from './subcomponents/GithubRepos'; - class About extends React.Component { /**