Skip to content

Commit

Permalink
fix: relative paths and static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatel0170 committed May 27, 2024
1 parent 91afa77 commit 2cef648
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
File renamed without changes
File renamed without changes
19 changes: 5 additions & 14 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@ const Experience = React.lazy(() => import("./pages/Experience/Experience"));
const HomePage = React.lazy(() => import("./pages/Home/Home"));
const Resume = React.lazy(() => import("./components/Resume/Resume"));


const routes = [
{ path: "/", element: <HomePage /> },
{ path: "/projects", element: <Project /> },
{ path: "/education", element: <Education /> },
{ path: "/experience", element: <Experience /> },
{ path: "/resume", element: <Resume /> },
{ path: "*", element: <HomePage /> },
{ path: "*", element: <HomePage /> }
];


const Spinner = () => (
<div class="flex items-center justify-center h-screen">
<div class="flex items-center justify-center h-screen">
<div class="relative">
<div class="h-24 w-24 rounded-full border-t-8 border-b-8 border-gray-200"></div>
<div class="absolute top-0 left-0 h-24 w-24 rounded-full border-t-8 border-b-8 border-blue-500 animate-spin">
</div>
<div class="h-24 w-24 rounded-full border-t-8 border-b-8 border-gray-200"></div>
<div class="absolute top-0 left-0 h-24 w-24 rounded-full border-t-8 border-b-8 border-blue-500 animate-spin"></div>
</div>
</div>
</div>
);

const Layout = ({ children }) => (
Expand All @@ -38,7 +35,6 @@ const Layout = ({ children }) => (
</div>
);


function App() {
const routeElements = routes.map(({ path, element }, index) => (
<Route key={index} path={path} element={element} />
Expand All @@ -55,9 +51,4 @@ function App() {
);
}


export default App;




2 changes: 1 addition & 1 deletion src/components/HeroSection/HeroSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const HeroSection = ({ data }) => {
</div>
<div className="p-15 flex justify-center items-center">
<img
src="/profile-new.png"
src="./assets/profile-new.png"
alt="profile-new"
className="rounded-full shadow-xl md:w-2/3 xl:w-2/3 2xl:w-1/2"
loading="eager"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Project/Projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Managed the team as a Scrum Master, implementing the factory and observer design patterns while following SDLC."
],
"techStack": ["MERN stack", "Postman", "Tailwind", "Stripe API", "SendGrid API", "Twillo"],
"image": "../../assets/projects/settlout.png",
"image": "./assets/projects/settlout.png",
"links": [
{
"name": "GitHub",
Expand Down

0 comments on commit 2cef648

Please sign in to comment.