Skip to content

Commit 94d8197

Browse files
committed
select-none added in title principal
1 parent 5503cd2 commit 94d8197

4 files changed

Lines changed: 17 additions & 16 deletions

File tree

src/components/navbar.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Link from "next/link";
22
import { useRouter } from "next/router";
3-
import { CircleDashed, CirclesFour, CirclesThreePlus, Plus, X } from "phosphor-react";
3+
import { CirclesFour, CirclesThreePlus, X } from "phosphor-react";
44
import { useState } from "react";
55
import Modal from "./modal";
6-
import ToggleThemeBtn from "./toggle-theme";
6+
import ToggleThemeBtn from "./toggle-dark-theme-btn";
77

88
export default function NavBar() {
99
const router = useRouter();
@@ -15,27 +15,27 @@ export default function NavBar() {
1515
}
1616

1717
return(
18-
<nav className="h-auto w-full pt-4 text-base text-zinc-800/70 dark:text-white/70 flex justify-between items-center px-8 md:px-0 md:justify-around md:h-16 absolute top-0">
18+
<nav className="h-auto w-full pt-4 text-base flex justify-between items-center px-8 md:px-0 md:justify-around md:h-16 absolute top-0">
1919
<Link href="/">
20-
<div className="w-10 h-10 md:w-12 md:h-12 rounded-full ring-2 ring-violet-700/5 shadow-md shadow-violet-700/10 bakcdrop-blur relative">
20+
<div className="w-10 h-10 md:w-12 md:h-12 rounded-full ring-4 ring-violet-700/5 shadow-sm shadow-violet-700/10 bakcdrop-blur relative select-none">
2121
<img className="object-cove rounded-full" src="/images/My.png" alt="Althor image" />
2222
</div>
2323
</Link>
2424

2525
<div className="flex justify-center items-center">
2626
<ul className="hidden sm:flex justify-stretch items-cente gap-x-3">
27-
<li className={`${router.pathname == "/" ? "text-zinc-800/90 dark:text-white/90 font-semibold" : "text-base" } font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 dark:sm:hover:text-violet-300/70 sm:hover:medium transition duration-75 ease-in-out md:text-lg md:w-20 `}>
27+
<li className={`${router.pathname == "/" ? "text-zinc-900/90 font-semibold" : "text-base" } font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 sm:hover:medium hover:transition duration-75 ease-in-out md:text-lg md:w-20 `}>
2828
<Link href="/">Home</Link>
2929
</li>
30-
<li className={`${router.pathname == "/about" ? "text-z300-700/90 dark:text-white/90 font-semibold" : "text-base"} font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 dark:sm:hover:text-violet-300/70 sm:hover:medium transition duration-75 ease-in-out md:text-lg md:w-20`}>
30+
<li className={`${router.pathname == "/about" ? "text-zinc-900/90 font-semibold" : "text-base"} font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 sm:hover:medium hover:transition duration-75 ease-in-out md:text-lg md:w-20`}>
3131
<Link href="/about">About</Link>
3232
</li>
33-
<li className={`${router.pathname == "/contact" ? "text-z300-700/90 dark:text-white/90 font-semibold" : "text-base"} font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 dark:sm:hover:text-violet-300/70 sm:hover:medium transition duration-75 ease-in-out md:text-lg md:w-20`}>
34-
<Link href="/contact">Contact</Link>
35-
</li>
36-
<li className={`${router.pathname == "/projects" ? "text-z300-700/90 dark:text-white/90 font-semibold" : "text-base"} font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 dark:sm:hover:text-violet-300/70 sm:hover:medium transition duration-75 ease-in-out md:text-lg md:w-20`}>
33+
<li className={`${router.pathname == "/projects" ? "text-zinc-900/90 font-semibold" : "text-base"} font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 sm:hover:medium hover:transition duration-75 ease-in-out md:text-lg md:w-20`}>
3734
<Link href="/projects">Projects</Link>
3835
</li>
36+
<li className={`${router.pathname == "/contact" ? "text-zinc-900/90 font-semibold" : "text-base"} font-medium sm:min-w-max sm:w-16 sm:flex sm:justify-center sm:hover:text-violet-900/80 sm:hover:medium hover:transition duration-75 ease-in-out md:text-lg md:w-20`}>
37+
<Link href="/contact">Contact</Link>
38+
</li>
3939
</ul>
4040

4141
<hr className="hidden sm:block w-0.5 h-5 bg-separator/80 dark:bg-white/25 mx-5 md:mx-7 shadow-md rounded-full" />

src/pages/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import Link from 'next/link'
22

33
import Layout from '../components/layout'
4-
import ToggleThemeBtn from '../components/toggle-theme'
54

65
export default function Home() {
76
return (
87
<Layout>
9-
<div className="sm:w-full sm:h-full flex mt-24 sm:m-0 sm:items-center">
8+
<div className="sm:w-full sm:h-full flex mt-24 sm:m-0 sm:items-center select-none">
109
<div className="flex flex-col gap-10 md:gap-5 px-4">
1110
<h2 className="flex flex-col text-zinc">
12-
<div className="text-4xl font-semibold ">
11+
<div className="text-4xl font-semibold">
1312
Hi!, my name is
1413
</div>
1514
<div className="text-5xl md:text-7xl md:ml-5 font-extralight">
@@ -19,13 +18,13 @@ export default function Home() {
1918
<p
2019
className="text-xl md:ml-5"
2120
>I'm a software <strong>
22-
<Link href="https://www.google.com/search?q=what+is+developer" className="underline" target="__blank">
21+
<Link href="https://www.google.com/search?q=what+is+developer" className="underline dark:hover:text-white/70 hover:text-zinc-700 hover:transition-colors hover:ease-in" target="__blank">
2322
developer
2423
</Link>
2524
</strong>!</p>
26-
<button className="max-w-max h-8 px-2 text-xl font-regular rounded-lg text-black dark:text-white bg-black/25 dark:bg-white/25 md:ml-5 dark:border-1 shadow-md dark:shadow-none shadow-violet-700/25 dark:shadow-violet-300/25 bakcdrop-blur transition ring-2 ring-violet-700/30 dark:ring-violet-300/10">
25+
<button className="max-w-max h-8 px-2 text-xl hover:text-zinc-700 dark:hover:text-white/70 font-regular rounded-lg bg-black/25 dark:bg-white/25 md:ml-5 dark:border-1 md:shadow-sm hover:shadow-violet-500/25 bakcdrop-blur ring-4 dark:ring-2 ring-violet-300/10 border border-transparent hover:transition-colors hover:ease-in hover:border-zinc-700 dark:hover:border-white/50">
2726
<Link href="/about">
28-
more...
27+
about me...
2928
</Link>
3029
</button>
3130
</div>

styles/globals.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
@layer utilities {
88
* {
99
scrollbar-color: #111 #050505;
10+
@apply text-zinc-700/90
11+
dark:text-white/50
1012
}
1113

1214
::-webkit-scrollbar {

0 commit comments

Comments
 (0)