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', diff --git a/src/components/About.js b/src/components/About.js index f0d1121..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 { /** @@ -43,9 +41,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 +56,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; 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/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})
: "" }
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
);