Skip to content

Commit

Permalink
Merge pull request #21 from TailUFPB/about-page
Browse files Browse the repository at this point in the history
About page
  • Loading branch information
jonasgabriel18 authored Apr 14, 2024
2 parents 457ed95 + 91ff7b2 commit 78c34fb
Show file tree
Hide file tree
Showing 14 changed files with 4,455 additions and 579 deletions.
3,055 changes: 2,960 additions & 95 deletions package-lock.json

Large diffs are not rendered by default.

Binary file added public/assets/bertrand.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/cameron.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/gisele.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/jonas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/luiz.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/thaua.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/thiago.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function startFlaskServer() {
? "./api/app.py"
: "./api/app.py";

flaskServerProcess = childProcess.spawn("python3", [pythonPath], {
flaskServerProcess = childProcess.spawn("python", [pythonPath], {
detached: false,
stdio: ["ignore", "pipe", "pipe"],
});
Expand Down
3 changes: 3 additions & 0 deletions src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export function Menu() {
<li className="my-2 hover:text-blue-300 transition">
<Link to="/train">Treinar</Link>
</li>
<li className="my-2 hover:text-blue-300 transition">
<Link to="/about">Sobre</Link>
</li>
</ul>
</nav>
</CSSTransition>
Expand Down
90 changes: 90 additions & 0 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import { Menu } from "../components/menu/menu";
import { FaLinkedin, FaGithub } from 'react-icons/fa';

export default function About() {
const teamMembers = [
{
name: 'Jonas Gabriel',
linkedin: 'https://www.linkedin.com/in/jonas-gabriel-araujo/',
github: 'https://github.com/jonasgabriel18',
photo: '/assets/jonas.jpg',
},

{
name: 'Luiz Gusttavo',
linkedin: 'https://www.linkedin.com/in/luiz-gusttavo-oliveira-de-souza-7538091b1/',
github: 'https://github.com/GusttavoOliveira',
photo: '/assets/luiz.jpg',
},

{
name: 'Bertrand Lira',
linkedin: 'https://www.linkedin.com/in/bertrand-lira-veloso-52aa4926a/',
github: 'https://github.com/BertrandLira',
photo: '/assets/bertrand.jpg',
},

{
name: 'Cameron Maloney',
linkedin: 'https://www.linkedin.com/in/cameronmal/',
github: 'https://github.com/cmaloney111',
photo: '/assets/cameron.jpg',
},

{
name: 'Gisele Silva',
linkedin: 'https://www.linkedin.com/in/gisele-silva-6692941a4/',
github: 'https://github.com/GiseleBr678',
photo: '/assets/gisele.jpg',
},

{
name: 'Thauã Magalhães',
linkedin: 'https://www.linkedin.com/in/thaua-lucas/',
github: 'https://github.com/tahaluh',
photo: '/assets/thaua.jpg',
},

{
name: 'Thiago Rodrigues',
linkedin: 'https://www.linkedin.com/in/thiago-rodrigues-b8a328249/',
github: 'https://github.com/tahaluh',
photo: '/assets/thiago.jpg',
},
];

return (
<div className="bg-main-darker text-white min-h-screen flex flex-col">
<Menu />

<div className="p-8 text-center font-roboto">
<h1 className="text-3xl font-bold mb-6 mt-6">
Linguif<span className="text-main-light">AI</span>
</h1>

<h2 className="text-2xl font-semibold mb-4">Conheça a Equipe</h2>

<div className="grid grid-cols-2 md:grid-cols-4 gap-6">
{teamMembers.map((member, index) => (
<div key={index} className="text-center">
<img
src={member.photo}
alt={member.name}
className="rounded-full w-32 h-32 mx-auto mb-2"
/>
<p className="text-lg font-medium mb-1">{member.name}</p>
<div className="flex justify-center space-x-4">
<a href={member.linkedin} target="_blank" rel="noopener noreferrer">
<FaLinkedin className="w-6 h-6" />
</a>
<a href={member.github} target="_blank" rel="noopener noreferrer">
<FaGithub className="w-6 h-6" />
</a>
</div>
</div>
))}
</div>
</div>
</div>
);
}
1 change: 1 addition & 0 deletions src/routes/elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ const Loadable = (Component: ElementType) => (props: any) => {

export const Home = Loadable(lazy(() => import("../pages/home")));
export const Train = Loadable(lazy(() => import("../pages/train")));
export const About = Loadable(lazy(() => import("../pages/about")));
6 changes: 5 additions & 1 deletion src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Navigate, useRoutes } from "react-router-dom";
import { Home, Train } from "./elements";
import { Home, Train, About } from "./elements";

export default function Router() {
return useRoutes([
Expand All @@ -11,6 +11,10 @@ export default function Router() {
path: "/train",
element: <Train />,
},
{
path: "/about",
element: <About />,
},
{ path: "*", element: <Navigate to="/404" replace /> },
{ path: "/404", element: <>404</> },
]);
Expand Down
Loading

0 comments on commit 78c34fb

Please sign in to comment.