mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Added "Subscribe" button to Ghost-site previews
refs https://github.com/TryGhost/Product/issues/3857
This commit is contained in:
parent
7c2316de59
commit
6822c6db24
@ -35,12 +35,15 @@ const RecommendationReasonForm: React.FC<Props<EditOrAddRecommendation | Recomme
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Heading className='mb-2 block text-2xs font-semibold uppercase tracking-wider' grey={true} level={6}>Preview</Heading>
|
<Heading className='mb-2 block text-2xs font-semibold uppercase tracking-wider' grey={true} level={6}>Preview</Heading>
|
||||||
<a className='flex flex-col rounded-sm border border-grey-300 p-3' href={formState.url} rel="noopener noreferrer" target="_blank">
|
<a className='flex items-center justify-between rounded-sm border border-grey-300 p-3' href={formState.url} rel="noopener noreferrer" target="_blank">
|
||||||
<div className="flex items-center gap-2">
|
<div className='flex flex-col gap-1'>
|
||||||
<RecommendationIcon {...formState} />
|
<div className="flex items-center gap-2">
|
||||||
<span className='text-[1.6rem] font-semibold text-grey-900'>{formState.title}</span>
|
<RecommendationIcon {...formState} />
|
||||||
|
<span className='text-[1.6rem] font-semibold text-grey-900'>{formState.title}</span>
|
||||||
|
</div>
|
||||||
|
{formState.reason && <span className='text-md font-medium leading-snug text-grey-700'>{formState.reason}</span>}
|
||||||
</div>
|
</div>
|
||||||
<span className='mb-1 text-md font-medium leading-snug text-grey-700'>{formState.reason}</span>
|
{formState.one_click_subscribe && <span className='flex whitespace-nowrap text-md font-semibold text-green'>Subscribe</span>}
|
||||||
</a>
|
</a>
|
||||||
{formState.one_click_subscribe && <Hint>This is a Ghost site, so your readers can subscribe with just one click</Hint>}
|
{formState.one_click_subscribe && <Hint>This is a Ghost site, so your readers can subscribe with just one click</Hint>}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user