mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
update deps
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
"fumadocs-mdx": "11.5.3",
|
||||
"fumadocs-ui": "15.0.6",
|
||||
"lucide-react": "^0.475.0",
|
||||
"motion": "^12.4.7",
|
||||
"next": "15.1.6",
|
||||
"motion": "^12.4.10",
|
||||
"next": "15.2.1",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
@@ -31,6 +31,6 @@
|
||||
"eslint-config-next": "15.1.6",
|
||||
"postcss": "^8.5.3",
|
||||
"tailwindcss": "^4.0.9",
|
||||
"typescript": "^5.7.3"
|
||||
"typescript": "^5.8.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,20 +9,19 @@ const Navbar = () => {
|
||||
const [scrolled, setScrolled] = useState(false);
|
||||
const linkRefs = useRef<{ [key: string]: HTMLAnchorElement | null }>({});
|
||||
|
||||
const updateBackground = (linkId: string) => {
|
||||
const linkElement = linkRefs.current[linkId];
|
||||
if (linkElement) {
|
||||
setBgStyles({
|
||||
padding: "1rem 0rem",
|
||||
width: `${linkElement.clientWidth - 12}px`,
|
||||
transform: `translateX(${linkElement.offsetLeft}px)`,
|
||||
opacity: 1,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
|
||||
useEffect(() => {
|
||||
const updateBackground = (linkId: string) => {
|
||||
const linkElement = linkRefs.current[linkId];
|
||||
if (linkElement) {
|
||||
setBgStyles({
|
||||
padding: "1rem 0rem",
|
||||
width: `${linkElement.clientWidth - 12}px`,
|
||||
transform: `translateX(${linkElement.offsetLeft}px)`,
|
||||
opacity: 1,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
updateBackground(activeLink);
|
||||
|
||||
const handleScroll = () => {
|
||||
@@ -48,16 +47,14 @@ const Navbar = () => {
|
||||
}`}
|
||||
>
|
||||
<div
|
||||
className={`max-md:hidden flex items-center space-x-2 transition-opacity duration-300 ${
|
||||
className={`max-md:hidden flex flex-row items-center space-x-2 transition-opacity duration-300 ${
|
||||
scrolled ? "opacity-0" : "opacity-100"
|
||||
}`}
|
||||
>
|
||||
<div className="bg-gradient-to-br from-blue-500 via-blue-400 to-indigo-300 w-8 h-8 rounded-lg flex items-center justify-center">
|
||||
<div className="bg-black w-4 h-4 rounded-sm flex items-center justify-center">
|
||||
<span className="text-blue-500 text-xs font-mono">$_</span>
|
||||
</div>
|
||||
<div className="w-4 h-4 rounded-sm flex items-center justify-center">
|
||||
<span className="text-blue-500 text-md">$_</span>
|
||||
</div>
|
||||
<span className="text-blue-400 font-mono font-semibold text-lg">
|
||||
<span className="text-blue-400 font-semibold text-md">
|
||||
Better-T Stack
|
||||
</span>
|
||||
</div>
|
||||
@@ -127,7 +124,7 @@ const Navbar = () => {
|
||||
style={{
|
||||
transform: scrolled ? "translateY(0)" : "sm:translateY(-8px)",
|
||||
}}
|
||||
className={`hover:text-blue-300 transition-all duration-300 py-2 px-4 rounded-md font-mono ${
|
||||
className={`hover:text-blue-300 text-gray-300 transition-all duration-300 py-2 px-4 rounded-md font-mono ${
|
||||
scrolled
|
||||
? "sm:opacity-100 sm:translate-y-0"
|
||||
: "sm:opacity-0 sm:pointer-events-none"
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
"incremental": true,
|
||||
"paths": {
|
||||
"@/.source": ["./.source/index.ts"],
|
||||
"@/*": ["./src/*"]
|
||||
"@/*": ["./src/*"],
|
||||
"@/public/*": ["./public/*"]
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user