Skip to content

Commit

Permalink
Feat: Rename all Route-Links prefix-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ITurres committed Oct 11, 2023
1 parent afe026c commit 8850008
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "reactive-portfolio",
"version": "0.1.0",
"private": true,
"homepage": "https://iturres.github.io/top-s",
"homepage": "https://iturres.github.io/iturres-reactive-portfolio",
"dependencies": {
"@splidejs/react-splide": "^0.7.12",
"axios": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import HomePage from './components/pages/HomePage.tsx';
const App: React.FC = () => (
<>
<Routes>
<Route path="/" element={<AccessPage />} />
<Route path="homepage/*" element={<HomePage />} />
<Route path="/iturres-reactive-portfolio/" element={<AccessPage />} />
<Route path="/iturres-reactive-portfolio/homepage/*" element={<HomePage />} />
</Routes>
</>
);
Expand Down
15 changes: 12 additions & 3 deletions src/components/UI/AnimatedButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ const AnimatedButton: React.FC = () => (
className="animated-button my-btn"
aria-label="navigates to expertise page"
>
<Link to="/homepage/expertise" className="text-hue-rotate">
<Link
to="/iturres-reactive-portfolio/homepage/expertise"
className="text-hue-rotate"
>
languages
</Link>
<Link to="/homepage/expertise" className="text-hue-rotate">
<Link
to="/iturres-reactive-portfolio/homepage/expertise"
className="text-hue-rotate"
>
frameworks
</Link>
<Link to="/homepage/expertise" className="text-hue-rotate">
<Link
to="/iturres-reactive-portfolio/homepage/expertise"
className="text-hue-rotate"
>
skills
</Link>
</button>
Expand Down
10 changes: 5 additions & 5 deletions src/components/UI/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Navbar: React.FC = () => {
</button>
<ul>
<li style={{ '--elem': 0 } as CSSProperties}>
<Link to="/homepage">
<Link to="/iturres-reactive-portfolio/homepage">
<SiAboutdotme
size={iconSize}
className="text-hue-rotate"
Expand Down Expand Up @@ -65,7 +65,7 @@ const Navbar: React.FC = () => {
</a>
</li>
<li style={{ '--elem': 3 } as CSSProperties}>
<Link to="/homepage/projects">
<Link to="/iturres-reactive-portfolio/homepage/projects">
<FaProjectDiagram
size={iconSize}
className="text-hue-rotate"
Expand All @@ -74,7 +74,7 @@ const Navbar: React.FC = () => {
</Link>
</li>
<li style={{ '--elem': 4 } as CSSProperties}>
<Link to="/homepage/contact">
<Link to="/iturres-reactive-portfolio/homepage/contact">
<AiOutlineMail
size={iconSize}
className="text-hue-rotate"
Expand All @@ -83,12 +83,12 @@ const Navbar: React.FC = () => {
</Link>
</li>
<li style={{ '--elem': 5 } as CSSProperties}>
<Link to="/">
<Link to="/iturres-reactive-portfolio/">
<BiExit size={iconSize} className="text-hue-rotate" title="Exit" />
</Link>
</li>
<li style={{ '--elem': 6 } as CSSProperties}>
<Link to="/homepage/expertise">
<Link to="/iturres-reactive-portfolio/homepage/expertise">
<LuSquareStack
size={iconSize}
className="text-hue-rotate"
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/AccessPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const AccessPage = () => {
}
}, 200);

$videoElement.current.addEventListener('ended', () => navigate('/homepage'));
$videoElement.current.addEventListener('ended', () => navigate('/iturres-reactive-portfolio/homepage'));
}
};

Expand Down

0 comments on commit 8850008

Please sign in to comment.