-
Notifications
You must be signed in to change notification settings - Fork 68
feat: revamp landing page with interactive components and unified nav (#251) #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yash-pouranik
merged 3 commits into
geturbackend:main
from
Siddh2024:fix/landing-page-revamp-v2-251
Jun 17, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
apps/web-dashboard/src/components/BorderGlow/BorderGlow.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| .border-glow-card { | ||
| --edge-proximity: 0; | ||
| --cursor-angle: 45deg; | ||
| --edge-sensitivity: 30; | ||
| --color-sensitivity: calc(var(--edge-sensitivity) + 20); | ||
| --border-radius: 28px; | ||
| --glow-padding: 40px; | ||
| --cone-spread: 25; | ||
|
|
||
| position: relative; | ||
| border-radius: var(--border-radius); | ||
| isolation: isolate; | ||
| transform: translate3d(0, 0, 0.01px); | ||
| display: flex; | ||
| flex-direction: column; | ||
| border: 1px solid rgba(255, 255, 255, 0.08); | ||
| background: var(--card-bg, rgba(255, 255, 255, 0.02)); | ||
| backdrop-filter: blur(12px); | ||
| -webkit-backdrop-filter: blur(12px); | ||
| overflow: visible; | ||
| box-shadow: | ||
| rgba(0, 0, 0, 0.1) 0px 1px 2px, | ||
| rgba(0, 0, 0, 0.1) 0px 2px 4px, | ||
| rgba(0, 0, 0, 0.1) 0px 4px 8px, | ||
| rgba(0, 0, 0, 0.1) 0px 8px 16px, | ||
| rgba(0, 0, 0, 0.1) 0px 16px 32px, | ||
| rgba(0, 0, 0, 0.1) 0px 32px 64px; | ||
| } | ||
|
|
||
| .border-glow-card::before, | ||
| .border-glow-card > .edge-light { | ||
| content: ""; | ||
| position: absolute; | ||
| inset: 0; | ||
| border-radius: inherit; | ||
| transition: opacity 0.25s ease-out; | ||
| z-index: -1; | ||
| } | ||
|
|
||
| .border-glow-card:not(:hover):not(.sweep-active)::before, | ||
| .border-glow-card:not(:hover):not(.sweep-active) > .edge-light { | ||
| opacity: 0; | ||
| transition: opacity 0.75s ease-in-out; | ||
| } | ||
|
|
||
| /* colored mesh-gradient border */ | ||
| .border-glow-card::before { | ||
| border: 1px solid transparent; | ||
| background: | ||
| linear-gradient(#0c0a0f 0 100%) padding-box, | ||
| linear-gradient(rgba(255, 255, 255, 0) 0% 100%) border-box, | ||
| var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) border-box, | ||
| var(--gradient-base, linear-gradient(#c299ff 0 100%)) border-box; | ||
| opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity))); | ||
| mask-image: | ||
| conic-gradient( | ||
| from var(--cursor-angle) at center, | ||
| black calc(var(--cone-spread) * 1%), | ||
| transparent calc((var(--cone-spread) + 15) * 1%), | ||
| transparent calc((100 - var(--cone-spread) - 15) * 1%), | ||
| black calc((100 - var(--cone-spread)) * 1%) | ||
| ); | ||
| } | ||
|
|
||
| /* outer glow layer */ | ||
| .border-glow-card > .edge-light { | ||
| inset: calc(var(--glow-padding) * -1); | ||
| pointer-events: none; | ||
| z-index: 1; | ||
| mask-image: | ||
| conic-gradient( | ||
| from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5% | ||
| ); | ||
| opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity))); | ||
| mix-blend-mode: plus-lighter; | ||
| } | ||
|
|
||
| .border-glow-card > .edge-light::before { | ||
| content: ""; | ||
| position: absolute; | ||
| inset: var(--glow-padding); | ||
| border-radius: inherit; | ||
| box-shadow: | ||
| 0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)), | ||
| 0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)), | ||
| 0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)), | ||
| 0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)), | ||
| 0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)), | ||
| 0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%)); | ||
| } | ||
|
|
||
| .border-glow-inner { | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: space-between; | ||
| height: 100%; | ||
| width: 100%; | ||
| position: relative; | ||
| z-index: 1; | ||
| } | ||
170 changes: 170 additions & 0 deletions
170
apps/web-dashboard/src/components/BorderGlow/BorderGlow.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,170 @@ | ||
| import { useRef, useCallback, useEffect } from 'react'; | ||
| import './BorderGlow.css'; | ||
|
|
||
| function parseHSL(hslStr) { | ||
| const match = hslStr.match(/([\d.]+)\s*([\d.]+)%?\s*([\d.]+)%?/); | ||
| if (!match) return { h: 40, s: 80, l: 80 }; | ||
| return { h: parseFloat(match[1]), s: parseFloat(match[2]), l: parseFloat(match[3]) }; | ||
| } | ||
|
|
||
| function buildGlowVars(glowColor, intensity) { | ||
| const { h, s, l } = parseHSL(glowColor); | ||
| const base = `${h}deg ${s}% ${l}%`; | ||
| const opacities = [100, 60, 50, 40, 30, 20, 10]; | ||
| const keys = ['', '-60', '-50', '-40', '-30', '-20', '-10']; | ||
| const vars = {}; | ||
| for (let i = 0; i < opacities.length; i++) { | ||
| vars[`--glow-color${keys[i]}`] = `hsl(${base} / ${Math.min(opacities[i] * intensity, 100)}%)`; | ||
| } | ||
| return vars; | ||
| } | ||
|
|
||
| const GRADIENT_POSITIONS = ['80% 55%', '69% 34%', '8% 6%', '41% 38%', '86% 85%', '82% 18%', '51% 4%']; | ||
| const GRADIENT_KEYS = ['--gradient-one', '--gradient-two', '--gradient-three', '--gradient-four', '--gradient-five', '--gradient-six', '--gradient-seven']; | ||
| const COLOR_MAP = [0, 1, 2, 0, 1, 2, 1]; | ||
|
|
||
| function buildGradientVars(colors) { | ||
| const vars = {}; | ||
| for (let i = 0; i < 7; i++) { | ||
| const c = colors[Math.min(COLOR_MAP[i], colors.length - 1)]; | ||
| vars[GRADIENT_KEYS[i]] = `radial-gradient(at ${GRADIENT_POSITIONS[i]}, ${c} 0px, transparent 50%)`; | ||
| } | ||
| vars['--gradient-base'] = `linear-gradient(${colors[0]} 0 100%)`; | ||
| return vars; | ||
| } | ||
|
|
||
| function easeOutCubic(x) { return 1 - Math.pow(1 - x, 3); } | ||
| function easeInCubic(x) { return x * x * x; } | ||
|
|
||
| function animateValue({ start = 0, end = 100, duration = 1000, delay = 0, ease = easeOutCubic, onUpdate, onEnd }) { | ||
| const t0 = performance.now() + delay; | ||
| let rafId = null; | ||
| function tick() { | ||
| const elapsed = performance.now() - t0; | ||
| const t = Math.min(elapsed / duration, 1); | ||
| onUpdate(start + (end - start) * ease(t)); | ||
| if (t < 1) rafId = requestAnimationFrame(tick); | ||
| else if (onEnd) onEnd(); | ||
| } | ||
| const timeoutId = setTimeout(() => { | ||
| rafId = requestAnimationFrame(tick); | ||
| }, delay); | ||
|
|
||
| return () => { | ||
| clearTimeout(timeoutId); | ||
| if (rafId != null) cancelAnimationFrame(rafId); | ||
| }; | ||
| } | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| const BorderGlow = ({ | ||
| children, | ||
| className = '', | ||
| edgeSensitivity = 30, | ||
| glowColor = '40 80 80', | ||
| backgroundColor = 'rgba(255, 255, 255, 0.02)', | ||
| borderRadius = 16, | ||
| glowRadius = 40, | ||
| glowIntensity = 1.0, | ||
| coneSpread = 25, | ||
| animated = false, | ||
| colors = ['#00f5d4', '#00b4ab', '#00ffd8'], | ||
| fillOpacity = 0.5, | ||
| }) => { | ||
| const cardRef = useRef(null); | ||
|
|
||
| const getCenterOfElement = useCallback((el) => { | ||
| const { width, height } = el.getBoundingClientRect(); | ||
| return [width / 2, height / 2]; | ||
| }, []); | ||
|
|
||
| const getEdgeProximity = useCallback((el, x, y) => { | ||
| const [cx, cy] = getCenterOfElement(el); | ||
| const dx = x - cx; | ||
| const dy = y - cy; | ||
| let kx = Infinity; | ||
| let ky = Infinity; | ||
| if (dx !== 0) kx = cx / Math.abs(dx); | ||
| if (dy !== 0) ky = cy / Math.abs(dy); | ||
| return Math.min(Math.max(1 / Math.min(kx, ky), 0), 1); | ||
| }, [getCenterOfElement]); | ||
|
|
||
| const getCursorAngle = useCallback((el, x, y) => { | ||
| const [cx, cy] = getCenterOfElement(el); | ||
| const dx = x - cx; | ||
| const dy = y - cy; | ||
| if (dx === 0 && dy === 0) return 0; | ||
| const radians = Math.atan2(dy, dx); | ||
| let degrees = radians * (180 / Math.PI) + 90; | ||
| if (degrees < 0) degrees += 360; | ||
| return degrees; | ||
| }, [getCenterOfElement]); | ||
|
|
||
| const handlePointerMove = useCallback((e) => { | ||
| const card = cardRef.current; | ||
| if (!card) return; | ||
|
|
||
| const rect = card.getBoundingClientRect(); | ||
| const x = e.clientX - rect.left; | ||
| const y = e.clientY - rect.top; | ||
|
|
||
| const edge = getEdgeProximity(card, x, y); | ||
| const angle = getCursorAngle(card, x, y); | ||
|
|
||
| card.style.setProperty('--edge-proximity', `${(edge * 100).toFixed(3)}`); | ||
| card.style.setProperty('--cursor-angle', `${angle.toFixed(3)}deg`); | ||
| }, [getEdgeProximity, getCursorAngle]); | ||
|
|
||
| useEffect(() => { | ||
| if (!animated || !cardRef.current) return; | ||
| const card = cardRef.current; | ||
| const angleStart = 110; | ||
| const angleEnd = 465; | ||
| card.classList.add('sweep-active'); | ||
| card.style.setProperty('--cursor-angle', `${angleStart}deg`); | ||
|
|
||
| const stops = []; | ||
| stops.push(animateValue({ duration: 500, onUpdate: v => card.style.setProperty('--edge-proximity', v) })); | ||
| stops.push(animateValue({ ease: easeInCubic, duration: 1500, end: 50, onUpdate: v => { | ||
| card.style.setProperty('--cursor-angle', `${(angleEnd - angleStart) * (v / 100) + angleStart}deg`); | ||
| }})); | ||
| stops.push(animateValue({ ease: easeOutCubic, delay: 1500, duration: 2250, start: 50, end: 100, onUpdate: v => { | ||
| card.style.setProperty('--cursor-angle', `${(angleEnd - angleStart) * (v / 100) + angleStart}deg`); | ||
| }})); | ||
| stops.push(animateValue({ ease: easeInCubic, delay: 2500, duration: 1500, start: 100, end: 0, | ||
| onUpdate: v => card.style.setProperty('--edge-proximity', v), | ||
| onEnd: () => card.classList.remove('sweep-active'), | ||
| })); | ||
|
|
||
| return () => { | ||
| stops.forEach(stop => stop?.()); | ||
| card.classList.remove('sweep-active'); | ||
| }; | ||
| }, [animated]); | ||
|
|
||
| const glowVars = buildGlowVars(glowColor, glowIntensity); | ||
|
|
||
| return ( | ||
| <div | ||
| ref={cardRef} | ||
| onPointerMove={handlePointerMove} | ||
| className={`border-glow-card ${className}`} | ||
| style={{ | ||
| '--card-bg': backgroundColor, | ||
| '--edge-sensitivity': edgeSensitivity, | ||
| '--border-radius': `${borderRadius}px`, | ||
| '--glow-padding': `${glowRadius}px`, | ||
| '--cone-spread': coneSpread, | ||
| '--fill-opacity': fillOpacity, | ||
| ...glowVars, | ||
| ...buildGradientVars(colors), | ||
| }} | ||
| > | ||
| <span className="edge-light" /> | ||
| <div className="border-glow-inner"> | ||
| {children} | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default BorderGlow; | ||
17 changes: 17 additions & 0 deletions
17
apps/web-dashboard/src/components/Hyperspeed/Hyperspeed.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #lights { | ||
| width: 100%; | ||
| height: 100%; | ||
| overflow: hidden; | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| z-index: 0; /* Behind all content in the hero section! */ | ||
| pointer-events: none; /* Make sure users can click elements over it */ | ||
| opacity: 0.45; /* Soften the light beams for better foreground text readability */ | ||
| } | ||
|
|
||
| #lights canvas { | ||
| width: 100%; | ||
| height: 100%; | ||
| display: block; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.