Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Add and refine mixed media in container pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Aug 16, 2021
1 parent 95871c7 commit 5626fd4
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 11 deletions.
Binary file added skatepark/assets/images/skateboard-sideways.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions skatepark/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 15 additions & 11 deletions skatepark/inc/patterns/mixed-media-in-container.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,29 @@
return array(
'title' => __( 'Mixed Media in Container', 'skatepark' ),
'categories' => array( 'skatepark' ),
'content' => '<!-- wp:group {"align":"wide","style":{"border":{"style":"solid"},"spacing":{"padding":{"top":"0%","right":"2.5%","bottom":"2.5%","left":"2.5%"}}}} -->
<div class="wp-block-group alignwide" style="border-style:solid;padding-top:0%;padding-right:2.5%;padding-bottom:2.5%;padding-left:2.5%"><!-- wp:columns {"align":"wide"} -->
'content' => '<!-- wp:spacer {"height":40} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:group {"align":"wide","style":{"border":{"style":"solid"},"spacing":{"padding":{"top":"1%","right":"2.5%","bottom":"2.5%","left":"2.5%"}}},"className":"skatepark-mixed-media-in-container"} -->
<div class="wp-block-group alignwide skatepark-mixed-media-in-container" style="border-style:solid;padding-top:1%;padding-right:2.5%;padding-bottom:2.5%;padding-left:2.5%"><!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading {"level":3} -->
<h3>Why Camp?</h3>
<h3>' . esc_html__( 'Why Camp?', 'skatepark' ) . '</h3>
<!-- /wp:heading --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:paragraph {"className":"is-style-indented-paragraph"} -->
<p class="is-style-indented-paragraph">Skate ipsum dolor sit amet, poseur nollie casper pop shove-it. Kickturn noseblunt slide tailslide lien air Bonite. Rocket air poseur snake shoveit Chico Brenes. Crooked grind locals casper slide bank. Disaster frigid air bail aerial. Hang ten smith grind tailslide sick.</p>
<p class="is-style-indented-paragraph">' . esc_html__( 'Skateboarding can teach people discipline, patience, and resiliency. It’s a great sport for kids with a lot of energy! We’ll help build up some structure and support in your life, all while you meet new people and have a ton of fun learning how to skateboard. Just think of all the cool tricks you’ll learn!', 'skatepark' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":40} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:image {"sizeSlug":"large","style":{"color":{"duotone":["#000","#BFF5A5"]}}} -->
<figure class="wp-block-image size-large"><img src="https://cdn.stocksnap.io/img-thumbs/960w/skateboard-sideways_USRYO9E14Y.jpg" alt=""/></figure>
<figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/skateboard-sideways.jpg" " alt="' . esc_attr__( 'A skateboard laying on its side on top of concrete.', 'skatepark' ) . '"/></figure>
<!-- /wp:image -->
<!-- wp:spacer {"height":40} -->
Expand All @@ -38,11 +42,11 @@
<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":4} -->
<h4>Discipline</h4>
<h4>' . esc_html__( 'Discipline', 'skatepark' ) . '</h4>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Skate ipsum dolor sit amet, poseur nollie casper pop shove-it. Kickturn noseblunt slide tailslide lien air Bonite. Rocket air poseur snake shoveit Chico Brenes. Crooked grind locals casper slide bank.</p>
<p>' . esc_html__( 'Skateboarding can teach people discipline, patience, and resiliency. It’s a great sport for kids with a lot of energy! We’ll help build up some structure and support in your life, and you’ll have fun.', 'skatepark' ) . '</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
Expand All @@ -52,11 +56,11 @@
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":4} -->
<h4>Friendship</h4>
<h4>' . esc_html( 'Friendship', 'skatepark' ) . '</h4>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Skate ipsum dolor sit amet, poseur nollie casper pop shove-it. Kickturn noseblunt slide tailslide lien air Bonite. Rocket air poseur snake shoveit Chico Brenes. Crooked grind locals casper slide bank.</p>
<p>' . esc_html( 'Skateboarding is a social sport! Come hang out and meet some new friends to cheer you on while you skate. We have a strict no-bullying policy and maintain a supportive environment.', 'skatepark' ) . '</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
Expand All @@ -70,11 +74,11 @@
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":4} -->
<h4>Mentoring</h4>
<h4>' . esc_html( 'Mentoring', 'skatepark' ) . '</h4>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Skate ipsum dolor sit amet, poseur nollie casper pop shove-it. Kickturn noseblunt slide tailslide lien air Bonite. Rocket air poseur snake shoveit Chico Brenes. Crooked grind locals casper slide bank.</p>
<p>' . esc_html( 'Work 1:1 with our team of coaches to learn how to skate. They’ll be your mentors and guides while you’re at camp. Plus, many of our older campers will mentor the younger skaters.', 'skatepark' ) . '</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
Expand Down
7 changes: 7 additions & 0 deletions skatepark/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Skatepark uses the following images:

License: CC0
https://stocksnap.io/photo/skateboard-sideways-USRYO9E14Y by Messala Ciulla (https://stocksnap.io/author/messala)

Used in block patterns.
6 changes: 6 additions & 0 deletions skatepark/sass/block-patterns/_mixed-media-in-container.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.skatepark-mixed-media-in-container {
hr, p, h1, h2, h3, h4, h5, h6 { // Shrink default vertical margins for all the elements in this pattern
margin-top: 20px;
margin-bottom: 20px;
}
}
1 change: 1 addition & 0 deletions skatepark/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@import "block-patterns/pre-footer";
@import "block-styles/image-caption";
@import "block-styles/indented-paragraph";
@import "block-patterns/mixed-media-in-container";
@import "block-patterns/pre-footer";
@import "elements/headings";
@import "elements/links";
Expand Down

0 comments on commit 5626fd4

Please sign in to comment.