Sha256: c94989476d4a052d7cc8d88aa7514bb3a350a5b0c8a1a36003498e679e576548

Contents?: true

Size: 874 Bytes

Versions: 1

Compression:

Stored size: 874 Bytes

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; 
      font-size: 180%; 
      background: #ddd;
      padding-top: 35px;
      font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    }
    h1,h2,h3 {
      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 %>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-fontserve-0.1.0 lib/rack-fontserve/views/demo.erb