-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
112 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...tpack-mu-wpcom/src/features/wpcom-dashboard-widgets/wpcom-general-tasks-widget/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#wpcom_general_tasks_widget_main { | ||
min-height: 180px; | ||
|
||
h2 { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.wpcom_general_tasks_widget_buttons .button.button-link { | ||
min-height: auto; | ||
line-height: 1.4; | ||
background: none; | ||
|
||
&:disabled, | ||
&:hover { | ||
background: none !important; // Has !important for core style. | ||
} | ||
} | ||
|
||
// #wpcom_general_tasks_widget .wpcom_general_tasks_widget_title_text { | ||
// display: none; | ||
// } |
38 changes: 37 additions & 1 deletion
38
...wpcom-dashboard-widgets/wpcom-general-tasks-widget/tasks/home-task-domain-upsell/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
export default () => { | ||
return <p>Domain Upsell Component</p>; | ||
// To do: actually fetch it from the API. | ||
const domain = new URL( window.location.href ).hostname.split( '.' )[ 0 ] + '.com'; | ||
return ( | ||
<> | ||
<h2>Own a domain. Build a site.</h2> | ||
<p> | ||
<strong>{ domain }</strong> is a perfect site address. It’s available, easy to find, share, | ||
and follow. Get it now and claim a corner of the web. | ||
</p> | ||
<p style={ { position: 'relative' } }> | ||
{ /* To do: convert to SVG. */ } | ||
<span | ||
style={ { | ||
position: 'absolute', | ||
transform: 'translate(130px, 14px)', | ||
fontSize: '16px', | ||
} } | ||
> | ||
{ domain } | ||
</span> | ||
<img | ||
src="https://wordpress.com/calypso/images/illustration--feature-domain-upsell-3eff1284ca73c71a3c77.svg" | ||
alt={ domain } | ||
style={ { width: '100%' } } | ||
/> | ||
</p> | ||
<div> | ||
<a href="https://wordpress.com/domains/register" className="button button-primary"> | ||
Get this domain | ||
</a> | ||
{ ' ' } | ||
<a href="https://wordpress.com/domains/register" className="button button-secondary"> | ||
Find other domains | ||
</a> | ||
</div> | ||
</> | ||
); | ||
}; |