Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
module.exports = {
env: { browser: true, es2020: true },
env: { browser: true, es2020: true, amd: true, node: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:react/jsx-uses-react",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh"],
rules: {
'react-refresh/only-export-components': 'warn',
"react-refresh/only-export-components": "warn",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
},
}
};
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -5,6 +5,12 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="root"></div>
6,939 changes: 6,939 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -6,9 +6,11 @@ import AboutUs from "./pages/AboutUs";
import Portofilo from "./pages/Portofilo";
import TestimonIals from "./pages/TestimonIals";
import Blog from "./pages/Blog";

const App = () => {
return (
<>
<Navigation />
<Layout title={"Home"}>
<section>
<Header />
Binary file added src/assets/logo-grey.png
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 src/assets/logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file removed src/constant/colors.jsx
Empty file.
Empty file removed src/constant/navigation.jsx
Empty file.
4 changes: 4 additions & 0 deletions src/constants/colors.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const primaryColor = "#A97CA4";
export const backgroundColor = "#FFFFFF";
export const headerColor = "#4E4E50";
export const textColor = "#1E1C31";
50 changes: 50 additions & 0 deletions src/constants/navigation.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React from "react";
import { Link } from "react-router-dom";
import { textColor } from "./colors";
import logo from "../assets/logo-grey.png";

const Navigation = () => {
return (
<nav
style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
padding: "1rem",
}}
>
<div>
<img src={logo} alt="Logo" style={{ height: "95px" }} />
</div>
<ul style={{ display: "flex", listStyle: "none" }}>
<li style={{ marginLeft: "4rem" }}>
<Link to="/" style={{ color: textColor }}>
Home
</Link>
</li>
<li style={{ marginLeft: "4rem" }}>
<Link to="/about" style={{ color: textColor }}>
About Us
</Link>
</li>
<li style={{ marginLeft: "4rem" }}>
<Link to="/portfolio" style={{ color: textColor }}>
Portfolio
</Link>
</li>
<li style={{ marginLeft: "4rem" }}>
<Link to="/news" style={{ color: textColor }}>
News
</Link>
</li>
<li style={{ marginLeft: "4rem" }}>
<Link to="/contact" style={{ color: textColor }}>
Contact
</Link>
</li>
</ul>
</nav>
);
};

export default Navigation;
9 changes: 8 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap");

:root {
--app-font: "Poppins", sans-serif;
--app-font-weight: 400;
}
4 changes: 4 additions & 0 deletions src/pages/Portfolio.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const Portofilo = () => {
return <div>Portofilo</div>;
};
export default Portofilo;
3,929 changes: 1,920 additions & 2,009 deletions yarn.lock

Large diffs are not rendered by default.