JSFiddle - React, Tailwind, and code Playground

by fparent

HTML

<?php
  global $post;

  if ( is_404() ) {
    $pageID = 'error';
  } else if (is_single()) {
    $pageID = 'single';
  } else {
    $pageID = $post->post_name;
  }
?>

<?php get_template_part('templates/head'); ?>
<body id="page-<?php echo $pageID; ?>" class="layout-base">

  <?php get_template_part('templates/upgrade-browser'); ?>

  <?php
    do_action('get_header');
    get_template_part('templates/header');
  ?>

  <div class="container wrapper" role="document">
    <main class="main" role="main">
      <div class="content">
        <?php include roots_template_path(); ?>
      </div>
    </main>

    <?php if (roots_display_sidebar()) : ?>
      <aside class="sidebar" role="complementary">
        <?php include roots_sidebar_path(); ?>
      </aside>
    <?php endif; ?>
  </div>

  <?php get_template_part('templates/footer'); ?>

</body>
</html>