diff --git a/gatsby-node.js b/gatsby-node.js
index 16d1564dd..a63ea42db 100644
--- a/gatsby-node.js
+++ b/gatsby-node.js
@@ -1,3 +1,4 @@
+const siteConfig = require('./site-config');
const { createFilePath } = require('gatsby-source-filesystem');
const appInsights = require('applicationinsights');
const WebpackAssetsManifest = require('webpack-assets-manifest');
@@ -237,6 +238,13 @@ exports.createPages = async ({ graphql, actions }) => {
isPermanent: true,
});
});
+
+ const profilePage = require.resolve('./src/pages/profile.js');
+ createPage({
+ path: `${siteConfig.pathPrefix}/people/`,
+ matchPath: `${siteConfig.pathPrefix}/people/:gitHubUsername`,
+ component: profilePage,
+ });
});
};
diff --git a/site-config.js b/site-config.js
index 16eb9a725..f39841aa8 100644
--- a/site-config.js
+++ b/site-config.js
@@ -6,6 +6,7 @@ const titles = {
'/user/': `User Rules`,
'/orphaned/': `Orphaned Rules`,
'/archived/': `Archived Rules`,
+ '/profile/': `Profile`,
};
module.exports = {
diff --git a/src/components/dropdown-card/dropdown-card.js b/src/components/dropdown-card/dropdown-card.js
index a091fede6..96f89a1ea 100644
--- a/src/components/dropdown-card/dropdown-card.js
+++ b/src/components/dropdown-card/dropdown-card.js
@@ -1,26 +1,35 @@
-import React from 'react';
-import PropTypes from 'prop-types';
import { useAuth0 } from '@auth0/auth0-react';
-import GitHubIcon from '-!svg-react-loader!../../images/github.svg';
+import { navigate } from 'gatsby';
+import PropTypes from 'prop-types';
+import React from 'react';
-const DropdownCard = () => {
+const DropdownCard = ({ setOpen }) => {
const { logout, user } = useAuth0();
return (
<>
-
+
@{user.nickname}
+
+