-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AnchorFM: Podcasting Card #47487
Merged
Merged
AnchorFM: Podcasting Card #47487
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bbfc9e1
add(anchorfm-card) podcasting card
krymson24 9754abe
add(podcasting-card) remove array from card map
krymson24 5aeb419
add(anchormf-card) long middle dash for card text
krymson24 3c82062
add(anchorfm-card) add todo comment for action url
krymson24 749129b
Tweaks based on PR discussion
blackjackkent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
client/assets/images/customer-home/illustration--task-podcasting.svg
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
32 changes: 32 additions & 0 deletions
32
client/my-sites/customer-home/cards/tasks/podcasting/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,32 @@ | ||||
/** | ||||
* External dependencies | ||||
*/ | ||||
import React from 'react'; | ||||
import { useTranslate } from 'i18n-calypso'; | ||||
|
||||
/** | ||||
* Internal dependencies | ||||
*/ | ||||
import Task from 'calypso/my-sites/customer-home/cards/tasks/task'; | ||||
import { TASK_PODCASTING } from 'calypso/my-sites/customer-home/cards/constants'; | ||||
import podcastingIllustration from 'calypso/assets/images/customer-home/illustration--task-podcasting.svg'; | ||||
|
||||
const Podcasting = () => { | ||||
const translate = useTranslate(); | ||||
|
||||
return ( | ||||
<Task | ||||
title={ translate( 'Grow your audience with a podcast' ) } | ||||
description={ translate( | ||||
`Easily turn your blog into a podcast with Anchor — the world's biggest podcasting platform.` | ||||
) } | ||||
actionText={ translate( 'Get started' ) } | ||||
actionUrl={ `https://anchor.fm` } | ||||
completeOnStart={ false } | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One more nitpick:
|
||||
illustration={ podcastingIllustration } | ||||
taskId={ TASK_PODCASTING } | ||||
/> | ||||
); | ||||
}; | ||||
|
||||
export default Podcasting; |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a temporary link? Similarly to the Stripe connection process on Earn blocks, I think this should redirect to a URL where users can connect their Anchor.fm account to their WP.com account and then they are redirected back to WP.com. But probably that process is still not implemented, in that case the temporary link is fine, but maybe we can include a TODO comment linking to the pending issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the description here: 310-gh-dotcom-manage
I agree -- the action URL as it stands doesn't make sense to me. I'll add a TODO