image-with-text.php 1.7 KB

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Title: Image with text
  4. * Slug: remote/image-with-text
  5. * Categories: featured, text, columns
  6. */
  7. ?>
  8. <!-- wp:image {"align":"wide","sizeSlug":"large","linkDestination":"none"} -->
  9. <figure class="wp-block-image alignwide size-large"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/Laptop.jpg" alt="<?php echo esc_attr__( 'Picture of a laptop', 'remote' ); ?>"/></figure>
  10. <!-- /wp:image -->
  11. <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":"50px","padding":{"top":"20px"}}}} -->
  12. <div class="wp-block-columns alignwide" style="padding-top:20px"><!-- wp:column -->
  13. <div class="wp-block-column"><!-- wp:paragraph -->
  14. <p><?php echo esc_html__( 'Now that I’m working from home, I find that I am spending more time with my family, exercising more, and getting more sleep. This has not been at the expense of my productivity at work — if anything, my productivity has improved as well. I’ve become a pro at collaborating effectively across time zones. Most of my colleagues are in Europe or Asia, but I’m in way over California. I’d been worried that the distance would become a problem for us, but we’ve embraced asynchronous communication styles.', 'remote' ); ?></p>
  15. <!-- /wp:paragraph --></div>
  16. <!-- /wp:column -->
  17. <!-- wp:column {"width":"27%"} -->
  18. <div class="wp-block-column" style="flex-basis:27%"><!-- wp:paragraph {"fontSize":"small"} -->
  19. <p class="has-small-font-size"><?php echo esc_html__( 'I setup my home office on day one, but it wasn’t ergonomically correct for me. So I’ve been revising it throughout the past few months.', 'remote' ); ?></p>
  20. <!-- /wp:paragraph --></div>
  21. <!-- /wp:column --></div>
  22. <!-- /wp:columns -->