-
-
Модель недоступна
+
+
+
+ Модель недоступна
+
) : (
accessed_models &&
@@ -33,23 +33,20 @@
display: flex;
align-items: center;
justify-content: center;
- flex-direction: column;
position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.7);
- border-radius: 15px;
+ top: 20px;
+ right: 20px;
+ background-color: white;
+ border-radius: 100px;
padding-right: 20px;
- cursor: not-allowed;
+ padding: 8px 12px;
span {
- color: white;
+ color: #ff2372;
font-weight: 500;
+ padding-left: 10px;
}
}
-
.locked {
display: flex;
align-items: center;
@@ -6,6 +6,7 @@ import LockSvg from '@/src/assets/svg/lock.svg?react'
import BlockedSvg from '@/src/assets/svg/blocked.svg?react'
import styles from './card.module.scss'
+import { useThemeAndDevice } from '../lib/hooks'
interface IProps {
text: string
@@ -24,8 +25,10 @@ export const Card = ({ text, icon, title, blocked, slug, accessed_models }: IPro
: `/images/${slug}`
}, [accessed_models])
+ const { theme } = useThemeAndDevice()
+
return (
-
+
{blocked ? (
-
-
-
Модель недоступна
+
+
+
+ Модель недоступна
+
) : (
accessed_models &&