File size: 1,172 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import { Card } from '@automattic/components';
import { localizeUrl } from '@automattic/i18n-utils';
import { useTranslate } from 'i18n-calypso';
import { useHandleClickLink } from './use-handle-click-link';
import './style.scss';
export const StudioCard = () => {
const translate = useTranslate();
const handleClickLink = useHandleClickLink();
return (
<Card className="developer-features-list__item">
<div className="developer-features-list__item-tag">{ translate( 'New' ) }</div>
<div className="developer-features-list__item-title">
{ translate( 'Studio by WordPress.com' ) }
</div>
<div className="developer-features-list__item-description">
{ translate(
'A fast, free way to develop locally with WordPress. Share your local sites with clients or colleagues and keep your local development process smooth and simple.'
) }
</div>
<div className="developer-features-list__item-learn-more">
<a
id="studio"
href={ localizeUrl( 'https://developer.wordpress.com/studio/' ) }
rel="noopener noreferrer"
onClick={ handleClickLink }
>
{ translate( 'Learn more' ) }
</a>
</div>
</Card>
);
};
|