Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
mode: 'append-to-description'
plugin-path: .
blueprint-url: ./blueprint.json
blueprint-url: https://raw.githubusercontent.com/fellyph/scrolldriven-block/refs/heads/main/blueprint.json
14 changes: 13 additions & 1 deletion blueprint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"name": "My Scroll Block",
"description": "A WordPress plugin that adds scroll-driven animation capabilities to core blocks using CSS scroll timelines.",
"author": "Fellyph Cintra"
},
"landingPage": "/wp-admin/edit.php",
"login": true,
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"steps": [
{
"step": "login"
},
{
"step": "runPHP",
"code": "<?php require_once './wordpress/wp-load.php'; wp_insert_post(array('post_title' => 'Simple post from PHP', 'post_content' => '<!-- wp:paragraph --><p>A trip to Portugal is an immersion into a land where history, culture, and nature blend seamlessly. From the sun-drenched beaches of the Algarve to the rugged volcanic landscapes of the Azores, Portugal offers a stunning diversity of scenery.</p><!-- /wp:paragraph --><!-- wp:paragraph --><p>Wander through Lisbon&#39;s historic, tiled streets, where traditional fado music echoes from old neighborhoods. Or explore Porto, the capital of the Douro Valley, the world&#39;s oldest wine region.</p><!-- /wp:paragraph --><!-- wp:image {\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"animationType\":\"scale-up\"} --><figure class=\"wp-block-image size-large scroll-anim-block scroll-anim-scale-up\" data-scroll-anim=\"1\"><img src=\"https://pub-4517acecab6543f0bc62af2fea95f2b6.r2.dev/cover-image.webp\" alt=\"\"/></figure><!-- /wp:image --><!-- wp:paragraph {\"animationType\":\"fade-in\"} --><p class=\"scroll-anim-block scroll-anim-fade-in\" data-scroll-anim=\"1\">Portugal&#39;s rich past is visible everywhere, from medieval castles to the monuments of the Age of Discoveries, while its modern spirit thrives in vibrant cities and a welcoming, laid-back culture.</p><!-- /wp:paragraph --><!-- wp:heading {\"className\":\"scroll-anim-scale-up\",\"animationType\":\"fade-in\"} --><h2 class=\"wp-block-heading scroll-anim-scale-up scroll-anim-block scroll-anim-fade-in\" data-scroll-anim=\"1\">Cities of Portugal</h2><!-- /wp:heading --><!-- wp:paragraph {\"animationType\":\"fade-in\"} --><p class=\"scroll-anim-block scroll-anim-fade-in\" data-scroll-anim=\"1\">Wander through Lisbon&#39;s historic, tiled streets, where traditional fado music echoes from old neighborhoods. Or explore Porto, the capital of the Douro Valley, the world&#39;s oldest wine region.</p><!-- /wp:paragraph --><!-- wp:columns {\"align\":\"wide\"} --><div class=\"wp-block-columns alignwide\"><!-- wp:column --><div class=\"wp-block-column\"><!-- wp:image {\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"animationType\":\"slide-in-right\"} --><figure class=\"wp-block-image size-large scroll-anim-block scroll-anim-slide-in-right\" data-scroll-anim=\"1\"><img src=\"https://pub-4517acecab6543f0bc62af2fea95f2b6.r2.dev/Gemini_Generated_Image_we7iutwe7iutwe7i.webp\" alt=\"\"/></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column --><div class=\"wp-block-column\"><!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"animationType\":\"slide-in-up\"} --><figure class=\"wp-block-image size-large scroll-anim-block scroll-anim-slide-in-up\" data-scroll-anim=\"1\"><img src=\"https://pub-4517acecab6543f0bc62af2fea95f2b6.r2.dev/Gemini_Generated_Image_83jl2g83jl2g83jl.webp\" alt=\"\" style=\"aspect-ratio:1;object-fit:cover\"/></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column --><div class=\"wp-block-column\"><!-- wp:image {\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"animationType\":\"slide-in-left\"} --><figure class=\"wp-block-image size-large scroll-anim-block scroll-anim-slide-in-left\" data-scroll-anim=\"1\"><img src=\"https://pub-4517acecab6543f0bc62af2fea95f2b6.r2.dev/Gemini_Generated_Image_pi34y8pi34y8pi34.webp\" alt=\"\"/></figure><!-- /wp:image --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:columns {\"align\":\"wide\"} --><div class=\"wp-block-columns alignwide\"><!-- wp:column --><div class=\"wp-block-column\"><!-- wp:image {\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"animationType\":\"slide-in-right\"} --><figure class=\"wp-block-image size-large scroll-anim-block scroll-anim-slide-in-right\" data-scroll-anim=\"1\"><img src=\"https://pub-4517acecab6543f0bc62af2fea95f2b6.r2.dev/Gemini_Generated_Image_trof06trof06trof.webp\" alt=\"\"/></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column --><div class=\"wp-block-column\"><!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"scroll-anim-slide-in-up\",\"animationType\":\"slide-in-left\"} --><figure class=\"wp-block-image size-large scroll-anim-slide-in-up scroll-anim-block scroll-anim-slide-in-left\" data-scroll-anim=\"1\"><img src=\"https://pub-4517acecab6543f0bc62af2fea95f2b6.r2.dev/Gemini_Generated_Image_we7iutwe7iutwe7i.webp\" alt=\"\" style=\"aspect-ratio:1;object-fit:cover\"/></figure><!-- /wp:image --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:paragraph {\"animationType\":\"fade-in\"} --><p class=\"scroll-anim-block scroll-anim-fade-in\" data-scroll-anim=\"1\">Wander through Lisbon&#39;s historic, tiled streets, where traditional fado music echoes from old neighborhoods. Or explore Porto, the capital of the Douro Valley, the world&#39;s oldest wine region.</p><!-- /wp:paragraph -->', 'post_author' => 1, 'post_status' => 'publish')); ?>"
Expand Down
Loading