-
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.
Remove dotenv
- Loading branch information
Showing
9 changed files
with
84 additions
and
20 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"name": "Cameron", | ||
"email": "[email protected]" | ||
}, | ||
"version": "0.3.0", | ||
"version": "0.2.5", | ||
"main": "./public/electron.js", | ||
"homepage": "./", | ||
"private": true, | ||
|
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