JSFiddle - React, Tailwind, and code Playground

by samur3

HTML

<div class="book">
    <div class="page">
        <div class="subpage">
          <div class="arrow">
             <div class="value">
              1
            </div> 
          </div>
          <div class="arrow">
             <div class="value">
              2
            </div> 
          </div>
          <div class="arrow">
             <div class="value">
              3
            </div> 
          </div>
          <div class="arrow">
             <div class="value">
              4
            </div> 
          </div>
          <div class="arrow">
             <div class="value">
              5
            </div> 
          </div>
          <div class="arrow">
             <div class="value">
              6
            </div> 
          </div>
           <div class="arrow">
             <div class="value">
              7
            </div> 
          </div>
           <div class="arrow">
             <div class="value">
              8
            </div> 
          </div>          
          <div class="arrow">
             <div class="value">
              9
            </div> 
          </div>          
           <div class="arrow">
             <div class="value">
              10
            </div> 
          </div>
        </div>    
    </div>
  <!--   <div class="page">
        <div class="subpage">Page 2/2</div>    
    </div> -->
</div>

CSS

body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
       // background-color: #FAFAFA;
        font: 12pt "Tahoma";
    }
    * {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
    .page {
        width: 210mm;
        min-height: 297mm;
        padding: 10mm;
        margin: 10mm auto;
        border: 1px #D3D3D3 solid;
        border-radius: 5px;
        background: white;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
    .subpage {
        padding: 1cm;
        //border: 1px red solid;
        height: 277mm;
        outline: 2cm #fff solid;
    }
    
    @page {
        size: A4;
        margin: 0;
    }
    @media print {
        html, body {
            width: 210mm;
            height: 297mm;        
        }
        .page {
            margin: 0;
            border: initial;
            border-radius: initial;
            width: initial;
            min-height: initial;
            box-shadow: initial;
            background: initial;
            page-break-after: always;
        }
    }
    
    
.arrow {
  display: block;
  height: 150px;
  width: 30px;
  position: relative;
}
.arrow .value {
  height: 30px;
  width: 30px;
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 15px);
  line-height: 30px;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  //background: #c59;
  background-color: #c59;
  border-radius: 50%;
}
.arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 2px);
  bottom: 5px;
  border: 2px solid #c59;
}
.arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  border-top: 15px solid #c59;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
}

JavaScript

window.print();