style(_ui*): add new animation

This commit is contained in:
eshanized
2024-12-20 22:51:49 +05:30
parent da463ffc2e
commit 50bbc9a5e0

View File

@@ -45,31 +45,65 @@ export function Home() {
/* New feature card style */ /* New feature card style */
.feature-card { .feature-card {
border: 2px solid transparent; border: 2px solid transparent;
background: #f7f8fb; background: linear-gradient(145deg, #ffffff, #f0f4f8); /* Light gradient background */
padding: 20px; padding: 20px;
border-radius: 15px; border-radius: 15px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 15px rgba(100, 149, 237, 0.2); /* Double-layered shadow */
transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1),
border 0.3s ease;
position: relative;
overflow: hidden; /* Hide decorative elements */
}
.feature-card::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(100, 149, 237, 0.2), rgba(0, 0, 0, 0));
transform: scale(0);
transition: transform 0.4s ease-in-out;
z-index: 0;
}
.feature-card:hover::before {
transform: scale(1);
} }
.feature-card:hover { .feature-card:hover {
transform: translateY(-12px); transform: translateY(-10px) scale(1.05); /* Slight lift effect */
box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(100, 149, 237, 0.3); /* Enhanced shadow */
border-color: #6495ed; border-color: #6495ed; /* Highlight border */
} }
/* Feature card content style */
.feature-card h4 { .feature-card h4 {
font-size: 1.25rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
color: #6495ed; color: #6495ed; /* Accent color */
margin-bottom: 10px;
z-index: 1;
position: relative;
} }
.feature-card p { .feature-card p {
font-size: 1rem; font-size: 1rem;
color: #333333; color: #333333;
z-index: 1;
position: relative;
} }
.feature-card:hover h4 {
color: #1e90ff; /* Subtle color shift on hover */
}
.feature-card:hover p {
color: #555555; /* Slightly darker text */
}
/* New list style for features */ /* New list style for features */
.feature-list { .feature-list {
list-style-type: disc; list-style-type: disc;
@@ -104,7 +138,7 @@ export function Home() {
</p> </p>
{/* Call to Action Buttons */} {/* Call to Action Buttons */}
<div className="flex justify-center space-x-6 mt-6"> <div className="flex flex-wrap justify-center space-x-6 mt-6">
<Link <Link
to="/download" to="/download"
className="border-2 border-white text-white px-8 py-4 rounded-lg font-semibold transform hover:scale-105 hover:bg-white hover:text-[#6495ed] transition-all duration-300 inline-flex items-center space-x-3" className="border-2 border-white text-white px-8 py-4 rounded-lg font-semibold transform hover:scale-105 hover:bg-white hover:text-[#6495ed] transition-all duration-300 inline-flex items-center space-x-3"
@@ -120,10 +154,19 @@ export function Home() {
<Book className="h-5 w-5" /> <Book className="h-5 w-5" />
<span>Documentation 📚</span> <span>Documentation 📚</span>
</Link> </Link>
<Link
to="https://forum.snigdha-os.org" // Replace with your community forum URL
className="border-2 border-white text-white px-8 py-4 rounded-lg font-semibold transform hover:scale-105 hover:bg-white hover:text-[#6495ed] transition-all duration-300 inline-flex items-center space-x-3"
>
<Users className="h-5 w-5" />
<span>Community Forum 🌐</span>
</Link>
</div> </div>
</div> </div>
</section> </section>
{/* Features Section */} {/* Features Section */}
<section className="py-16 bg-gradient-to-r from-[#f0f4f8] to-[#ffffff]"> <section className="py-16 bg-gradient-to-r from-[#f0f4f8] to-[#ffffff]">
<div className="container mx-auto px-4"> <div className="container mx-auto px-4">