index.styl 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // app/pages/Home/index.styl
  2. .hero-section
  3. margin-top: -2rem
  4. .event-card
  5. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
  6. &:hover
  7. transform: translateY(-8px)
  8. box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)
  9. .line-clamp-2
  10. display: -webkit-box
  11. -webkit-line-clamp: 2
  12. -webkit-box-orient: vertical
  13. overflow: hidden
  14. // Анимация появления карточек
  15. @keyframes fadeInUp
  16. from
  17. opacity: 0
  18. transform: translateY(30px)
  19. to
  20. opacity: 1
  21. transform: translateY(0)
  22. .event-card
  23. animation: fadeInUp 0.6s ease forwards
  24. &:nth-child(1)
  25. animation-delay: 0.1s
  26. &:nth-child(2)
  27. animation-delay: 0.2s
  28. &:nth-child(3)
  29. animation-delay: 0.3s
  30. &:nth-child(4)
  31. animation-delay: 0.4s
  32. &:nth-child(5)
  33. animation-delay: 0.5s
  34. &:nth-child(6)
  35. animation-delay: 0.6s
  36. // Адаптивность для мобильных устройств
  37. @media (max-width: 768px)
  38. .hero-section
  39. margin-top: 0
  40. .event-card
  41. margin-bottom: 1.5rem