Sha256: 26629f5ca423f47ad98044c65ae2347d3d99a48d3591d14203c8e3056d1d718b

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

<html>
<head>
  <title>rack-fontserve demo</title>
<% Font.all.each do |font| %>
  <link rel="stylesheet" href="/<%= font.name %>.css?nocache=<%= rand(500000000) * rand(5000)/(rand(2000)+3)+5 %>"/>  
<% end %>
  <style type="text/css">
    body { 
      text-align: center;
      padding: 0; margin: 0; 
      font-size: 180%; 
      background: #ddd;
      font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    }
    h1 { 
      background-color: #222526; 
      padding: 40px 20px;
      margin: 0;
      color: #7F203B;
      font-size: 72px;
      text-shadow: #D94F00 2px 2px 0px, #F28D00 4px 4px 0px, #FFBB6E 6px 6px 0px;
      border-bottom: 4px solid black;
    }
    
    footer, footer a {
      color: #777;
      font-size: 13px;
    }
    
    h2 {
      text-shadow: white 1px 1px 1px;
    }
    
    <% Font.all.each do |font| %>
    .<%= font.name %> { font-family: '<%= font.name %>', Helvetica, Arial, sans-serif; }
    <% end %>
  </style>
</head>

<body>
  <h1>rack-fontserve</h1>
  <% Font.all.each do |font| %>
  <div class="<%= font.name %>">
    <h2><%= font.name %></h2>
    <p>The quick brown fox jumps over the lazy dog (possibly)</p>
  </div>
  <% end %>
  <footer>
    <a href="https://github.com/colszowka/rack-fontserve">rack-fontserve</a> v<%= FONTSERVE_VERSION %>
  </footer>
</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack-fontserve-0.2.0 lib/rack-fontserve/views/demo.erb
rack-fontserve-0.1.4 lib/rack-fontserve/views/demo.erb
rack-fontserve-0.1.3 lib/rack-fontserve/views/demo.erb
rack-fontserve-0.1.2 lib/rack-fontserve/views/demo.erb
rack-fontserve-0.1.1 lib/rack-fontserve/views/demo.erb