Skip to content

Commit 1a6ab2d

Browse files
authored
UI Hover Effects (#17)
* feat: update hover animations for primary and link buttons * feat: modifies footer and navbar styles
1 parent 96b0e5e commit 1a6ab2d

22 files changed

+493
-315
lines changed

package-lock.json

Lines changed: 155 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
"@types/node": "^22.10.6",
2222
"@types/react": "^19.0.7",
2323
"@types/react-dom": "^19.0.3",
24+
"autoprefixer": "^10.4.20",
2425
"eslint": "^9.18.0",
2526
"eslint-config-next": "15.1.4",
26-
"postcss": "^8.5.0",
27+
"postcss": "^8.5.1",
2728
"tailwindcss": "^3.4.17",
2829
"typescript": "^5.7.3"
2930
}

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/app/about/[slug]/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ const Layout = ({
3535
/>
3636
<div className="absolute top-0 left-0 pt-16 max-w-16 z-5 pl-[7vw] flex flex-col sm:flex-row">
3737
<Link
38-
className="text-sm font-semibold mr-10 mb-5 sm:mb-10 w-44 bg-white text-black rounded-full shadow-[0.1rem_0.2rem_0.5rem_rgba(0,0,0,0.15)] px-6 py-2.5 border-none animation-easein-slow shift-to-right"
38+
className="team-button animation-easein primary-button primary-button--blue"
3939
href="/contact/#consult"
4040
>
4141
Culture@Procedure
4242
</Link>
4343
<Link
44-
className="text-sm font-semibold mr-10 mb-5 sm:mb-10 w-44 bg-white text-black rounded-full shadow-[0.1rem_0.2rem_0.5rem_rgba(0,0,0,0.15)] px-6 py-2.5 border-none animation-easein-slow shift-to-right"
44+
className="team-button animation-easein primary-button primary-button--green"
4545
href="/contact/#consult"
4646
>
4747
Team@Procedure

src/app/about/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const About = () => {
4949
title="Our Story"
5050
/>
5151
<TeamsData />
52-
<section>
53-
<Consultation type="transparent" />
52+
<section className="mt-12">
53+
<Consultation type="colored" backgroundColor="#c3201f" />
5454
</section>
5555
</>
5656
)

src/app/capabilities/components/CapablitiesNavigation.tsx

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { capabilitiesData } from '@/constants/constant'
22
import Link from 'next/link'
33
import React from 'react'
44
import { twMerge } from 'tailwind-merge'
5-
import Image from 'next/image'
5+
import { ArrowRightIcon } from '@heroicons/react/16/solid'
66

77
const CapabilitiesNavigation = () => {
88
return (
@@ -14,7 +14,14 @@ const CapabilitiesNavigation = () => {
1414
>
1515
<h2
1616
className={twMerge(
17-
`text-5xl text-gray-500 font-bold mb-9 dot capitalize after:bg-[#7EB9E6]`
17+
'text-5xl text-gray-500 font-bold mb-9 dot',
18+
`${
19+
data.title === 'think'
20+
? 'dot-red'
21+
: data.title === 'build'
22+
? 'dot-blue'
23+
: 'dot-green'
24+
}`
1825
)}
1926
>
2027
{data.title}
@@ -23,18 +30,25 @@ const CapabilitiesNavigation = () => {
2330
{data.items.map(item => (
2431
<li className="group relative" key={item.title}>
2532
<Link
26-
className="text-black w-full text-2xl font-light block py-2.5 pr-12 border-b border-b-black/10 animation-easein-slow shift-to-right bg-white"
33+
className="nav-link text-black w-full text-2xl font-light block py-2.5 pr-12 border-b border-b-black/10"
2734
href={item.href}
2835
>
29-
{item.title}
36+
<div className="flex justify-between items-center w-full">
37+
{item.title}
38+
<div className="nav-link-button opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-100">
39+
<ArrowRightIcon className="nav-link-icon" />
40+
<div
41+
className={`nav-link-slide translate-x-full group-hover:translate-x-0 transition-transform duration-500 ${
42+
data.title === 'think'
43+
? 'nav-link-slide--red'
44+
: data.title === 'build'
45+
? 'nav-link-slide--blue'
46+
: 'nav-link-slide--green'
47+
}`}
48+
/>
49+
</div>
50+
</div>
3051
</Link>
31-
<Image
32-
className="block lg:hidden top-0 right-0 absolute group-hover:block"
33-
width={49}
34-
height={49}
35-
src="/assets/arrow-button.svg"
36-
alt="pointer"
37-
/>
3852
</li>
3953
))}
4054
</ul>

src/app/components/AgileDeliverySection.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,21 @@ const links = [
2222
description:
2323
'Services to help you make the right decisions to achieve business goals',
2424
href: '/capabilities/#think',
25+
navLinkSlide: 'nav-link-slide--red',
2526
},
2627
{
2728
title: 'Build',
2829
description:
2930
'We build products faster and better to deliver right to your customers',
3031
href: '/capabilities/#build',
32+
navLinkSlide: 'nav-link-slide--blue',
3133
},
3234
{
3335
title: 'Measure',
3436
description:
3537
'We continually track how well our strategies and products are work',
3638
href: '/capabilities/#measure',
39+
navLinkSlide: 'nav-link-slide--green',
3740
},
3841
]
3942

@@ -65,7 +68,7 @@ const AgileDeliverySection = () => {
6568
<Link
6669
key={index}
6770
className={twMerge(
68-
'border-t flex items-end py-5 justify-between text-black border-b border-b-black/10 animation-easein-slow shift-to-right',
71+
'border-t flex items-end py-5 justify-between text-black border-b border-b-black/10 animation-easein-slow shift-to-right nav-link group',
6972
index === 0 ? 'border-t-black/10' : ''
7073
)}
7174
href={link.href}
@@ -75,8 +78,9 @@ const AgileDeliverySection = () => {
7578
<h6 className="font-medium mb-1">{link.description}</h6>
7679
</div>
7780
<div className="ml-10 mb-5 mr-5 relative left-0">
78-
<div className="p-2 rounded-full shadow-md">
79-
<ArrowRightIcon className="w-5 h-5 text-red-500" />
81+
<div className="nav-link-button">
82+
<ArrowRightIcon className="nav-link-icon" />
83+
<div className={`nav-link-slide ${link.navLinkSlide}`} />
8084
</div>
8185
</div>
8286
</Link>

0 commit comments

Comments
 (0)