-
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.
Site Migration: Update Plans page for migrations flow (#97062)
* Initial start at new plans page for migrations * Update loader styles/markup * Fix header styles * Remove descriptions * Fix spacing * Refactor pricing * Fix typing * Fix checkout ctas, update wording for 2 year plan * Simplify loader * Simplify pricing output * Tweak copy, remove unused function param * Simplify rendering * Add vars for repeated constants * Revert changes to Skeleton * Revert unnecessary name change * Fix tabs * Fix for loader display * Simplify * Prevent flash of uncentered loader * Update language for consistency * More specific typing, pass planSlugs through so we don't have to repeat * Use feature flag being introduced in separate PR * Use consistent variable * Ensure we have planSlugs before reducer * Update test * Fix mobile spacing, update pricing copy * Mobile refund text * Fix flash of original skeleton * Fix box shadow on secondary buttons * Don't show storage * Use styles to make first list item bold, tweaks to spacing * No bold text for feature flag * Add refund tooltip * Account for border width * Update spacing under header * Fix title spacing * Bold around days * New strings for features * Separate Jetpack and WPcom features * Fix jetpack logo color * Logo spacing * Move so we can take full advantage of hooks in translate, add bold text * Revert changes to plan feature list * Remove unused prop * Fix button colors * Alignment issues * Fix alignment issues * Update loader colors to gray * Calculate percentage rather than hard-coding, consolidate features
- Loading branch information
Showing
12 changed files
with
595 additions
and
77 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
45 changes: 45 additions & 0 deletions
45
client/blocks/importer/wordpress/upgrade-plan/skeleton/variants-skeleton.tsx
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 @@ | ||
import type { FC } from 'react'; | ||
import './style.scss'; | ||
|
||
export const VariantsSkeleton: FC = () => { | ||
const variantSkeleton = ( | ||
<div className="import__upgrade-plan-container"> | ||
<div className="import__upgrade-plan-features-container"> | ||
<div | ||
className="import-upgrade-plan-skeleton import-upgrade-plan-skeleton--dark-gray" | ||
style={ { width: '173px', height: '32px', marginBottom: '20px' } } | ||
/> | ||
<div className="import-upgrade-plan-skeleton" style={ { width: '277px' } } /> | ||
<div | ||
className="import-upgrade-plan-skeleton" | ||
style={ { width: '195px', marginBottom: '40px' } } | ||
/> | ||
<div | ||
className="import-upgrade-plan-skeleton import-upgrade-plan-skeleton--dark-gray" | ||
style={ { width: '173px', height: '32px' } } | ||
/> | ||
<div | ||
className="import-upgrade-plan-skeleton" | ||
style={ { width: '103px', marginBottom: '40px' } } | ||
/> | ||
<div | ||
className="import-upgrade-plan-skeleton import-upgrade-plan-skeleton--dark-highlight" | ||
style={ { width: '305px', height: '32px', borderRadius: '4px' } } | ||
/> | ||
<div | ||
className="import-upgrade-plan-skeleton import-upgrade-plan-skeleton--dark-highlight" | ||
style={ { width: '103px', margin: '0 auto' } } | ||
/> | ||
</div> | ||
</div> | ||
); | ||
return ( | ||
<div className="import__upgrade-plan"> | ||
<div className="import__upgrade-plan-details import__upgrade-plan-details--loading"> | ||
{ variantSkeleton } | ||
{ variantSkeleton } | ||
{ variantSkeleton } | ||
</div> | ||
</div> | ||
); | ||
}; |
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
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
Oops, something went wrong.