lending-next/components/solution/index.tsx
2022-05-03 21:34:11 +03:00

47 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import styles from './Solution.module.css'
import React from "react"
import Link from 'next/link';
interface SolutionIE{
onAboutClick: () => void
onBuyClick?: ()=> void
}
export const Solution:React.FC<SolutionIE> = (props) =>{
return(
<div className={styles.solution} id="buy">
<h1 >Что мы предлагаем</h1>
<h2 >Приедем к вам - соберем квест</h2>
<div className={styles.carousel} >
<div className={styles.card}>
<h2 style={{alignSelf: "center"}}>Спаси корабль</h2>
<div>Вы-пилот корабля, вам надо спасти <br/> корабль и доставить ценный груз на <br/> другую планету.</div>
<div className={styles.card_grade}>
<div>Сложность:</div>
<div>
<img src="/images/star.svg"/>
<img src="/images/star.svg"/>
<img src="/images/star.svg"/>
</div>
</div>
<div className={styles.card_grade}>
<div>Сюжет:</div>
<div>
<img src="/images/star.svg"/>
</div>
</div>
<button onClick={()=>props.onAboutClick()} className={styles.btn}>Подробнее</button>
<Link href={"#contacts"}>
<button className={styles.btn}>купить</button>
</Link>
</div>
<div className={styles.card + " " + styles.cardVisible} style={{justifyContent: "center"}}>
Coming soon...
</div>
</div>
</div>
);
}