@@ -1,15 +1,13 @@ .card { position: relative; width: 100%; - height: 100%; - min-height: 400px; + height: 400px; cursor: pointer; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; - grid-column: span 1; &:hover { transform: scale(1.02); @@ -17,16 +15,11 @@ } &[data-desktop='true'] { - min-height: 500px; min-width: 0; &[data-flex='2'] { grid-column: span 2; } - - &[data-flex='1'] { - grid-column: span 1; - } } } @@ -72,7 +65,6 @@ .title { font-size: 32px; font-weight: 700; - color: #ffffff; margin-bottom: 16px; line-height: 1.2; } @@ -44,7 +44,7 @@ export const PromoCard: React.FC = ({ card, isDesktop, flex = 1 src={card.image} alt={card.title} fill - sizes={isDesktop ? '(max-width: 1200px) 50vw, 33vw' : '100vw'} + sizes={isDesktop ? '(max-width: 1200px) 50vw, 33vw' : '100%'} priority style={{ objectFit: 'cover' }} /> @@ -1,13 +1,15 @@ .list { display: grid; grid-template-columns: 1fr; + grid-template-rows: repeat(4, 1fr); gap: 20px; - width: 100%; + min-height: 90vh; &[data-desktop='true'] { grid-template-columns: repeat(3, 1fr); + grid-template-rows: 1fr 1fr; gap: 24px; - max-width: 100%; + min-height: 90vh; } } @@ -52,37 +52,27 @@ const Home: NextPageWithLayout = () => { routerlink: '/videos', buttonText: 'Попробовать', }, - { - title: 'Копирайтинг', - image: '/images/promo-cards/copyright.png', - description: 'Создавайте уникальные, качественные тексты для бизнеса, блогов и рекламы.', - routerlink: '/chat-bot', - buttonText: 'Скоро будет доступно', - buttonDisabled: true, - }, - { - title: 'Улучшение фото', - image: '/images/promo-cards/image-enhancement.png', - description: 'Улучшайте качество, устраняйте шум и добавляйте детали с помощью ИИ.', - routerlink: '/images/nanobanana', - buttonText: 'Скоро будет доступно', - buttonDisabled: true, - }, + // { + // title: 'Копирайтинг', + // image: '/images/promo-cards/copyright.png', + // description: 'Создавайте уникальные, качественные тексты для бизнеса, блогов и рекламы.', + // routerlink: '/chat-bot', + // buttonText: 'Скоро будет доступно', + // buttonDisabled: true, + // }, + // { + // title: 'Улучшение фото', + // image: '/images/promo-cards/image-enhancement.png', + // description: 'Улучшайте качество, устраняйте шум и добавляйте детали с помощью ИИ.', + // routerlink: '/images/nanobanana', + // buttonText: 'Скоро будет доступно', + // buttonDisabled: true, + // }, ] return ( - - - Главная - + @@ -12,9 +12,9 @@ export const ZoomOutIcon: React.FC = ({ width = 20, height ) @@ -12,9 +12,9 @@ export const ZoomOutIcon: React.FC = ({ width = 20, height ) @@ -52,6 +52,26 @@ } } +.markdownContent { + ul, + ol { + padding-left: 1.5em; + margin: 0.5em 0; + } + + ul { + list-style-type: disc; + } + + ol { + list-style-type: decimal; + } + + li { + margin: 0.25em 0; + } +} + .content { height: 500px; overflow-y: auto; @@ -286,6 +286,7 @@ export const FullscreenMessageModal: React.FC = ({ {messageContent && (