font-picker/index.html
Christian Lawson-Perfect 51d57259b0 first commit
2025-02-11 14:20:15 +00:00

62 lines
No EOL
1.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Fontsource font preview</title>
<script type="module" src="script.js"></script>
<style id="font-style"></style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Fontsource font preview</h1>
</header>
<main>
<section id="intro" class="fixed-font">
<p>This page shows fonts loaded from <a href="https://fontsource.org">Fontsource</a>.</p>
</section>
<section id="controls" class="fixed-font">
<label for="font-family">Font:</label>
<select id="font-family">
</select>
<button type="button" id="random-font">I'm feeling lucky</button>
</section>
<section id="info">
<h2>About this font</h2>
<p><a id="font-link" target="fontsource"></a></p>
<section id="variable">
<h3>Variable axes</h3>
<ul id="variable-axes">
</ul>
</section>
<dl>
<dt>Category</dt>
<dd id="category"></dd>
<dt>Styles</dt>
<dd><ul id="styles"></ul></dd>
<dt>Weights</dt>
<dd><ul id="weights"></ul></dd>
<dt>Unicode ranges</dt>
<dd><ul id="unicode-ranges"></ul></dd>
</dl>
</section>
<section id="code">
<h2>CSS</h2>
<pre id="css-display"></pre>
</section>
</main>
</body>
</html>