Skip to content

Commit

Permalink
corrections on navbar and routes
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelpps committed Feb 6, 2024
1 parent 886f8f7 commit 99d4dc4
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 14 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/info/page.jsx → app/about/page.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import NavBar from "@/components/NavBar/NavBar";
import Contact from "../work/contact/Contact";
import Contact from "../works/contact/Contact";
import Footer from "@/components/footer/Footer";
import Summary from "./summary/Summary";
import Skills from "./skills/Skills";
Expand Down
6 changes: 3 additions & 3 deletions app/info/skills/Skills.jsx → app/about/skills/Skills.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Skills() {
</div>
<div
id="skills-backend-container"
className="flex flex-col md:grid md:grid-cols-2 mt-5 md:mt-0 pt-16 md:pt-12"
className="flex flex-col md:grid md:grid-cols-2 mt-10 md:mt-0 md:pt-12"
>
<div
id="backend-title-container"
Expand Down Expand Up @@ -77,7 +77,7 @@ function Skills() {
</div>
<div
id="skills-native-container"
className="flex flex-col md:grid md:grid-cols-2 mt-5 md:mt-0"
className="flex flex-col md:grid md:grid-cols-2 mt-10 md:mt-0"
>
<div
id="native-title-container"
Expand Down Expand Up @@ -107,7 +107,7 @@ function Skills() {
</div>
<div
id="skills-design-container"
className="flex flex-col md:grid md:grid-cols-2 mt-5 md:mt-0 pb-20 md:pb-0"
className="flex flex-col md:grid md:grid-cols-2 mt-10 md:mt-0 pb-20 md:pb-0"
>
<div
id="design-title-container"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions components/NavBar/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,33 +74,33 @@ export default function NavBar() {
<div className="flex items-center justify-center">
<label
for="Toggle3"
className="block p-2 h-10 w-full md:w-auto bg-gray-400 rounded-md bg-clip-padding backdrop-filter backdrop-blur-sm bg-opacity-40 border border-gray-100 cursor-pointer dark:text-gray-800"
className="block p-2 h-10 min-w-full md:w-auto bg-gray-400 rounded-md bg-clip-padding backdrop-filter backdrop-blur-sm bg-opacity-40 border border-gray-100 cursor-pointer dark:text-gray-800"
>
<input id="Toggle3" type="checkbox" className="hidden peer" />
<Link href={"/work"}>
<Link href={"/works"}>
<button
className={`text-[0.8rem] md:text-[1rem] px-2 md:px-4 py-0.6 rounded-l-md text-white font-semibold ${
currentPath === "/work" ? "bg-gray-500" : ""
className={`text-[0.7rem] md:text-[1rem] px-2 md:px-4 py-0.6 rounded-l-md text-white font-semibold ${
currentPath === "/works" ? "bg-gray-500" : ""
}`}
onClick={() => {
setShowWork(true);
setShowInfo(false);
}}
>
Work
Works
</button>
</Link>
<Link href={"/info"}>
<Link href={"/about"}>
<button
className={`text-[0.8rem] md:text-[1rem] px-2 md:px-4 py-0.6 rounded-r-md text-white font-semibold ${
currentPath === "/info" ? "bg-gray-500" : ""
className={`text-[0.7rem] md:text-[1rem] px-2 md:px-4 py-0.6 rounded-r-md text-white font-semibold ${
currentPath === "/about" ? "bg-gray-500" : ""
}`}
onClick={() => {
setShowWork(false);
setShowInfo(true);
}}
>
Info
About
</button>
</Link>
</label>
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const nextConfig = {
return [
{
source: "/",
destination: "/work",
destination: "/works",
permanent: true,
},
];
Expand Down

0 comments on commit 99d4dc4

Please sign in to comment.