-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Learning Pathway cards block to home and landing pages (#2452)
* Add Learning Pathway Cards block * Refine homepage styles and layout * Add full card markup * Update images * Update Learning Pathways page
- Loading branch information
1 parent
ed5e2e5
commit a74bf5f
Showing
17 changed files
with
405 additions
and
48 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
wp-content/themes/pub/wporg-learn-2024/assets/learning-pathway-contributor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
wp-content/themes/pub/wporg-learn-2024/assets/learning-pathway-designer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
wp-content/themes/pub/wporg-learn-2024/assets/learning-pathway-developer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
wp-content/themes/pub/wporg-learn-2024/assets/learning-pathway-user.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
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
31 changes: 0 additions & 31 deletions
31
wp-content/themes/pub/wporg-learn-2024/patterns/learning-pathways-terms.php
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
wp-content/themes/pub/wporg-learn-2024/patterns/page-learning-pathways-content.php
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,23 @@ | ||
<?php | ||
/** | ||
* Title: Learning Pathways Page Content | ||
* Slug: wporg-learn-2024/page-learning-pathways-content | ||
* Inserter: no | ||
*/ | ||
|
||
?> | ||
|
||
<!-- wp:paragraph {"style":{"spacing":{"margin":{"top":"0"}}}} --> | ||
<p style="margin-top:0"><?php esc_html_e( 'Dive into our learning pathways which will take you from beginner to expert at your own pace.', 'wporg-learn' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:buttons {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} --> | ||
<div class="wp-block-buttons" style="margin-bottom:var(--wp--preset--spacing--50)"> | ||
|
||
<!-- wp:button --> | ||
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="/my-courses/"><?php esc_html_e( 'My Courses', 'wporg-learn' ); ?></a> | ||
</div> | ||
<!-- /wp:button --> | ||
|
||
</div> | ||
<!-- /wp:buttons --> |
29 changes: 29 additions & 0 deletions
29
wp-content/themes/pub/wporg-learn-2024/src/learning-pathway-cards/block.json
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,29 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 2, | ||
"name": "wporg-learn/learning-pathway-cards", | ||
"version": "0.1.0", | ||
"title": "Learning Pathway Cards", | ||
"category": "widgets", | ||
"icon": "smiley", | ||
"description": "Show a cards grid of non-empty Learning Pathway terms", | ||
"usesContext": [], | ||
"attributes": { | ||
"isMini": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
}, | ||
"supports": { | ||
"html": false, | ||
"spacing": { | ||
"margin": [ | ||
"top", | ||
"bottom" | ||
] | ||
} | ||
}, | ||
"textdomain": "wporg", | ||
"editorScript": "file:./index.js", | ||
"style": "file:./style-index.css" | ||
} |
Oops, something went wrong.