@@ -140,7 +140,7 @@ .locked { display: flex; align-items: center; - justify-content: center; + justify-content: end; flex-direction: column; position: absolute; top: 0; @@ -149,12 +149,35 @@ height: 100%; background-color: rgba(0, 0, 0, 0.7); border-radius: 15px; - padding-right: 20px; - z-index: 1; + padding: 20px; + z-index: 10000; + &:hover { + outline: 4px solid #8280ff66; + outline-offset: -3px; + box-shadow: 0px 0px 15.1px 0px #8280ff40; + } + + &__label { + margin: auto; + display: flex; + align-items: center; + flex-direction: column; + } + + &__button { + width: 100%; + + button { + width: 100%; + text-align: center; + } + } span { color: white; padding-top: 10px; - font-weight: 500; + font-weight: 600; + font-size: 15px; + letter-spacing: -1%; } } @@ -138,7 +138,7 @@ .locked { display: flex; align-items: center; - justify-content: center; + justify-content: end; flex-direction: column; position: absolute; top: 0; @@ -147,11 +147,35 @@ height: 100%; background-color: rgba(0, 0, 0, 0.7); border-radius: 15px; - padding-right: 20px; + padding: 20px; + z-index: 10000; + &:hover { + outline: 4px solid #8280ff66; + outline-offset: -3px; + box-shadow: 0px 0px 15.1px 0px #8280ff40; + } + + &__label { + margin: auto; + display: flex; + align-items: center; + flex-direction: column; + } + + &__button { + width: 100%; + + button { + width: 100%; + text-align: center; + } + } span { color: white; padding-top: 10px; - font-weight: 500; + font-weight: 600; + font-size: 15px; + letter-spacing: -1%; } } @@ -10,24 +10,16 @@ import { useThemeAndDevice } from '#/shared/lib/hooks' import { c } from '#/shared/lib/helpers' import { IShortModel } from '#/entities/model-entity' import { SvgIcon } from '#/shared/ui/svg' +import { CommonButton } from '#/shared/ui/button' +import { uid } from 'chart.js/dist/helpers/helpers.core' export interface ChatModelCardProps extends IShortModel { accessed_models: string[] | null } -export function ChatModelCard({ - description, - image, - title, - slug, - accessed_models, - blocked, - tags, -}: ChatModelCardProps) { +export function ChatModelCard({ description, image, title, slug, accessed_models, blocked, tags }: ChatModelCardProps) { const link = useMemo(() => { - return accessed_models && !accessed_models.includes(slug) - ? '/account?scope=subscribe' - : `chat-bot/${slug}` + return accessed_models && !accessed_models.includes(slug) ? '/account?scope=subscribe' : `chat-bot/${slug}` }, [accessed_models]) const { theme } = useThemeAndDevice() @@ -36,13 +28,7 @@ export function ChatModelCard({
{description}
{description}