-
Notifications
You must be signed in to change notification settings - Fork 9
Enhancement the ui #23
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| @import "tailwindcss"; | ||
| @import "tw-animate-css"; | ||
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | ||
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap'); | ||
|
|
||
| @custom-variant dark (&:is(.dark *)); | ||
|
|
||
|
|
@@ -126,3 +126,143 @@ | |
| @apply bg-background text-foreground; | ||
| } | ||
| } | ||
|
|
||
| /* Custom animations for interactive homepage */ | ||
| @keyframes gradient { | ||
| 0%, 100% { | ||
| background-position: 0% 50%; | ||
| } | ||
| 50% { | ||
| background-position: 100% 50%; | ||
| } | ||
| } | ||
|
|
||
| @keyframes float { | ||
| 0%, 100% { | ||
| transform: translateY(0px); | ||
| } | ||
| 50% { | ||
| transform: translateY(-20px); | ||
| } | ||
| } | ||
|
|
||
| @keyframes pulse-glow { | ||
| 0%, 100% { | ||
| box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); | ||
| } | ||
| 50% { | ||
| box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); | ||
| } | ||
| } | ||
|
|
||
| @keyframes shimmer { | ||
| 0% { | ||
| background-position: -1000px 0; | ||
| } | ||
| 100% { | ||
| background-position: 1000px 0; | ||
| } | ||
| } | ||
|
|
||
| @keyframes slideInFromBottom { | ||
| 0% { | ||
| opacity: 0; | ||
| transform: translateY(30px); | ||
| } | ||
| 100% { | ||
| opacity: 1; | ||
| transform: translateY(0); | ||
| } | ||
| } | ||
|
|
||
| @keyframes scaleIn { | ||
| 0% { | ||
| opacity: 0; | ||
| transform: scale(0.9); | ||
| } | ||
| 100% { | ||
| opacity: 1; | ||
| transform: scale(1); | ||
| } | ||
| } | ||
|
|
||
| .animate-gradient { | ||
| background-size: 200% 200%; | ||
| animation: gradient 3s ease infinite; | ||
| } | ||
|
|
||
| .animate-float { | ||
| animation: float 3s ease-in-out infinite; | ||
| } | ||
|
|
||
| .animate-pulse-glow { | ||
| animation: pulse-glow 2s ease-in-out infinite; | ||
| } | ||
|
|
||
| .animate-shimmer { | ||
| animation: shimmer 2s linear infinite; | ||
| } | ||
|
|
||
| .animate-slide-in { | ||
| animation: slideInFromBottom 0.6s ease-out; | ||
| } | ||
|
|
||
| .animate-scale-in { | ||
| animation: scaleIn 0.5s ease-out; | ||
| } | ||
|
|
||
| /* Smooth scroll behavior */ | ||
| html { | ||
| scroll-behavior: smooth; | ||
| } | ||
|
|
||
| /* Card hover effects */ | ||
| .card-hover-effect { | ||
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | ||
| } | ||
|
|
||
| .card-hover-effect:hover { | ||
| transform: translateY(-8px) scale(1.02); | ||
| box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3); | ||
| } | ||
|
|
||
| /* Glassmorphism effect */ | ||
| .glass-effect { | ||
| backdrop-filter: blur(10px); | ||
| background: rgba(0, 0, 0, 0.5); | ||
| border: 1px solid rgba(255, 255, 255, 0.1); | ||
| } | ||
|
|
||
| /* Text gradient effect */ | ||
| .text-gradient { | ||
| background: linear-gradient(135deg, #a855f7, #ec4899, #8b5cf6); | ||
| background-clip: text; | ||
| -webkit-background-clip: text; | ||
| -webkit-text-fill-color: transparent; | ||
| background-size: 200% 200%; | ||
| animation: gradient 3s ease infinite; | ||
| } | ||
|
|
||
| /* Parallax container */ | ||
| .parallax-container { | ||
| transform-style: preserve-3d; | ||
| perspective: 1000px; | ||
| } | ||
|
|
||
| /* Custom scrollbar */ | ||
| ::-webkit-scrollbar { | ||
| width: 10px; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-track { | ||
| background: oklch(0.08 0 0); | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb { | ||
| background: oklch(0.7 0.18 270); | ||
| border-radius: 5px; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb:hover { | ||
| background: oklch(0.6 0.15 270); | ||
| } | ||
|
Comment on lines
+253
to
+268
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The custom animations defined here don't respect user motion preferences. All keyframe animations should include a prefers-reduced-motion media query to disable or reduce animations for users who have indicated motion sensitivity. This is important for accessibility and preventing discomfort or vestibular issues for users with motion disorders.