-
Notifications
You must be signed in to change notification settings - Fork 2k
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
1 parent
75839a7
commit 158e315
Showing
6 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
30 changes: 30 additions & 0 deletions
30
client/my-sites/customer-home/cards/tasks/january-bump/index.jsx
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,30 @@ | ||
import { useTranslate } from 'i18n-calypso'; | ||
import januaryBumpIllustration from 'calypso/assets/images/customer-home/illustration--january-bump.png'; | ||
import { TASK_JANUARY_BUMP } from 'calypso/my-sites/customer-home/cards/constants'; | ||
import Task from 'calypso/my-sites/customer-home/cards/tasks/task'; | ||
|
||
import './style.scss'; | ||
|
||
const JanuaryBump = () => { | ||
const translate = useTranslate(); | ||
|
||
const title = translate( 'Start That ‘Someday Project’ Now' ); | ||
const description = translate( | ||
'Whatever your New Year’s resolutions are—from starting a newsletter to taking on the world with a bold new business—tap into the powerful platform that’s here to help you make it happen sooner.' | ||
); | ||
|
||
return ( | ||
<Task | ||
customClass="task__january-bump" | ||
title={ title } | ||
description={ description } | ||
actionText={ translate( 'Start today' ) } | ||
actionUrl="/pricing/january-bump?ref=january-bump-my-home" | ||
completeOnStart={ false } | ||
illustration={ januaryBumpIllustration } | ||
taskId={ TASK_JANUARY_BUMP } | ||
/> | ||
); | ||
}; | ||
|
||
export default JanuaryBump; |
45 changes: 45 additions & 0 deletions
45
client/my-sites/customer-home/cards/tasks/january-bump/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,45 @@ | ||
.task { | ||
&.task__january-bump { | ||
position: relative; | ||
|
||
&::before, | ||
&::after { | ||
content: ""; | ||
position: absolute; | ||
display: block; | ||
z-index: -1; | ||
} | ||
&::before { | ||
width: 654px; | ||
border-radius: 100%; | ||
height: 654px; | ||
background: #3858e9; | ||
filter: blur(81px); | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(5%, 5%); | ||
} | ||
|
||
&::after { | ||
background-image: url(calypso/assets/images/customer-home/plus-pattern-white.png); | ||
top: 0; | ||
left: 0; | ||
width: calc(100% + 32px); | ||
height: calc(100% + 32px); | ||
background-size: 14px; | ||
} | ||
|
||
.task__actions { | ||
flex-direction: column; | ||
display: inline-flex; | ||
} | ||
.task__skip { | ||
text-align: left; | ||
} | ||
|
||
.task__illustration { | ||
width: 44%; | ||
max-width: 272px; | ||
} | ||
} | ||
} |
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