57 lines
4.1 KiB
HTML
57 lines
4.1 KiB
HTML
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Contribute a part — PromptPCB Parts</title>
|
|
<link rel="stylesheet" href="/assets/style.css">
|
|
<header class="top"><div class="wrap">
|
|
<a class="brand" href="/"><span class="dot"></span> PromptPCB <small>· Parts</small></a>
|
|
<nav class="main"><a href="/">Catalog</a><a href="/submit.html" class="active">Submit a part</a><a href="/mcp.html">MCP / API</a></nav>
|
|
<span class="spacer"></span>
|
|
<span class="credits">◆ <b id="cred-n">5</b> credits</span>
|
|
</div></header>
|
|
|
|
<div class="wrap"><div class="form">
|
|
<h1 class="dh1">Contribute a curated part</h1>
|
|
<div class="banner">Add one <b>novel, verified</b> part — 3D model, datasheet, labelled pins & pads, specs, a SPICE model, and what it's used for — and earn <b>5 download credits</b>. Hit <b>Auto-fill with AI</b> to draft the specs, use-cases and SPICE from the datasheet, then <b>review every field</b> before submitting. Honor system: only submit data you've checked.</div>
|
|
|
|
<div class="row2">
|
|
<div class="field"><label>Manufacturer part number (MPN) *</label><input id="mpn" placeholder="e.g. BSS138"></div>
|
|
<div class="field"><label>Class *</label><select id="class">
|
|
<option value="">Select…</option>
|
|
<option>resistor</option><option>capacitor</option><option>inductor</option><option>diode</option>
|
|
<option>mosfet</option><option>bjt</option><option>led</option><option>mcu</option><option>ic</option>
|
|
<option>gate_driver</option><option>op_amp</option><option>voltage_regulator_linear</option>
|
|
<option>voltage_regulator_switching</option><option>crystal</option><option>connector</option>
|
|
<option>timer</option><option>sensor</option><option>other</option></select></div>
|
|
</div>
|
|
<div class="row2">
|
|
<div class="field"><label>Manufacturer</label><input id="manufacturer" placeholder="e.g. onsemi"></div>
|
|
<div class="field"><label>Package</label><input id="package" placeholder="e.g. SOT-23"></div>
|
|
</div>
|
|
<div class="field"><label>Datasheet URL *</label><input id="datasheet_url" placeholder="https://…/datasheet.pdf"></div>
|
|
|
|
<div class="field">
|
|
<label>Datasheet text / notes (paste key specs — powers Auto-fill)</label>
|
|
<textarea id="description" placeholder="Paste the electrical characteristics table or a description; the AI drafts specs, use-cases and a SPICE model from this."></textarea>
|
|
<button class="btn ghost" id="autofill" style="margin-top:10px">✦ Auto-fill with AI</button>
|
|
<span id="af-status" style="margin-left:10px;color:var(--dim);font-size:13px"></span>
|
|
</div>
|
|
|
|
<div class="field"><label>Summary *</label><textarea id="summary" style="min-height:60px;font-family:var(--sans)"></textarea></div>
|
|
<div class="field"><label>When to use *</label><textarea id="when_to_use" style="min-height:60px;font-family:var(--sans)"></textarea></div>
|
|
<div class="field"><label>Use cases * — one per line ("This part can be used to …")</label><textarea id="use_cases" style="min-height:130px"></textarea></div>
|
|
<div class="field"><label>Specifications * — one per line as <code>name: value unit</code></label><textarea id="params" style="min-height:110px" placeholder="Vds max: 50 V Rds(on): 3.5 ohm Id: 0.22 A"></textarea></div>
|
|
<div class="field"><label>SPICE model *</label><textarea id="spice" style="min-height:110px" placeholder=".SUBCKT / .MODEL …"></textarea></div>
|
|
|
|
<div class="row2">
|
|
<div class="field"><label>3D model file (.obj / .glb / .step) *</label>
|
|
<label class="drop" for="model3d"><span id="drop-label">Click to attach a 3D model</span></label>
|
|
<input id="model3d" type="file" accept=".obj,.glb,.gltf,.step,.stp,.wrl" style="display:none"></div>
|
|
<div class="field"><label>Your email *</label><input id="email" type="email" placeholder="you@example.com"></div>
|
|
</div>
|
|
|
|
<div style="display:flex;align-items:center;gap:14px;margin-top:8px">
|
|
<button class="btn" id="submit">Submit part & earn 5 credits</button>
|
|
<span id="sub-status" style="color:var(--dim);font-size:14px"></span>
|
|
</div>
|
|
</div></div>
|
|
<script src="/assets/submit.js"></script>
|