consistent-pet / index.html
bensblueprints's picture
Add files using upload-large-folder tool
d2848ca verified
Raw History Blame Contribute Delete
5.53 kB
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Consistent Pet — Reference Library</title><style>
:root{color-scheme:light;--green:#193d31;--paper:#f6f2e9}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--green);font:16px/1.5 system-ui}header,main{max-width:1500px;margin:auto;padding:28px}h1{font:clamp(32px,5vw,56px) Georgia;margin:12px 0}p{max-width:850px}a{color:inherit}nav{display:flex;gap:20px;flex-wrap:wrap}.filters{position:sticky;top:0;background:#f6f2e9f5;backdrop-filter:blur(10px);padding:16px 0;border-block:1px solid #193d3130;z-index:1;display:flex;align-items:end;gap:12px;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:4px;font-size:14px}select,input[type=search]{padding:10px;border:1px solid #a4ada3;border-radius:6px;background:white;font:inherit;max-width:260px}.toggle{display:block;margin-bottom:10px}#grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px}article{background:#fffdf7;padding:12px;border:1px solid #d6d8cf;border-radius:10px}img{width:100%;aspect-ratio:4/5;object-fit:contain;background:#eae4d8;border-radius:5px}h2{font:22px Georgia;margin:12px 0 8px}.tags{font-size:13px;color:#526558}.links{display:flex;gap:12px;flex-wrap:wrap;font-size:14px}.flag{font-size:12px;color:#8a4c15}button{font:inherit;background:var(--green);color:white;padding:12px 24px;border:0;border-radius:6px;cursor:pointer}#more{display:block;margin:30px auto}footer{padding:24px;text-align:center}small{display:block} .muted{color:#526558}@media(max-width:550px){header,main{padding:16px}#grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}article{padding:8px}h2{font-size:18px}.filters{position:static}select,input[type=search]{max-width:100%;width:100%}.filters>label{flex:1 1 45%}}
</style></head><body><header><p>CONSISTENT PET • HIGGSFIELD REFERENCE LIBRARY</p><h1>One pet. Hundreds of possibilities.</h1><p>725 original portrait concepts, organized by costume sex eligibility and category. These are reusable reference templates, not customer photographs or generated customer galleries.</p><nav><a href="https://huggingface.co/datasets/bensblueprints/consistent-pet">Hugging Face dataset</a><a href="https://github.com/bensblueprints/consistent-pet">GitHub repository</a><a href="catalog.json">Full catalog</a></nav><p class="muted">Unisex templates work with either selection. Sex labels describe the intended costume, not the animal's biological sex. Reference transfer still needs testing; flagged earlier designs need anatomy review.</p></header><main><div class="filters"><label>Search<input id="search" type="search" placeholder="Space, newspaper, princess…"></label><label>Sex<select id="sex"><option value="">All</option><option>male</option><option>female</option><option>unisex</option></select></label><label>Category<select id="category"><option value="">All categories</option></select></label><label>Collection<select id="collection"><option value="">All collections</option></select></label><label class="toggle"><input type="checkbox" id="unisex" checked> Include unisex with male/female</label></div><p id="count" role="status"></p><div id="grid"></div><button id="more">Show more</button></main><footer>Full-resolution PNG originals • 100 vintage print variants • No automatic customer generation</footer><script src="gallery-data.js"></script><script>
const $=id=>document.getElementById(id);const rows=window.PET_REFERENCES;let filtered=rows,shown=0;
for(const field of ['category','collection']) for(const value of [...new Set(rows.map(r=>r[field]))].sort()){const option=document.createElement('option');option.value=value;option.textContent=value;$(field).append(option)}
function element(tag,text,cls){const e=document.createElement(tag);if(text)e.textContent=text;if(cls)e.className=cls;return e}
function render(){const end=Math.min(shown+60,filtered.length);for(const r of filtered.slice(shown,end)){const article=element('article');const link=element('a');link.href=r.file_name;link.target='_blank';link.rel='noopener';const img=element('img');img.src=r.preview;img.alt=r.name;img.loading='lazy';img.decoding='async';link.append(img);article.append(link,element('h2',r.name),element('p',`${r.sex} · ${r.category}`,'tags'));const links=element('p',null,'links');const full=element('a','Original PNG');full.href=r.file_name;full.download='';links.append(full);if(r.print_variant){const variant=element('a','Poster version');variant.href=r.print_variant;variant.target='_blank';variant.rel='noopener';links.append(variant)}article.append(links);if(r.qa_flags.length)article.append(element('p',r.qa_flags.join(' · '),'flag'));$('grid').append(article)}shown=end;$('more').hidden=shown>=filtered.length;$('count').textContent=`${filtered.length} matching concepts · showing ${shown}`}
function filter(){const q=$('search').value.trim().toLowerCase(),sex=$('sex').value;filtered=rows.filter(r=>(!sex||r.sex===sex||($('unisex').checked&&sex!=='unisex'&&r.sex==='unisex'))&&(!$('category').value||r.category===$('category').value)&&(!$('collection').value||r.collection===$('collection').value)&&(!q||[r.name,r.category,r.collection,r.description].join(' ').toLowerCase().includes(q)));$('grid').replaceChildren();shown=0;render()}
for(const id of ['search','sex','category','collection','unisex'])$(id).addEventListener('input',filter);$('more').addEventListener('click',render);filter();
</script></body></html>