-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathFeatureCard.jsx
More file actions
51 lines (48 loc) · 1.76 KB
/
Copy pathFeatureCard.jsx
File metadata and controls
51 lines (48 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import React from 'react';
import { useNavigate } from 'react-router-dom';
import HighlightWrapper from './HighlightWrapper';
import '../App.css'
const FeatureCard = ({
title,
tag,
info,
buttontext,
style,
tagStyle,
page,
}) => {
const navigate = useNavigate();
const handleButtonClick = () => {
window.open(page, '_blank');
};
return (
<div className={` w-10/12 mx-auto border-2 backdrop-blur-sm shadow-gradient border-gray-700 p-3 flex flex-col bg-clip-border rounded-xl shadow-md`}>
<div className="w-full mb-3">
<h3 className={`aanimate-bounce-less text-3xl font-semibold ${tagStyle} bg-clip-text text-transparent bg-gradient-to-br from-blue-400 to-purple-400 duration-1000 ease-in-out`}>
<HighlightWrapper>{title}</HighlightWrapper>
</h3>
</div>
<div className="mb-1">
<p className={`text-[0.8rem] text-gray-100 ${tagStyle}`}>
<HighlightWrapper>{tag}</HighlightWrapper>
</p>
</div>
<div className="mb-[4rem] md:h-[100px]">
<p className="text-[1.1rem] text-gray-300">
<HighlightWrapper>{info}</HighlightWrapper>
</p>
</div>
<div className="">
<button
className={`mx-auto relative bg-gradient-to-br px-5 from-blue-800 via-blue-600 to-blue-800 inline-flex items-center justify-center p-0.5 mb-3 me-2 overflow-hidden text-lg font-medium text-gray-900 rounded-lg group bg-white dark:bg-gray-900`}
onClick={handleButtonClick}
>
<span className="relative text-white px-3 py-2.5 transition-all ease-in duration-75 rounded-md group-hover:bg-opacity-0">
<HighlightWrapper>{buttontext}</HighlightWrapper>
</span>
</button>
</div>
</div>
);
};
export default FeatureCard;