mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-14 08:37:59 +00:00
Feat: Creative light theme poster with stains and ink effects
This commit is contained in:
127
index.html
127
index.html
@@ -2,59 +2,104 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>stain</title>
|
<title>Stain Font</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<style>
|
<style>
|
||||||
:root { --bg: #111; --fg: #fafafa; --muted: #666; --ui: system-ui, -apple-system, sans-serif; }
|
:root {
|
||||||
|
--bg: #f7f6f2;
|
||||||
|
--ink: #1c1c1e;
|
||||||
|
--stain-color: #2d3436;
|
||||||
|
}
|
||||||
|
@font-face { font-family: "Stain"; src: url("./dist/Stain.otf") format("opentype"); }
|
||||||
|
* { box-sizing: border-box; }
|
||||||
body {
|
body {
|
||||||
margin: 0; padding: 2rem;
|
margin: 0; min-height: 100vh;
|
||||||
background: var(--bg); color: var(--fg);
|
background: var(--bg); color: var(--ink);
|
||||||
font-family: var(--ui);
|
font-family: "Stain", sans-serif;
|
||||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
overflow-x: hidden; display: flex; flex-direction: column;
|
||||||
min-height: 100vh;
|
cursor: crosshair;
|
||||||
}
|
}
|
||||||
@font-face { font-family: "Stain"; src: url("./dist/Stain.otf") format("opentype"); font-display: block; }
|
/* Ink Bleed Background */
|
||||||
.stain-font { font-family: "Stain"; }
|
.blot {
|
||||||
.container { max-width: 800px; width: 100%; display: flex; flex-direction: column; justify-content: space-between; min-height: 60vh; }
|
position: absolute; border-radius: 50%;
|
||||||
.entry { border-left: 1px solid #333; padding-left: 2rem; }
|
filter: blur(50px); opacity: 0.12; z-index: -1;
|
||||||
h1 { font-size: clamp(5rem, 18vw, 10rem); line-height: 0.75; margin: 0 0 1rem -0.5rem; font-weight: normal; letter-spacing: -0.02em; }
|
background: var(--stain-color); pointer-events: none;
|
||||||
.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; }
|
.b1 { width: 400px; height: 380px; top: -100px; left: -100px; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
|
||||||
.def-item { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.1; color: #ccc; }
|
.b2 { width: 500px; height: 500px; bottom: -150px; right: -100px; background: #1e272e; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
|
||||||
.footer { margin-top: auto; padding-top: 4rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
|
.b3 { width: 200px; height: 200px; top: 40%; left: 60%; opacity: 0.08; border-radius: 50% 50% 20% 80%; }
|
||||||
.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; }
|
.layout {
|
||||||
.meta a:hover { color: var(--fg); }
|
max-width: 1000px; margin: 0 auto; padding: 4rem 2rem;
|
||||||
|
display: flex; flex-direction: column; gap: 3rem; flex: 1; justify-content: center;
|
||||||
|
}
|
||||||
|
header { text-align: center; position: relative; }
|
||||||
|
|
||||||
|
/* Ink Splatter Decorative */
|
||||||
|
header::after {
|
||||||
|
content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg);
|
||||||
|
width: 120%; height: 200px; border: 2px solid var(--ink); opacity: 0.05;
|
||||||
|
border-radius: 80% 20% 80% 20% / 80% 80% 20% 20%; z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: clamp(4rem, 18vw, 12rem);
|
||||||
|
line-height: 0.8; margin: 0; letter-spacing: -0.03em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
filter: contrast(150%);
|
||||||
|
}
|
||||||
|
p { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.1; margin: 0; }
|
||||||
|
|
||||||
|
.hero-block { display: grid; gap: 1.5rem; text-align: center; }
|
||||||
|
|
||||||
|
.actions { margin-top: auto; padding-top: 3rem; text-align: center; }
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block; background: var(--fg); color: var(--bg); text-decoration: none;
|
display: inline-block; padding: 1rem 3rem;
|
||||||
padding: 0.8rem 1.5rem; border-radius: 99px; font-weight: bold; text-transform: uppercase;
|
border: 2px solid var(--ink);
|
||||||
font-size: 0.75rem; letter-spacing: 0.1em; transition: transform 0.1s;
|
border-radius: 50% 90% 80% 50% / 90% 90% 60% 60%; /* Imperfect circle */
|
||||||
|
font-size: 1.5rem; text-decoration: none; color: var(--ink);
|
||||||
|
transition: all 0.2s ease; background: transparent;
|
||||||
|
}
|
||||||
|
.btn:hover {
|
||||||
|
background: var(--ink); color: var(--bg);
|
||||||
|
border-radius: 90% 60% 50% 90% / 60% 50% 90% 80%;
|
||||||
|
transform: scale(1.02) rotate(1deg);
|
||||||
|
}
|
||||||
|
.meta { margin-top: 2rem; opacity: 0.6; font-size: 1.2rem; }
|
||||||
|
.meta a { color: inherit; }
|
||||||
|
|
||||||
|
/* Small coffee ring effect on bottom right fixed */
|
||||||
|
.ring {
|
||||||
|
position: fixed; bottom: 30px; right: 30px; width: 150px; height: 150px;
|
||||||
|
border: 4px solid #634d38; border-radius: 55% 45% 50% 50% / 50% 60% 40% 50%;
|
||||||
|
opacity: 0.1; pointer-events: none; transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
.btn:hover { transform: scale(1.05); }
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="blot b1"></div>
|
||||||
<div class="entry">
|
<div class="blot b2"></div>
|
||||||
<h1 class="stain-font">stain</h1>
|
<div class="blot b3"></div>
|
||||||
<span class="stain-font pos">noun</span>
|
<div class="ring"></div>
|
||||||
<ul class="def-list">
|
|
||||||
<li class="def-item stain-font">
|
<div class="layout">
|
||||||
a colored patch or dirty mark that is difficult to remove.
|
<header>
|
||||||
</li>
|
<h1>STAIN FONT</h1>
|
||||||
<li class="def-item stain-font">
|
</header>
|
||||||
a mark of disgrace associated with a particular circumstance quality or person.
|
|
||||||
</li>
|
<div class="hero-block">
|
||||||
</ul>
|
<p>A PROGRAMMATIC FONT INSPIRED BY CANDARA.</p>
|
||||||
|
<p>PURE OPEN SOURCE.</p>
|
||||||
|
<p>PUBLIC DOMAIN.</p>
|
||||||
|
<p>MADE BY CODE.</p>
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
|
||||||
|
<div class="actions">
|
||||||
|
<a href="./dist/Stain.otf" class="btn" download>Download Stain.OTF</a>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
Designed 100% programmatically.<br/>
|
<a href="https://github.com/multipleof4/stain.otf">multipleof4 slash stain.otf</a>
|
||||||
Open Source & Public Domain.<br/>
|
|
||||||
<a href="https://github.com/multipleof4/stain.otf">multipleof4/stain.otf</a>
|
|
||||||
</div>
|
</div>
|
||||||
<a href="./dist/Stain.otf" class="btn" download>Download .OTF</a>
|
</div>
|
||||||
</footer>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user