feat: navbar
This commit is contained in:
parent
f856876713
commit
c2baea19d1
8 changed files with 26 additions and 24 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
"use client"
|
"use client"
|
||||||
import React, { useRef, useEffect, useState } from "react"
|
import { useEffect, useState } from "react"
|
||||||
|
import { useRef } from "react"
|
||||||
|
|
||||||
const MouseTrackingGlowEffect: React.FC = () => {
|
const MouseTrackingGlowEffect: React.FC = () => {
|
||||||
const [position, setPosition] = useState({ x: 0, y: 0 })
|
const [position, setPosition] = useState({ x: 0, y: 0 })
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
import Image from "next/image"
|
||||||
|
|
||||||
type ImageOwnProps<T extends React.ElementType> = {
|
type ImageOwnProps<T extends React.ElementType> = {
|
||||||
className: string
|
className: string
|
||||||
image: string
|
image: string
|
||||||
|
|
@ -7,7 +9,6 @@ type ImageOwnProps<T extends React.ElementType> = {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImageProps<T extends React.ElementType> = ImageOwnProps<T> & Omit<React.ComponentProps<T>, keyof ImageOwnProps<T>>
|
type ImageProps<T extends React.ElementType> = ImageOwnProps<T> & Omit<React.ComponentProps<T>, keyof ImageOwnProps<T>>
|
||||||
import Image from "next/image"
|
|
||||||
|
|
||||||
export const ImageCard = <T extends React.ElementType = "div">({
|
export const ImageCard = <T extends React.ElementType = "div">({
|
||||||
className,
|
className,
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
|
import { useEffect, useState } from "react"
|
||||||
|
import { Button } from "components/Button/Button"
|
||||||
|
import { FaArrowRight } from "react-icons/fa"
|
||||||
|
|
||||||
interface NavbarProps {
|
interface NavbarProps {
|
||||||
logoSrc: string // Path to your logo image
|
logoSrc: string // Path to your logo image
|
||||||
}
|
}
|
||||||
|
|
||||||
import { useState, useEffect } from "react"
|
|
||||||
import { Button } from "components/Button/Button"
|
|
||||||
import { FaArrowRight } from "react-icons/fa"
|
|
||||||
|
|
||||||
const Navbar: React.FC<NavbarProps> = ({ logoSrc }) => {
|
const Navbar: React.FC<NavbarProps> = ({ logoSrc }) => {
|
||||||
const [showBackground, setShowBackground] = useState(false)
|
const [showBackground, setShowBackground] = useState(false)
|
||||||
const TOP_OFFSET = 50
|
const TOP_OFFSET = 50
|
||||||
|
|
@ -49,7 +50,10 @@ const Navbar: React.FC<NavbarProps> = ({ logoSrc }) => {
|
||||||
showBackground ? "backdrop-blur" : "bg-transparent"
|
showBackground ? "backdrop-blur" : "bg-transparent"
|
||||||
} fixed start-0 top-0 z-20 w-full bg-transparent dark:border-gray-600 dark:bg-gray-900`}
|
} fixed start-0 top-0 z-20 w-full bg-transparent dark:border-gray-600 dark:bg-gray-900`}
|
||||||
>
|
>
|
||||||
<section className="MOBILE-MENU flex hidden backdrop-blur-lg" style={mobileNavStyle}>
|
<section
|
||||||
|
className={`${isNavOpen ? "animate-openmenu" : "animate-closemenu"} block backdrop-blur-lg`}
|
||||||
|
style={mobileNavStyle}
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
{" "}
|
{" "}
|
||||||
<div className="CROSS-ICON absolute right-0 top-0 px-8 py-8">
|
<div className="CROSS-ICON absolute right-0 top-0 px-8 py-8">
|
||||||
|
|
@ -68,7 +72,7 @@ const Navbar: React.FC<NavbarProps> = ({ logoSrc }) => {
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<ul className="MENU-LINK-MOBILE-OPEN flex min-h-[300px] flex-col items-center justify-center text-white">
|
<ul className="MENU-LINK-MOBILE-OPEN flex h-full min-h-[300px] flex-col items-center justify-center text-white">
|
||||||
<li className="my-2 border-b border-gray-400 uppercase">
|
<li className="my-2 border-b border-gray-400 uppercase">
|
||||||
<a href="#">Home</a>
|
<a href="#">Home</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { GlowCapture, Glow } from "@codaworks/react-glow"
|
import { Glow, GlowCapture } from "@codaworks/react-glow"
|
||||||
import { BsAndroid, BsApple, BsGlobe2, BsHeadsetVr } from "react-icons/bs"
|
import { BsAndroid, BsApple, BsGlobe2, BsHeadsetVr } from "react-icons/bs"
|
||||||
|
|
||||||
export default function OurServices() {
|
export default function OurServices() {
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
import {
|
|
||||||
FigmaLogoIcon,
|
|
||||||
FramerLogoIcon,
|
|
||||||
SketchLogoIcon,
|
|
||||||
TwitterLogoIcon,
|
|
||||||
GitHubLogoIcon,
|
|
||||||
VercelLogoIcon,
|
|
||||||
NotionLogoIcon,
|
|
||||||
DiscordLogoIcon,
|
|
||||||
InstagramLogoIcon,
|
|
||||||
LinkedInLogoIcon,
|
|
||||||
} from "@radix-ui/react-icons"
|
|
||||||
|
|
||||||
const LOGOS = [
|
const LOGOS = [
|
||||||
"/images/Amazon_Web_Services-Logo.wine.svg",
|
"/images/Amazon_Web_Services-Logo.wine.svg",
|
||||||
"/images/Cisco_Systems-Logo.wine.svg",
|
"/images/Cisco_Systems-Logo.wine.svg",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { cn } from "./../../utils/cn"
|
import { cn } from "./../../utils/cn"
|
||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
import React, { createContext, useState, useContext, useRef, useEffect } from "react"
|
import React, { createContext, useContext, useEffect, useRef, useState } from "react"
|
||||||
|
|
||||||
const MouseEnterContext = createContext<[boolean, React.Dispatch<React.SetStateAction<boolean>>] | undefined>(undefined)
|
const MouseEnterContext = createContext<[boolean, React.Dispatch<React.SetStateAction<boolean>>] | undefined>(undefined)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@ export default function AboutUs() {
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<h3 className="mr-90 max-w-2xl text-slate-300">
|
<h3 className="mr-90 max-w-2xl text-slate-300">
|
||||||
we're dedicated to bringing your ideas to life with innovative solutions tailored to your unique needs.
|
we' re dedicated to bringing your ideas to life with innovative solutions tailored to your unique
|
||||||
|
needs.
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,14 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
openmenu: {
|
||||||
|
"0%": { left: "-224px" },
|
||||||
|
"100%": { left: "0px" },
|
||||||
|
},
|
||||||
|
closemenu: {
|
||||||
|
"0%": { left: "0px" },
|
||||||
|
"100%": { left: "-224px" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [require("@codaworks/react-glow/tailwind"), addVariablesForColors],
|
plugins: [require("@codaworks/react-glow/tailwind"), addVariablesForColors],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue