$82 GRAYBYTE WORDPRESS FILE MANAGER $23

SERVER : premium267.web-hosting.com #1 SMP Wed Jun 4 13:01:13 UTC 2025
SERVER IP : 69.57.162.29 | ADMIN IP 216.73.216.187
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/njinenkb/jaccul.org/wp-content/plugins/extendify/src/AutoLaunch/components/

HOME
Current File : /home/njinenkb/jaccul.org/wp-content/plugins/extendify/src/AutoLaunch/components//ViewportPulse.jsx
import { useMemo } from '@wordpress/element';
import { colord } from 'colord';
import { motion, useReducedMotion } from 'framer-motion';

export const ViewportPulse = () => {
	const shouldReduceMotion = useReducedMotion();
	const bannerMain = useMemo(() => {
		return getComputedStyle(document.documentElement)
			.getPropertyValue('--ext-banner-main')
			.trim();
	}, []);

	const bannerMainWashed = useMemo(() => {
		return colord(bannerMain)
			.desaturate(0.3)
			.lighten(0.4)
			.alpha(0.2)
			.toRgbString();
	}, [bannerMain]);

	const isLight = useMemo(() => colord(bannerMain).isLight(), [bannerMain]);

	const designMain = useMemo(() => {
		return getComputedStyle(document.documentElement)
			.getPropertyValue('--ext-design-main')
			.trim();
	}, []);

	const mainColorLike = useMemo(() => {
		return colord(designMain).desaturate(0.3).alpha(0.2).toRgbString();
	}, [designMain]);

	if (shouldReduceMotion) return null;

	const colorToUse = isLight ? mainColorLike : bannerMainWashed;
	return (
		<motion.div
			className="absolute inset-0"
			style={{
				background: `radial-gradient(ellipse at center, transparent 70%, ${colorToUse} 100%)`,
			}}
			animate={{ opacity: [0, 1, 0] }}
			transition={{
				duration: 2.5,
				repeatDelay: 4,
				repeat: Infinity,
				ease: 'linear',
			}}
		/>
	);
};


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 May 2026 12.42 PM
njinenkb / njinenkb
0755
CreatingSite.jsx
4.452 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
DescriptionGathering.jsx
6.47 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
Launch.jsx
0.714 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
Logo.jsx
0.539 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
MovingGradients.jsx
1.729 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
NeedsTheme.jsx
0.826 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
RestartLaunchModal.jsx
5.164 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644
ViewportPulse.jsx
1.283 KB
3 May 2026 12.42 PM
njinenkb / njinenkb
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF