|
| 1 | +import { FC } from 'react' |
| 2 | +import { useTranslation } from 'react-i18next' |
| 3 | +import { Link } from '@oasisprotocol/ui-library/src/components/link' |
| 4 | +import { roflApp, roseApp } from '../../utils/externalLinks' |
| 5 | +import { Button } from '@oasisprotocol/ui-library/src/components/button' |
| 6 | +import { ArrowUpRight } from 'lucide-react' |
| 7 | +import { Typography } from '@oasisprotocol/ui-library/src/components/typography' |
| 8 | + |
| 9 | +export const DiscoverMore: FC = () => { |
| 10 | + const { t } = useTranslation() |
| 11 | + |
| 12 | + return ( |
| 13 | + <div className="w-full relative rounded-md flex flex-col lg:flex-row gap-4 md:gap-6 justify-between items-center"> |
| 14 | + <div className="w-full flex flex-row self-stretch p-8 border bg-card rounded-md"> |
| 15 | + <div className="flex flex-col items-start gap-2 lg:max-w-[480px]"> |
| 16 | + <Typography className="font-semibold">{t('social.roflApp')}</Typography> |
| 17 | + <div className="text-foreground text-xl md:text-2xl font-medium leading-6 md:leading-8"> |
| 18 | + {t('social.offchainPerformanceonchainTrust')} |
| 19 | + </div> |
| 20 | + <div className="justify-start text-muted-foreground text-sm font-normal leading-5 mb-3"> |
| 21 | + {t('social.description')} |
| 22 | + </div> |
| 23 | + <Button color="secondary" variant="outline" asChild> |
| 24 | + <Link textColor="primary" href={roflApp.homepage} target="_blank" rel="noopener noreferrer"> |
| 25 | + {t('social.discoverRoflApp')} |
| 26 | + <ArrowUpRight /> |
| 27 | + </Link> |
| 28 | + </Button> |
| 29 | + </div> |
| 30 | + </div> |
| 31 | + <div className="w-full flex flex-row self-stretch p-8 border bg-card rounded-md"> |
| 32 | + <div className="flex flex-col items-start gap-2 lg:max-w-[480px]"> |
| 33 | + <Typography className="font-semibold">{t('social.roseApp')}</Typography> |
| 34 | + <div className="text-foreground text-xl md:text-2xl font-medium leading-6 md:leading-8"> |
| 35 | + {t('social.roseAppTitle')} |
| 36 | + </div> |
| 37 | + <div className="justify-start text-muted-foreground text-sm font-normal leading-5 mb-3"> |
| 38 | + {t('social.roseAppDescription')} |
| 39 | + </div> |
| 40 | + <Button color="secondary" variant="outline" asChild> |
| 41 | + <Link textColor="primary" href={roseApp.homepage} target="_blank" rel="noopener noreferrer"> |
| 42 | + {t('social.visitRoseApp')} |
| 43 | + <ArrowUpRight /> |
| 44 | + </Link> |
| 45 | + </Button> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + ) |
| 50 | +} |
0 commit comments