From 885208f98744e6a81797196255938e4f572f9036 Mon Sep 17 00:00:00 2001 From: Santiago Montoya Date: Mon, 30 Jun 2025 16:27:37 +0000 Subject: [PATCH] feat(routes): define and testing of web routes --- src/front/components/Team/Card.jsx | 12 +++++------ src/front/components/Team/Team.jsx | 2 +- src/front/pages/About.jsx | 12 +++++++++++ src/front/pages/Contact.jsx | 7 +++++++ src/front/pages/Projects.jsx | 9 +++++++++ src/front/pages/Services.jsx | 11 ++++++++++ src/front/routes.jsx | 32 +++++++++++++++++------------- 7 files changed, 64 insertions(+), 21 deletions(-) create mode 100644 src/front/pages/About.jsx create mode 100644 src/front/pages/Contact.jsx create mode 100644 src/front/pages/Projects.jsx create mode 100644 src/front/pages/Services.jsx diff --git a/src/front/components/Team/Card.jsx b/src/front/components/Team/Card.jsx index eef029b8b2..6f7a5bdbc8 100644 --- a/src/front/components/Team/Card.jsx +++ b/src/front/components/Team/Card.jsx @@ -6,13 +6,13 @@ import { Link } from "react-router-dom" export const Card = ({ name, position, description, image, mailLink, linkedinLink, githubLink }) => { return ( -
- CloudTech Team member profile picture -
-

{name}

-
{position}
+
+ CloudTech Team member profile picture +
+

{name}

+
{position}

{description}

-
+
diff --git a/src/front/components/Team/Team.jsx b/src/front/components/Team/Team.jsx index c90e7f6bc9..6f734828ee 100644 --- a/src/front/components/Team/Team.jsx +++ b/src/front/components/Team/Team.jsx @@ -13,7 +13,7 @@ export const Team = () => {
{teamContent.map(teamMember => ( -
+
{ + return ( + <> + + + + + ) +} \ No newline at end of file diff --git a/src/front/pages/Contact.jsx b/src/front/pages/Contact.jsx new file mode 100644 index 0000000000..e423b74e9c --- /dev/null +++ b/src/front/pages/Contact.jsx @@ -0,0 +1,7 @@ +export const Contact = () => { + return ( +
+

Contact Test

+
+ ) +} \ No newline at end of file diff --git a/src/front/pages/Projects.jsx b/src/front/pages/Projects.jsx new file mode 100644 index 0000000000..776ce659b5 --- /dev/null +++ b/src/front/pages/Projects.jsx @@ -0,0 +1,9 @@ +import { Projects } from "../components/Projects"; + +export const Portfolio = () => { + return ( + <> + + + ) +} \ No newline at end of file diff --git a/src/front/pages/Services.jsx b/src/front/pages/Services.jsx new file mode 100644 index 0000000000..f09c3a5e0e --- /dev/null +++ b/src/front/pages/Services.jsx @@ -0,0 +1,11 @@ +import { Services } from "../components/Services/Services" +import { Process } from "../components/Process" + +export const ServicesPage = () => { + return ( + <> + + + + ) +} \ No newline at end of file diff --git a/src/front/routes.jsx b/src/front/routes.jsx index 0557df6141..6d0b424430 100644 --- a/src/front/routes.jsx +++ b/src/front/routes.jsx @@ -1,30 +1,34 @@ // Import necessary components and functions from react-router-dom. import { - createBrowserRouter, - createRoutesFromElements, - Route, + createBrowserRouter, + createRoutesFromElements, + Route, } from "react-router-dom"; import { Layout } from "./pages/Layout"; import { Home } from "./pages/Home"; -import { Single } from "./pages/Single"; -import { Demo } from "./pages/Demo"; +import { About } from "./pages/About"; +import { ServicesPage } from "./pages/Services"; +import { Portfolio } from "./pages/Projects"; +import { Contact } from "./pages/Contact"; export const router = createBrowserRouter( - createRoutesFromElements( + createRoutesFromElements( // CreateRoutesFromElements function allows you to build route elements declaratively. // Create your routes here, if you want to keep the Navbar and Footer in all views, add your new routes inside the containing Route. // Root, on the contrary, create a sister Route, if you have doubts, try it! // Note: keep in mind that errorElement will be the default page when you don't get a route, customize that page to make your project more attractive. // Note: The child paths of the Layout element replace the Outlet component with the elements contained in the "element" attribute of these child paths. - // Root Route: All navigation will start from here. - } errorElement={

Not found!

} > + // Root Route: All navigation will start from here. + } errorElement={

Not found!

} > - {/* Nested Routes: Defines sub-routes within the BaseHome component. */} - } /> - } /> {/* Dynamic route for single items */} - } /> - - ) + {/* Nested Routes: Defines sub-routes within the BaseHome component. */} + } /> + } /> + } /> + } /> + } /> + + ) ); \ No newline at end of file