feat: Add redirect to login for Services explore solution
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { Icons } from './landing/constants';
|
import { Icons } from './landing/constants';
|
||||||
|
|
||||||
const services = [
|
const services = [
|
||||||
@@ -20,6 +21,8 @@ const services = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const Services = () => {
|
const Services = () => {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
// Simple Tilt Logic
|
// Simple Tilt Logic
|
||||||
const handleMouseMove = (e) => {
|
const handleMouseMove = (e) => {
|
||||||
const card = e.currentTarget;
|
const card = e.currentTarget;
|
||||||
@@ -77,7 +80,10 @@ const Services = () => {
|
|||||||
{service.desc}
|
{service.desc}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="pt-6 border-t border-gray-100 dark:border-white/10 flex items-center justify-between mt-auto group-hover:border-cyan/20 transition-colors">
|
<div
|
||||||
|
onClick={(e) => { e.stopPropagation(); navigate('/login'); }}
|
||||||
|
className="pt-6 border-t border-gray-100 dark:border-white/10 flex items-center justify-between mt-auto group-hover:border-cyan/20 transition-colors cursor-pointer"
|
||||||
|
>
|
||||||
<span className="text-xs font-bold text-gray-400 uppercase tracking-wider group-hover:text-cyan transition-colors">Explore Solution</span>
|
<span className="text-xs font-bold text-gray-400 uppercase tracking-wider group-hover:text-cyan transition-colors">Explore Solution</span>
|
||||||
<div className="w-8 h-8 rounded-full border border-gray-200 dark:border-white/20 text-gray-400 flex items-center justify-center transform group-hover:rotate-45 group-hover:border-cyan group-hover:text-cyan transition-all duration-300">
|
<div className="w-8 h-8 rounded-full border border-gray-200 dark:border-white/20 text-gray-400 flex items-center justify-center transform group-hover:rotate-45 group-hover:border-cyan group-hover:text-cyan transition-all duration-300">
|
||||||
↗
|
↗
|
||||||
|
|||||||
Reference in New Issue
Block a user