-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🚧 adding initial header structure
adding initial header structure
- Loading branch information
1 parent
a6d8389
commit 5dda3ce
Showing
9 changed files
with
276 additions
and
25 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
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 React from "react"; | ||
import { ReactComponent as SofttekPreviewLogo } from "../../../Assets/Logo.svg"; | ||
import SofttekPreviewLogo from "../../../Assets/Logo.svg"; | ||
const Logo = () => { | ||
return <SofttekPreviewLogo />; | ||
return ( | ||
<> | ||
<img src={SofttekPreviewLogo} alt="" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Logo; |
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,7 @@ | ||
import React from "react"; | ||
import { ReactComponent as BugerMenu } from "../../../Assets/menu.svg"; | ||
import BugerMenu from "../../../Assets/menu.svg"; | ||
const Menu = () => { | ||
return <BugerMenu />; | ||
return <img src={BugerMenu} alt="" />; | ||
}; | ||
|
||
export default Menu; |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Header.jsx | ||
import React from "react"; | ||
import Logo from "../../Atoms/Logo"; | ||
import { Link } from "react-router-dom"; | ||
import Menu from "../../Atoms/Menu"; | ||
|
||
const HeaderComponent = () => { | ||
return ( | ||
<header> | ||
<Logo /> | ||
<nav> | ||
<ul> | ||
<li> | ||
<Link to="/">DashBoard</Link> | ||
</li> | ||
<li> | ||
<Link to="/Contratos">Contratos</Link> | ||
</li> | ||
<li> | ||
<Link to="/Times">Times</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
<Menu /> | ||
</header> | ||
); | ||
}; | ||
|
||
export default HeaderComponent; |
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,18 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import Header from "../../Organisms/Header/Index"; | ||
|
||
function HomeTemplate({ children }) { | ||
return ( | ||
<> | ||
<Header /> | ||
{children} | ||
</> | ||
); | ||
} | ||
|
||
HomeTemplate.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
}; | ||
|
||
export default HomeTemplate; |
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,7 +1,7 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react"; | ||
import svgr from "vite-plugin-svgr"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
}) | ||
plugins: [react(), svgr()], | ||
}); |
Oops, something went wrong.