diff --git a/package.json b/package.json index 197f6c6..98c95d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-app", - "homepage": "https://pratikkabade.github.io/Github-Portfolio/", + "homepage": "https://pratikkabade.github.io/github-portfolio/", "version": "0.1.0", "description": "Built from https://www.github.com/firenudge-io/", "private": true, diff --git a/public/index.html b/public/index.html index 2b4eedd..f78686f 100644 --- a/public/index.html +++ b/public/index.html @@ -3,11 +3,10 @@ - - Github Portfolio + My Portfolio diff --git a/src/App.tsx b/src/App.tsx index d48ca3a..3dd5003 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,7 +6,6 @@ import { AppRoutes } from './routes/Routes'; function App() { return (
- {/*
*/}
); diff --git a/src/components/Header.tsx b/src/components/Header.tsx deleted file mode 100644 index fad1d38..0000000 --- a/src/components/Header.tsx +++ /dev/null @@ -1,26 +0,0 @@ -export const Header = () => { - return ( - - ) -} \ No newline at end of file diff --git a/src/components/home/OrganizationList.tsx b/src/components/home/OrganizationList.tsx index 9a89d83..2d9d20b 100644 --- a/src/components/home/OrganizationList.tsx +++ b/src/components/home/OrganizationList.tsx @@ -7,7 +7,7 @@ export const OrganizationList = () => { const ORG = data.map((item: any) => { return (
- + avatar_url

{item.login} diff --git a/src/components/home/Profile.tsx b/src/components/home/Profile.tsx index 5c50a81..c1b3273 100644 --- a/src/components/home/Profile.tsx +++ b/src/components/home/Profile.tsx @@ -28,10 +28,17 @@ export const Profile = () => { } image() + // set avatar as page icon + const icon = document.querySelector("link[rel*='icon']") as HTMLLinkElement; + + // + if (icon) { + icon.href = avatar; + } return (

- + avatar

{name}

@@ -39,7 +46,7 @@ export const Profile = () => {

{/* Github */} - +
@{UserName} @@ -49,7 +56,7 @@ export const Profile = () => { {/* Twitter */} { twitter !== null ? - +
twitter {twitter} @@ -67,9 +74,9 @@ export const Profile = () => { {/* Email */} { email !== null ? - +
- mail + mail {email}
diff --git a/src/components/org/Profile.tsx b/src/components/org/Profile.tsx index 43d4287..2f9033f 100644 --- a/src/components/org/Profile.tsx +++ b/src/components/org/Profile.tsx @@ -25,10 +25,18 @@ export const Profile = () => { } image() + // set avatar as page icon + const icon = document.querySelector("link[rel*='icon']") as HTMLLinkElement; + + // + if (icon) { + icon.href = avatar; + } + return (
- + avatar

{name}

@@ -36,7 +44,7 @@ export const Profile = () => {

{/* Github */} - +
@{name} @@ -46,7 +54,7 @@ export const Profile = () => { {/* Email */} { email !== null ? - +
mail {email} @@ -57,7 +65,7 @@ export const Profile = () => {
{/* go back */} - + Back diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx index 49cc936..de889c6 100644 --- a/src/routes/Routes.tsx +++ b/src/routes/Routes.tsx @@ -8,9 +8,9 @@ export const AppRoutes = () => {
- } /> - } /> - } /> + } /> + } /> + } />