Comics — Manga Landing
A black-and-white screentone manga series landing with a single red accent. Features a kinetic right-to-left hero built from a pure-CSS ronin character, halftone shading and converging speed lines, a vertical Japanese-style title accent, a volume cover grid that intensifies its screentone on hover, a newest-first chapter strip that reveals on scroll, a synopsis told through a comic speech balloon, and a high-contrast read-now call to action. Vanilla JS handles parallax, reveals, and toasts.
MCP
代码
:root {
--ink: #0e0e12;
--ink-2: #23232b;
--paper: #ffffff;
--panel: #ffffff;
--accent: #e2001a;
--muted: #6b6b78;
--line: rgba(14, 14, 18, 0.16);
--line-2: rgba(14, 14, 18, 0.30);
--halftone: radial-gradient(circle, rgba(14, 14, 18, 0.55) 1px, transparent 1.6px);
--r-sm: 6px;
--r-md: 12px;
--r-lg: 18px;
--shadow: 6px 6px 0 var(--ink);
--shadow-sm: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: "Inter", system-ui, sans-serif;
background: var(--paper);
color: var(--ink);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.skip {
position: fixed;
left: 12px;
top: -60px;
z-index: 200;
background: var(--ink);
color: #fff;
padding: 10px 16px;
border-radius: var(--r-sm);
font-weight: 700;
transition: top .2s;
}
.skip:focus { top: 12px; }
/* ===== Buttons ===== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .4em;
font-weight: 800;
font-size: .92rem;
letter-spacing: .02em;
padding: 12px 22px;
border: 3px solid var(--ink);
border-radius: var(--r-sm);
cursor: pointer;
background: var(--panel);
color: var(--ink);
box-shadow: var(--shadow-sm);
transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
font-family: inherit;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
/* ===== Topbar ===== */
.topbar {
position: sticky;
top: 0;
z-index: 100;
background: var(--paper);
border-bottom: 3px solid var(--ink);
}
.topbar__inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
display: grid;
place-items: center;
width: 38px;
height: 38px;
background: var(--accent);
color: #fff;
border: 3px solid var(--ink);
border-radius: var(--r-sm);
font-size: 1.2rem;
font-weight: 700;
box-shadow: var(--shadow-sm);
}
.brand__txt { font-family: "Bangers", cursive; font-size: 1.5rem; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 600; font-size: .92rem; position: relative; }
.nav a:not(.nav__cta)::after {
content: ""; position: absolute; left: 0; bottom: -4px;
width: 0; height: 2px; background: var(--accent); transition: width .2s;
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
background: var(--accent); color: #fff; padding: 8px 16px;
border: 2px solid var(--ink); border-radius: var(--r-sm);
box-shadow: 3px 3px 0 var(--ink); font-weight: 800;
}
.menu {
display: none; flex-direction: column; gap: 5px;
background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* ===== Hero ===== */
.hero {
position: relative;
overflow: hidden;
border-bottom: 3px solid var(--ink);
background: var(--paper);
}
.hero__tone {
position: absolute; inset: 0;
background-image: var(--halftone);
background-size: 6px 6px;
-webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
opacity: .6;
pointer-events: none;
}
.hero__lines {
position: absolute; inset: 0; pointer-events: none; z-index: 0;
background:
repeating-conic-gradient(from 0deg at 78% 42%,
rgba(14,14,18,0) 0deg,
rgba(14,14,18,0) 1.4deg,
rgba(14,14,18,0.10) 1.4deg,
rgba(14,14,18,0.10) 2deg);
-webkit-mask-image: radial-gradient(circle at 78% 42%, transparent 14%, #000 60%);
mask-image: radial-gradient(circle at 78% 42%, transparent 14%, #000 60%);
opacity: 0; transition: opacity .8s ease .2s;
}
.hero__lines.on { opacity: 1; }
.hero__vtitle {
position: absolute; top: 0; right: 4%; height: 100%;
display: flex; flex-direction: column; justify-content: center; gap: .1em;
font-family: "Bangers", cursive;
font-size: clamp(1.6rem, 4vw, 3rem);
color: var(--ink); opacity: .12; writing-mode: vertical-rl;
z-index: 0; pointer-events: none;
}
.hero__grid {
position: relative; z-index: 2;
display: grid; grid-template-columns: 1.05fr .95fr;
gap: 40px; align-items: center;
padding: 70px 0 80px;
}
.hero__copy { will-change: transform; }
.hero__kicker {
display: inline-block; font-weight: 800; font-size: .76rem;
letter-spacing: .16em; text-transform: uppercase;
background: var(--ink); color: #fff; padding: 6px 12px;
border-radius: var(--r-sm); margin-bottom: 18px;
}
.hero__title {
font-family: "Bangers", cursive;
font-size: clamp(3.6rem, 11vw, 8rem);
line-height: .86; letter-spacing: .02em;
-webkit-text-stroke: 2px var(--ink); color: var(--paper);
text-shadow: 8px 8px 0 var(--accent);
}
.hero__lede { max-width: 38ch; margin: 22px 0 26px; font-size: 1.06rem; color: var(--ink-2); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 26px; margin-top: 30px; list-style: none; }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong { font-family: "Bangers", cursive; font-size: 1.7rem; letter-spacing: .03em; }
.hero__meta span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
/* ----- CSS ronin ----- */
.hero__art { display: grid; place-items: center; will-change: transform; }
.ronin {
position: relative;
width: 290px; height: 380px;
background: var(--panel);
border: 3px solid var(--ink);
border-radius: var(--r-lg);
box-shadow: var(--shadow);
overflow: hidden;
background-image: var(--halftone);
background-size: 6px 6px;
}
.ronin::before {
content: ""; position: absolute; inset: 0;
background: radial-gradient(circle at 50% 30%, #fff 30%, transparent 70%);
}
.ronin__sfx {
position: absolute; top: 10px; right: 12px; z-index: 5;
font-family: "Bangers", cursive; font-size: 2.4rem; color: var(--accent);
-webkit-text-stroke: 2px var(--ink);
transform: rotate(8deg);
}
.ronin__head {
position: absolute; left: 50%; top: 70px;
width: 130px; height: 150px; transform: translateX(-50%); z-index: 3;
}
.ronin__face {
position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
width: 96px; height: 108px;
background: #fff; border: 3px solid var(--ink);
border-radius: 46% 46% 44% 44% / 40% 40% 60% 60%;
}
.ronin__hair {
position: absolute; left: 50%; top: -2px; transform: translateX(-50%);
width: 132px; height: 78px; background: var(--ink);
border-radius: 60% 60% 30% 30% / 80% 80% 40% 40%;
clip-path: polygon(0 60%, 8% 10%, 22% 55%, 36% 0, 50% 52%, 64% 0, 78% 55%, 92% 10%, 100% 60%, 100% 100%, 0 100%);
}
.ronin__eye {
position: absolute; top: 52px; width: 18px; height: 14px;
background: var(--ink);
border-radius: 60% 60% 50% 50%;
transform: skewX(-8deg);
}
.ronin__eye--l { left: 26px; }
.ronin__eye--r { right: 26px; transform: skewX(8deg); }
.ronin__scar {
position: absolute; top: 40px; left: 30px;
width: 3px; height: 30px; background: var(--accent);
transform: rotate(16deg);
}
.ronin__mouth {
position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
width: 30px; height: 4px; background: var(--ink); border-radius: 2px;
}
.ronin__band {
position: absolute; left: 50%; top: 36px; transform: translateX(-50%);
width: 110px; height: 16px; background: var(--accent);
border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.ronin__body {
position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
width: 200px; height: 170px; background: var(--ink);
clip-path: polygon(50% 0, 100% 30%, 88% 100%, 12% 100%, 0 30%);
z-index: 2;
}
.ronin__blade {
position: absolute; right: 18px; top: 40px; z-index: 4;
width: 14px; height: 300px; background: linear-gradient(180deg, #fff, #d8d8de);
border: 3px solid var(--ink); border-radius: 6px;
transform: rotate(22deg); transform-origin: bottom center;
overflow: hidden;
}
.ronin__gleam {
position: absolute; top: -100%; left: 0; width: 100%; height: 60%;
background: linear-gradient(180deg, transparent, var(--accent), transparent);
animation: gleam 3.4s ease-in-out infinite;
}
@keyframes gleam { 0%, 60% { top: -70%; } 100% { top: 130%; } }
.ronin__cap {
position: absolute; left: 0; bottom: 0; width: 100%; z-index: 6;
background: var(--ink); color: #fff; text-align: center;
font-weight: 700; font-size: .82rem; padding: 8px; letter-spacing: .04em;
}
.hero__scroll {
position: relative; z-index: 2;
text-align: center; padding-bottom: 22px;
font-weight: 700; letter-spacing: .2em; color: var(--muted); font-size: .8rem;
}
/* ===== Latest strip ===== */
.latest { background: var(--ink); color: #fff; border-bottom: 3px solid var(--ink); }
.latest__inner {
display: flex; align-items: center; gap: 20px;
padding: 22px 0; flex-wrap: wrap;
}
.latest__tag {
font-family: "Bangers", cursive; font-size: 1.5rem; letter-spacing: .08em;
background: var(--accent); color: #fff; padding: 6px 16px;
border: 3px solid #fff; border-radius: var(--r-sm);
transform: rotate(-4deg);
}
.latest__body { flex: 1; min-width: 220px; }
.latest__title { font-size: 1.4rem; font-weight: 800; }
.latest__sub { color: rgba(255,255,255,.72); font-size: .9rem; margin-top: 2px; }
/* ===== Section heads ===== */
.sec-head { padding: 56px 0 26px; }
.sec-head__title {
font-family: "Bangers", cursive; font-size: clamp(2.2rem, 6vw, 3.6rem);
letter-spacing: .04em; line-height: 1;
display: inline-block;
border-bottom: 5px solid var(--accent); padding-bottom: 6px;
}
.sec-head__sub { color: var(--muted); margin-top: 10px; font-weight: 500; }
/* ===== Volumes ===== */
.vols { background: var(--paper); }
.vol-grid {
display: grid; gap: 22px; padding-bottom: 30px;
grid-template-columns: repeat(4, 1fr);
}
.vol {
border: 3px solid var(--ink); border-radius: var(--r-md);
background: var(--panel); box-shadow: var(--shadow-sm);
overflow: hidden; cursor: pointer;
transition: transform .16s ease, box-shadow .16s ease;
}
.vol:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.vol:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vol__cover {
position: relative; aspect-ratio: 3 / 4;
display: flex; flex-direction: column; justify-content: flex-end;
padding: 16px; color: #fff;
background: var(--ink);
overflow: hidden;
}
.vol__cover::before {
content: ""; position: absolute; inset: 0;
background-image: var(--halftone);
background-size: 6px 6px;
opacity: .22; transition: opacity .25s ease, background-size .25s ease;
}
.vol:hover .vol__cover::before { opacity: .55; background-size: 5px 5px; }
.vol__cover::after {
content: ""; position: absolute; right: -30%; top: -30%;
width: 90%; height: 160%;
background: var(--accent);
transform: rotate(22deg);
opacity: .9;
}
.vol__num {
position: absolute; top: 12px; left: 14px; z-index: 2;
font-family: "Bangers", cursive; font-size: 2.4rem; letter-spacing: .04em;
-webkit-text-stroke: 1.5px var(--ink);
}
.vol__name { position: relative; z-index: 2; font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.vol__sub { position: relative; z-index: 2; font-size: .78rem; color: rgba(255,255,255,.8); margin-top: 2px; }
/* ===== Chapters ===== */
.chapters { background: var(--paper); border-top: 3px solid var(--ink); }
.ch-list { list-style: none; padding-bottom: 60px; }
.ch-item {
display: flex; align-items: center; gap: 16px;
padding: 16px 18px; margin-bottom: 12px;
border: 3px solid var(--ink); border-radius: var(--r-md);
background: var(--panel); box-shadow: var(--shadow-sm);
opacity: 0; transform: translateX(-26px);
transition: opacity .5s ease, transform .5s ease, background .14s ease;
}
.ch-item.in { opacity: 1; transform: translateX(0); }
.ch-item:hover { background: #fff5f6; }
.ch-item__no {
font-family: "Bangers", cursive; font-size: 1.5rem;
min-width: 56px; text-align: center;
background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 6px 0;
}
.ch-item__main { flex: 1; min-width: 0; }
.ch-item__title { font-weight: 700; font-size: 1.02rem; }
.ch-item__meta { color: var(--muted); font-size: .82rem; }
.ch-item__new {
font-size: .68rem; font-weight: 800; letter-spacing: .1em;
background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.ch-item__go {
border: 2px solid var(--ink); border-radius: var(--r-sm);
background: var(--panel); font-weight: 800; padding: 8px 14px; cursor: pointer;
font-family: inherit; transition: background .14s, color .14s;
}
.ch-item__go:hover { background: var(--ink); color: #fff; }
.ch-item__go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ===== Story ===== */
.story { background: var(--ink); color: #fff; border-top: 3px solid var(--ink); padding: 64px 0; }
.story__grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 30px; align-items: start; }
.balloon {
position: relative; background: #fff; color: var(--ink);
border: 3px solid var(--ink); border-radius: 22px;
padding: 28px 30px; box-shadow: var(--shadow);
}
.balloon::after {
content: ""; position: absolute; left: 48px; bottom: -22px;
border-width: 22px 18px 0 0; border-style: solid;
border-color: var(--ink) transparent transparent transparent;
}
.balloon::before {
content: ""; position: absolute; left: 50px; bottom: -16px;
border-width: 18px 14px 0 0; border-style: solid;
border-color: #fff transparent transparent transparent; z-index: 1;
}
.balloon__title { font-family: "Bangers", cursive; font-size: 2.2rem; letter-spacing: .04em; margin-bottom: 12px; }
.balloon p { margin-bottom: 12px; color: var(--ink-2); }
.balloon strong { color: var(--accent); }
.story__facts {
background: #fff; color: var(--ink);
border: 3px solid var(--ink); border-radius: var(--r-md);
box-shadow: var(--shadow); overflow: hidden;
}
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 2px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact__k { color: var(--muted); font-weight: 600; font-size: .86rem; }
.fact__v { font-weight: 800; text-align: right; }
/* ===== Read CTA ===== */
.read { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 80px 0; border-top: 3px solid var(--ink); }
.read__tone {
position: absolute; inset: 0; pointer-events: none;
background-image: radial-gradient(circle, rgba(14,14,18,0.35) 1px, transparent 1.6px);
background-size: 6px 6px; opacity: .5;
}
.read__inner { position: relative; z-index: 2; text-align: center; }
.read__vert {
position: absolute; right: 0; top: 50%; transform: translateY(-50%);
writing-mode: vertical-rl; font-family: "Bangers", cursive;
font-size: clamp(2rem, 8vw, 5rem); opacity: .25; pointer-events: none;
}
.read__title {
font-family: "Bangers", cursive; font-size: clamp(2.8rem, 9vw, 6rem);
line-height: .9; letter-spacing: .03em;
-webkit-text-stroke: 2px var(--ink); color: #fff;
text-shadow: 6px 6px 0 var(--ink);
}
.read__sub { max-width: 44ch; margin: 18px auto 28px; font-weight: 600; font-size: 1.08rem; }
.read__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ===== Footer ===== */
.foot { background: var(--ink); color: #fff; padding: 26px 0; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__brand { font-family: "Bangers", cursive; font-size: 1.4rem; letter-spacing: .06em; }
.foot__note { color: rgba(255,255,255,.6); font-size: .82rem; }
/* ===== Toast ===== */
.toast {
position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px);
background: var(--ink); color: #fff; font-weight: 700;
padding: 14px 22px; border: 3px solid #fff; border-radius: var(--r-sm);
box-shadow: 5px 5px 0 var(--accent); z-index: 300;
opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ===== Reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }
/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation: none !important; transition: none !important; }
[data-reveal], .ch-item { opacity: 1 !important; transform: none !important; }
}
/* ===== Responsive ===== */
@media (max-width: 900px) {
.hero__grid { grid-template-columns: 1fr; gap: 30px; padding: 50px 0 60px; }
.hero__art { order: -1; }
.story__grid { grid-template-columns: 1fr; }
.vol-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
.nav { display: none; }
.menu { display: flex; }
.nav.open {
display: flex; flex-direction: column; align-items: stretch; gap: 0;
position: absolute; top: 64px; left: 0; right: 0;
background: var(--paper); border-bottom: 3px solid var(--ink);
padding: 8px 16px 16px;
}
.nav.open a { padding: 12px 0; border-bottom: 2px solid var(--line); }
.nav.open .nav__cta { text-align: center; border: 2px solid var(--ink); margin-top: 8px; }
.vol-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
.wrap { width: 92vw; }
.hero__title { text-shadow: 5px 5px 0 var(--accent); }
.hero__meta { gap: 18px; }
.latest__inner { flex-direction: column; align-items: flex-start; }
.ronin { width: 240px; height: 320px; }
.ronin__blade { height: 250px; }
.ch-item { flex-wrap: wrap; }
.ch-item__go { width: 100%; }
.read__title { text-shadow: 4px 4px 0 var(--ink); }
}(function () {
"use strict";
var prefersReduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
/* ---------- Toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer = null;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
}, 2400);
}
/* ---------- Mobile menu ---------- */
var menuBtn = document.getElementById("menuBtn");
var nav = document.querySelector(".nav");
if (menuBtn && nav) {
menuBtn.addEventListener("click", function () {
var open = nav.classList.toggle("open");
menuBtn.setAttribute("aria-expanded", String(open));
});
nav.addEventListener("click", function (e) {
if (e.target.tagName === "A") {
nav.classList.remove("open");
menuBtn.setAttribute("aria-expanded", "false");
}
});
}
/* ---------- Data ---------- */
var volumes = [
{ n: "01", name: "First Blade", sub: "Ch. 1–11" },
{ n: "02", name: "City of Erased Names", sub: "Ch. 12–22" },
{ n: "03", name: "The Memory Broker", sub: "Ch. 23–34" },
{ n: "04", name: "Ghost-Steel", sub: "Ch. 35–46" },
{ n: "05", name: "Seven Syndicates", sub: "Ch. 47–58" },
{ n: "06", name: "Neon Funeral", sub: "Ch. 59–70" },
{ n: "07", name: "The Quiet District", sub: "Ch. 71–84" },
{ n: "08", name: "Auction Night", sub: "Ch. 85–98" }
];
var chapters = [
{ no: "132", title: "The Memory Auction", meta: "2 hours ago · 19 pages", isNew: true },
{ no: "131", title: "Bidding in Blood", meta: "1 week ago · 18 pages", isNew: false },
{ no: "130", title: "The Broker's Garden", meta: "2 weeks ago · 20 pages", isNew: false },
{ no: "129", title: "A Name Worth Cutting", meta: "3 weeks ago · 17 pages", isNew: false },
{ no: "128", title: "Rooftops of Neo-Kuroshima", meta: "1 month ago · 21 pages", isNew: false },
{ no: "127", title: "Eight Cuts, One Vow", meta: "1 month ago · 18 pages", isNew: false }
];
/* ---------- Render volumes ---------- */
var volGrid = document.getElementById("volGrid");
if (volGrid) {
volGrid.innerHTML = "";
volumes.forEach(function (v) {
var card = document.createElement("article");
card.className = "vol";
card.tabIndex = 0;
card.setAttribute("role", "button");
card.setAttribute("aria-label", "Volume " + v.n + ": " + v.name);
card.innerHTML =
'<div class="vol__cover">' +
'<span class="vol__num">' + v.n + "</span>" +
'<h3 class="vol__name">' + v.name + "</h3>" +
'<p class="vol__sub">' + v.sub + "</p>" +
"</div>";
function open() { toast("Opening Vol. " + v.n + " — " + v.name); }
card.addEventListener("click", open);
card.addEventListener("keydown", function (e) {
if (e.key === "Enter" || e.key === " ") { e.preventDefault(); open(); }
});
volGrid.appendChild(card);
});
}
/* ---------- Render chapters ---------- */
var chList = document.getElementById("chList");
if (chList) {
chapters.forEach(function (c) {
var li = document.createElement("li");
li.className = "ch-item";
li.innerHTML =
'<span class="ch-item__no">' + c.no + "</span>" +
'<div class="ch-item__main">' +
'<div class="ch-item__title">' + c.title +
(c.isNew ? ' <span class="ch-item__new">NEW</span>' : "") +
"</div>" +
'<div class="ch-item__meta">' + c.meta + "</div>" +
"</div>" +
'<button class="ch-item__go" type="button">Read</button>';
li.querySelector(".ch-item__go").addEventListener("click", function () {
toast("Loading Chapter " + c.no + " — " + c.title);
});
chList.appendChild(li);
});
}
/* ---------- Reveal on scroll (chapters + data-reveal) ---------- */
var revealItems = [].slice.call(document.querySelectorAll(".ch-item, [data-reveal]"));
if (prefersReduced || !("IntersectionObserver" in window)) {
revealItems.forEach(function (el) { el.classList.add("in"); });
} else {
var io = new IntersectionObserver(function (entries) {
entries.forEach(function (en, i) {
if (en.isIntersecting) {
// small stagger for chapter rows
var delay = en.target.classList.contains("ch-item") ? i * 70 : 0;
setTimeout(function () { en.target.classList.add("in"); }, delay);
io.unobserve(en.target);
}
});
}, { threshold: 0.16, rootMargin: "0px 0px -8% 0px" });
revealItems.forEach(function (el) { io.observe(el); });
}
/* ---------- Hero entrance + speed lines ---------- */
var speedLines = document.getElementById("speedLines");
requestAnimationFrame(function () {
if (speedLines) speedLines.classList.add("on");
});
/* ---------- Hero parallax ---------- */
var heroArt = document.getElementById("heroArt");
var heroCopy = document.querySelector(".hero__copy");
var hero = document.querySelector(".hero");
if (hero && !prefersReduced) {
var ticking = false;
function onScroll() {
if (ticking) return;
ticking = true;
requestAnimationFrame(function () {
var y = window.scrollY;
if (y < window.innerHeight) {
if (heroArt) heroArt.style.transform = "translateY(" + y * 0.12 + "px)";
if (heroCopy) heroCopy.style.transform = "translateY(" + y * -0.05 + "px)";
if (speedLines) speedLines.style.transform = "scale(" + (1 + y * 0.0004) + ")";
}
ticking = false;
});
}
window.addEventListener("scroll", onScroll, { passive: true });
// pointer parallax on the ronin art (desktop)
if (window.matchMedia("(pointer:fine)").matches && heroArt) {
hero.addEventListener("mousemove", function (e) {
var r = hero.getBoundingClientRect();
var dx = (e.clientX - r.left) / r.width - 0.5;
var dy = (e.clientY - r.top) / r.height - 0.5;
heroArt.querySelector(".ronin").style.transform =
"rotateY(" + dx * 8 + "deg) rotateX(" + dy * -8 + "deg)";
});
hero.addEventListener("mouseleave", function () {
heroArt.querySelector(".ronin").style.transform = "";
});
}
}
/* ---------- CTA buttons ---------- */
var ctaRead = document.getElementById("ctaRead");
if (ctaRead) ctaRead.addEventListener("click", function () { toast("Opening Chapter 1 — enjoy the read!"); });
var ctaFollow = document.getElementById("ctaFollow");
if (ctaFollow) {
var following = false;
ctaFollow.addEventListener("click", function () {
following = !following;
ctaFollow.textContent = following ? "✓ Following" : "+ Follow series";
ctaFollow.setAttribute("aria-pressed", String(following));
toast(following ? "Following Neon Ronin — we'll ping you Fridays." : "Unfollowed.");
});
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Neon Ronin — Manga Landing</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Bangers&family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip" href="#read">Skip to read</a>
<!-- ===== Top bar ===== -->
<header class="topbar">
<div class="wrap topbar__inner">
<a class="brand" href="#top" aria-label="Neon Ronin home">
<span class="brand__mark" aria-hidden="true">忍</span>
<span class="brand__txt">NEON RONIN</span>
</a>
<nav class="nav" aria-label="Primary">
<a href="#volumes">Volumes</a>
<a href="#latest">Latest</a>
<a href="#story">Story</a>
<a href="#read" class="nav__cta">Read free</a>
</nav>
<button class="menu" id="menuBtn" aria-label="Open menu" aria-expanded="false">
<span></span><span></span><span></span>
</button>
</div>
</header>
<!-- ===== Hero ===== -->
<section class="hero" id="top">
<div class="hero__tone" aria-hidden="true"></div>
<div class="hero__lines" id="speedLines" aria-hidden="true"></div>
<!-- Vertical Japanese-style title accent -->
<div class="hero__vtitle" aria-hidden="true">
<span>ネ</span><span>オ</span><span>ン</span><span>浪</span><span>人</span>
</div>
<div class="wrap hero__grid">
<div class="hero__copy" data-reveal>
<p class="hero__kicker">Weekly Shonen · Vol. 1–12 out now</p>
<h1 class="hero__title">NEON<br />RONIN</h1>
<p class="hero__lede">
A masterless swordsman wakes in a neon megacity where blades are illegal
and memory is currency. To buy back his past, he must cut down the seven
syndicates that erased it.
</p>
<div class="hero__cta">
<a class="btn btn--ink" href="#read">Read Chapter 1</a>
<a class="btn btn--ghost" href="#volumes">Browse volumes</a>
</div>
<ul class="hero__meta">
<li><strong>4.9</strong><span>rating</span></li>
<li><strong>8.2M</strong><span>readers</span></li>
<li><strong>132</strong><span>chapters</span></li>
</ul>
</div>
<!-- CSS-drawn manga character -->
<div class="hero__art" id="heroArt" data-reveal>
<figure class="ronin" role="img" aria-label="Stylized manga ronin with a katana">
<span class="ronin__sfx" aria-hidden="true">斬</span>
<div class="ronin__head">
<div class="ronin__hair"></div>
<div class="ronin__face">
<span class="ronin__eye ronin__eye--l"></span>
<span class="ronin__eye ronin__eye--r"></span>
<span class="ronin__scar"></span>
<span class="ronin__mouth"></span>
</div>
<div class="ronin__band"></div>
</div>
<div class="ronin__body"></div>
<div class="ronin__blade" aria-hidden="true"><span class="ronin__gleam"></span></div>
<figcaption class="ronin__cap">Kaito “Eight-Cut” Arashi</figcaption>
</figure>
</div>
</div>
<div class="hero__scroll" aria-hidden="true">SCROLL ↓ 読む</div>
</section>
<!-- ===== Latest chapter strip ===== -->
<section class="latest" id="latest" aria-labelledby="latestH">
<div class="wrap latest__inner">
<div class="latest__tag">NEW</div>
<div class="latest__body">
<h2 id="latestH" class="latest__title">Ch. 132 — “The Memory Auction”</h2>
<p class="latest__sub">Released 2 hours ago · 19 pages · Color spread inside</p>
</div>
<a class="btn btn--accent" href="#read">Read now</a>
</div>
</section>
<!-- ===== Volumes ===== -->
<section class="vols" id="volumes" aria-labelledby="volsH">
<div class="wrap">
<header class="sec-head">
<h2 id="volsH" class="sec-head__title">VOLUMES</h2>
<p class="sec-head__sub">Hover a cover to intensify the screentone.</p>
</header>
<div class="vol-grid" id="volGrid">
<!-- cards injected by script.js, with no-JS fallback below -->
<noscript>
<article class="vol"><div class="vol__cover"><span class="vol__num">01</span><h3 class="vol__name">First Blade</h3></div></article>
</noscript>
</div>
</div>
</section>
<!-- ===== Chapters reveal ===== -->
<section class="chapters" aria-labelledby="chH">
<div class="wrap">
<header class="sec-head">
<h2 id="chH" class="sec-head__title">RECENT CHAPTERS</h2>
<p class="sec-head__sub">Newest first — they slide in as you scroll.</p>
</header>
<ol class="ch-list" id="chList"></ol>
</div>
</section>
<!-- ===== Synopsis ===== -->
<section class="story" id="story" aria-labelledby="storyH">
<div class="wrap story__grid">
<div class="balloon balloon--big" data-reveal>
<h2 id="storyH" class="balloon__title">The Story</h2>
<p>
In <strong>Neo-Kuroshima</strong>, the city sold its history to stay alive.
Childhoods are filed, traded, and deleted. Kaito Arashi remembers being
someone — a name, a clan, a debt — but the records say he never existed.
</p>
<p>
Armed with a forbidden “ghost-steel” katana that cannot be scanned, he carves
a path through the seven syndicates that own the city’s past, hunting the one
memory broker who knows what he was before the lights came on.
</p>
</div>
<aside class="story__facts" data-reveal>
<div class="fact"><span class="fact__k">Author</span><span class="fact__v">R. Tachibana</span></div>
<div class="fact"><span class="fact__k">Genre</span><span class="fact__v">Cyber · Samurai · Action</span></div>
<div class="fact"><span class="fact__k">Demographic</span><span class="fact__v">Shonen</span></div>
<div class="fact"><span class="fact__k">Status</span><span class="fact__v">Ongoing · Weekly</span></div>
<div class="fact"><span class="fact__k">Started</span><span class="fact__v">2024</span></div>
</aside>
</div>
</section>
<!-- ===== Read CTA ===== -->
<section class="read" id="read" aria-labelledby="readH">
<div class="read__tone" aria-hidden="true"></div>
<div class="wrap read__inner">
<p class="read__vert" aria-hidden="true">無料</p>
<h2 id="readH" class="read__title">START<br />READING</h2>
<p class="read__sub">First 12 chapters free, no account needed. New chapter every Friday.</p>
<div class="read__cta">
<a class="btn btn--ink btn--lg" href="#top" id="ctaRead">Read Chapter 1 free</a>
<button class="btn btn--ghost btn--lg" id="ctaFollow">+ Follow series</button>
</div>
</div>
</section>
<footer class="foot">
<div class="wrap foot__inner">
<span class="foot__brand">NEON RONIN</span>
<span class="foot__note">Illustrative UI only · fictional series & data</span>
</div>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Manga Landing
A landing page for the fictional weekly shonen series Neon Ronin, styled as black-and-white
manga: ink-black borders, a white paper background, halftone screentone shading, and a single
red accent (#e2001a). The hero pairs a Bangers display title with a character drawn entirely
in CSS — a scarred swordsman with a gleaming katana — set against converging speed lines and a
vertical Japanese-style title strip that nods to right-to-left reading.
Below the hero, a dark “latest chapter” strip flags the newest release, a four-up volume grid presents cover art whose screentone intensifies on hover, and a recent-chapters list slides in row by row as you scroll. The synopsis is delivered inside a tailed comic speech balloon next to a facts panel, and the page closes on a bold red read-now call to action.
Interactions are pure vanilla JS: the hero gets a scroll parallax plus a subtle pointer-driven
tilt on the character, volumes and chapters are rendered from data with keyboard-usable controls,
chapter rows reveal via IntersectionObserver with a stagger, and a small toast() helper
confirms every action. All motion respects prefers-reduced-motion.
Illustrative UI only — fictional series, characters, and data.