Sha256: 013508f4e473012f4fa506ee99325646d007932b7250e552457a144160dccec4

Contents?: true

Size: 807 Bytes

Versions: 3

Compression:

Stored size: 807 Bytes

Contents

<html>
<body>
<div class="container">
  <div>
    <svg viewBox="0 0 100 100">
      <defs>
        <path id="circle"
              d="
                M 50, 50
                m -37, 0
                a 37,37 0 1,1 74,0
                a 37,37 0 1,1 -74,0"/>
      </defs>
      <text font-size="18">
        <textPath xlink:href="#circle">
          <%= object.title %>
        </textPath>
      </text>
    </svg>
  </div>
</div>
</body>
<style>
    svg {
        fill: currentColor;
        height: auto;
        max-width: 66vmin;
        transform-origin: center;
        width: 100%;
    }
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 1200px;
        height: 630px;
    }
    body {
        margin: 0;
    }


</style>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html_to-1.1.3 lib/views/html_to/circle.html.erb
html_to-1.1.2 lib/views/html_to/circle.html.erb
html_to-1.1.1 lib/views/html_to/circle.html.erb