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

update: link button added #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions components/header/Buttons.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Fira_Code } from "@next/font/google";
import { motion } from "framer-motion";
import { motion as m } from "framer-motion";

const firacode = Fira_Code({
subsets: ["latin"],
Expand All @@ -13,7 +13,7 @@ type Props = {
const Buttons = ({ context }: Props) => {
return (
<>
<motion.div
<m.div
whileHover={{ scale: 1.2 }}
whileTap={{ scale: 0.9 }}
transition={{ type: "spring", stiffness: 400, damping: 10 }}
Expand All @@ -22,7 +22,7 @@ const Buttons = ({ context }: Props) => {
className={`${firacode.className} cursor-pointer font-sans transition ease-linear hover:text-brand_main-300`}
>
\\ {context}
</motion.div>
</m.div>
</>
);
};
Expand Down
23 changes: 17 additions & 6 deletions components/header/HeaderRight.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
import Buttons from "./Buttons";
import Link from "next/link";

const HeaderRight = () => {
return (
<>
<div className="rightSideHeader flex gap-5 text-2xl font-bold text-brand_main-500">
<Buttons context={"home"} />
<Buttons context={"experience"} />
<Buttons context={"work"} />
<Buttons context={"blog"} />
<Buttons context={"contact"} />
<div className="flex gap-5 text-2xl font-bold rightSideHeader text-brand_main-500">
<Link href={"/home"}>
<Buttons context={"home"} />
</Link>
<Link href={"/experience"}>
<Buttons context={"experience"} />
</Link>
<Link href={"/work"}>
<Buttons context={"work"} />
</Link>
<Link href={"/blog"}>
<Buttons context={"blog"} />
</Link>
<Link href={"/contact"}>
<Buttons context={"contact"} />
</Link>
</div>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions components/hero/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function HeroSection() {
"flex min-h-screen w-screen items-center justify-center bg-brand_bg-500 text-brand_main-500"
}
>
<motion.div className="container flex h-full flex-col items-center justify-center">
<div className="textContainer flex select-none flex-col justify-start text-7xl">
<motion.div className="container flex flex-col items-center justify-center h-full">
<div className="flex flex-col justify-start select-none textContainer text-7xl">
<HelloGreetings greetings={"Hello, my name is"} />
<HeroMyName myName={"temuulen undrakhbayar"} />
<Role role={"Front-end Developer & UI/UX Designer"} />
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.7.1",
"react-tilt": "^0.1.4",
"typescript": "4.9.5"
},
"devDependencies": {
Expand Down