-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from TailUFPB/feat/minor-front-adjusts
feat: minor adjusts added
- Loading branch information
Showing
6 changed files
with
81 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
interface Crumb { | ||
label: string; | ||
path?: string; | ||
} | ||
|
||
interface BreadcrumbProps { | ||
crumbs: Crumb[]; | ||
} | ||
|
||
const Breadcrumb: React.FC<BreadcrumbProps> = ({ crumbs }) => { | ||
const baseCrumb = { label: 'LinguifAI', path: '/' }; | ||
const allCrumbs = [baseCrumb, ...crumbs]; | ||
|
||
return ( | ||
<div className="p-4"> | ||
<nav aria-label="breadcrumb"> | ||
<ol className="flex space-x-2 text-lg"> | ||
{allCrumbs.map((crumb, index) => ( | ||
<li key={index} className={`flex items-center ${!crumb.path ? 'text-gray-500' : ''}`}> | ||
{index !== 0 && <span className="mx-2 text-gray-400">/</span>} | ||
{crumb.path ? ( | ||
<Link to={crumb.path} className="text-blue-800 hover:underline font-semibold">{crumb.label}</Link> | ||
) : (<span className="font-semibold">{crumb.label}</span> | ||
)} | ||
</li> | ||
))} | ||
</ol> | ||
</nav> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Breadcrumb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import Breadcrumb from "../components/breadcumbs/breadcumbs"; | ||
import Layout from "./layout/layout"; | ||
import AboutView from "./views/aboutView"; | ||
|
||
export default function About() { | ||
|
||
return <Layout><AboutView /></Layout>; | ||
return ( | ||
<Layout> | ||
<Breadcrumb crumbs={[{ label: "Sobre" }]} /> | ||
<AboutView /> | ||
</Layout> | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import Breadcrumb from "../components/breadcumbs/breadcumbs"; | ||
import Layout from "./layout/layout"; | ||
import HomeView from "./views/homeView"; | ||
|
||
|
||
export default function Home() { | ||
return <Layout><HomeView /></Layout>; | ||
return <Layout> | ||
<Breadcrumb crumbs={[{ label: "Classificar" }]} /> | ||
<HomeView /> | ||
</Layout>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters