mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-13 16:17:55 +00:00
Feat: Add project metadata and repo link to footer
This commit is contained in:
40
index.html
40
index.html
@@ -5,32 +5,37 @@
|
||||
<title>stain</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<style>
|
||||
:root { --bg: #111; --fg: #fafafa; --ui: system-ui, sans-serif; }
|
||||
:root { --bg: #111; --fg: #fafafa; --muted: #666; --ui: system-ui, -apple-system, sans-serif; }
|
||||
body {
|
||||
margin: 0; padding: 2rem;
|
||||
background: var(--bg); color: var(--fg);
|
||||
font-family: var(--ui);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
@font-face { font-family: "Stain"; src: url("./dist/Stain.otf") format("opentype"); }
|
||||
@font-face { font-family: "Stain"; src: url("./dist/Stain.otf") format("opentype"); font-display: block; }
|
||||
.stain-font { font-family: "Stain"; }
|
||||
.container { max-width: 800px; width: 100%; }
|
||||
.container { max-width: 800px; width: 100%; display: flex; flex-direction: column; justify-content: space-between; min-height: 60vh; }
|
||||
.entry { border-left: 1px solid #333; padding-left: 2rem; }
|
||||
h1 { font-size: clamp(4rem, 15vw, 10rem); line-height: 0.8; margin: 0 0 1rem -0.5rem; font-weight: normal; }
|
||||
.pos { font-size: 1.5rem; color: #888; margin-bottom: 2rem; display: block; font-style: italic; font-family: serif; }
|
||||
/* Note: "noun" rendered in stain font if pos class uses stain, but requested distinct "definition style" implies standard layout practices. Using Stain for definition text as requested. */
|
||||
h1 { font-size: clamp(5rem, 18vw, 10rem); line-height: 0.75; margin: 0 0 1rem -0.5rem; font-weight: normal; letter-spacing: -0.02em; }
|
||||
.pos { font-size: 1.5rem; color: var(--muted); margin-bottom: 3rem; display: block; }
|
||||
.def-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
|
||||
.def-item { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.1; color: #ccc; }
|
||||
.footer { margin-top: 4rem; border-top: 1px solid #333; padding-top: 2rem; text-align: right; }
|
||||
.btn { color: #fff; text-decoration: none; border: 1px solid #fff; padding: 0.8rem 2rem; border-radius: 2rem; transition: 0.2s; font-family: var(--ui); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }
|
||||
.btn:hover { background: #fff; color: #000; }
|
||||
.def-item { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.1; color: #ccc; }
|
||||
.footer { margin-top: auto; padding-top: 4rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
|
||||
.meta { font-size: 0.8rem; line-height: 1.6; color: var(--muted); max-width: 400px; }
|
||||
.meta a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
|
||||
.meta a:hover { color: var(--fg); }
|
||||
.btn {
|
||||
display: inline-block; background: var(--fg); color: var(--bg); text-decoration: none;
|
||||
padding: 0.8rem 1.5rem; border-radius: 99px; font-weight: bold; text-transform: uppercase;
|
||||
font-size: 0.75rem; letter-spacing: 0.1em; transition: transform 0.1s;
|
||||
}
|
||||
.btn:hover { transform: scale(1.05); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="entry">
|
||||
<!-- Using "Stain" font for content. Note: Only A-Z, a-z, period, space available. No numbers/commas. -->
|
||||
<h1 class="stain-font">stain</h1>
|
||||
<span class="stain-font pos">noun</span>
|
||||
<ul class="def-list">
|
||||
@@ -42,9 +47,14 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<a href="./dist/Stain.otf" class="btn" download>Download Font</a>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="meta">
|
||||
Designed 100% programmatically.<br/>
|
||||
Open Source & Public Domain.<br/>
|
||||
<a href="https://github.com/multipleof4/stain.otf">multipleof4/stain.otf</a>
|
||||
</div>
|
||||
<a href="./dist/Stain.otf" class="btn" download>Download .OTF</a>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user