110 lines
2.3 KiB
Plaintext
110 lines
2.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ fontname }} Preview</title>
|
|
<link rel="stylesheet" href="../{{ fontname }}.css?{{ fontHash }}">
|
|
<style>
|
|
:root {
|
|
color-scheme: light;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: #f3f5f8;
|
|
color: #111827;
|
|
}
|
|
|
|
.page {
|
|
width: min(100%, 96rem);
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.header {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
font-size: 2rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.subtitle {
|
|
margin: 0.5rem 0 0;
|
|
color: #4b5563;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 1rem;
|
|
border: 1px solid #d7dde6;
|
|
border-radius: 0.75rem;
|
|
background: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
font-family: "{{ fontname }}";
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.name {
|
|
font-size: 0.875rem;
|
|
line-height: 1.3;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.code {
|
|
color: #6b7280;
|
|
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
font-size: 0.75rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="page">
|
|
<header class="header">
|
|
<h1 class="title">{{ fontname }} Preview</h1>
|
|
<p class="subtitle">{{ iconDefinitions.length }} icons</p>
|
|
</header>
|
|
<section class="grid">
|
|
{% for icon in iconDefinitions -%}
|
|
<article class="card">
|
|
<i class="icon icon-{{ icon.publicName }}"></i>
|
|
<div class="name">{{ icon.publicName }}</div>
|
|
<div class="code">{{ icon.encodedCode }}</div>
|
|
</article>
|
|
{% endfor -%}
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|