Skip to content

Commit 96eb31a

Browse files
committed
feat: add new animations, mouse glow effect, and enhance UI elements with badges and section titles
1 parent 5ec89aa commit 96eb31a

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎homepage/components/HomepageHeader/index.tsx‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { ReactElement } from 'react';
2-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
32
import Link from '@docusaurus/Link';
3+
import { useMouseGlow } from '@site/src/components/useMouseGlow';
4+
import MouseGlowOverlay from '@site/src/components/MouseGlowOverlay';
45

56
// GitHub icon component
67
const GitHubIcon = () => (
@@ -15,10 +16,15 @@ const GitHubIcon = () => (
1516
);
1617

1718
export default function HomepageHeader(): ReactElement {
18-
const { siteConfig } = useDocusaurusContext();
19-
19+
const { glow, onMouseMove, onMouseLeave } = useMouseGlow();
20+
2021
return (
21-
<header className="homepage-header">
22+
<header
23+
className="homepage-header"
24+
onMouseMove={onMouseMove}
25+
onMouseLeave={onMouseLeave}
26+
>
27+
<MouseGlowOverlay glow={glow} color="rgba(35, 134, 54, 0.2)" />
2228
<div className="container">
2329
<h1 className="title">
2430
Automate Your GitHub Project Workflow

0 commit comments

Comments
 (0)