<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Novedad Inurriaga</title>
    <description>The latest articles on DEV Community by Novedad Inurriaga (@novedad_inurriaga_aef6793).</description>
    <link>https://dev.to/novedad_inurriaga_aef6793</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4024161%2F3ded3be6-8e3a-47d9-ab5b-9bb6fe3846c0.png</url>
      <title>DEV Community: Novedad Inurriaga</title>
      <link>https://dev.to/novedad_inurriaga_aef6793</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/novedad_inurriaga_aef6793"/>
    <language>en</language>
    <item>
      <title>Building a Buyer-First B2B Product Catalog Without a Framework</title>
      <dc:creator>Novedad Inurriaga</dc:creator>
      <pubDate>Fri, 10 Jul 2026 15:11:35 +0000</pubDate>
      <link>https://dev.to/novedad_inurriaga_aef6793/building-a-buyer-first-b2b-product-catalog-without-a-framework-3jba</link>
      <guid>https://dev.to/novedad_inurriaga_aef6793/building-a-buyer-first-b2b-product-catalog-without-a-framework-3jba</guid>
      <description>&lt;p&gt;Most product catalog demos are designed around a shopper who can click &lt;strong&gt;Buy now&lt;/strong&gt;. A wholesale buyer behaves differently. They compare carton quantities, target markets, packaging options, compliance notes, sample requirements, and launch dates before asking for a quotation.&lt;/p&gt;

&lt;p&gt;That difference shaped a small catalog template I recently prepared for &lt;a href="https://www.cps-toys.com/" rel="noopener noreferrer"&gt;CPS Toys&lt;/a&gt;, a toy manufacturer and sourcing company in Shantou Chenghai. The goal was not to reproduce its production website. It was to create a focused front-end reference that helps a buyer prepare a useful first inquiry.&lt;/p&gt;

&lt;p&gt;The project uses plain HTML, CSS, and JavaScript. There is no framework, build step, database, analytics script, or form endpoint. That constraint kept the engineering decisions visible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the buyer's next decision
&lt;/h2&gt;

&lt;p&gt;The first question was not "Which component library should we use?" It was "What must a buyer decide next?"&lt;/p&gt;

&lt;p&gt;For this catalog, that sequence is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose a sourcing direction.&lt;/li&gt;
&lt;li&gt;Shortlist one or more product groups.&lt;/li&gt;
&lt;li&gt;State an approximate quantity and target market.&lt;/li&gt;
&lt;li&gt;Add packaging or compliance notes.&lt;/li&gt;
&lt;li&gt;Continue to the supplier's official contact page.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That flow avoids pretending that a B2B order can be completed with a retail checkout. Product availability, MOQ, certificates, packaging, pricing, and lead time still need direct confirmation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use data attributes for a small filter
&lt;/h2&gt;

&lt;p&gt;Each product card has a category:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;article&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"product-card"&lt;/span&gt; &lt;span class="na"&gt;data-category=&lt;/span&gt;&lt;span class="s"&gt;"bubble"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Bubble guns and machines&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/article&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The filter buttons use matching values. The JavaScript only has to update the &lt;code&gt;hidden&lt;/code&gt; property:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;filters&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;button&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;button&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;click&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;button&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nx"&gt;cards&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;card&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;card&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;all&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;card&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;category&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="nx"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For four categories, this is easier to audit than introducing state management. It also preserves the meaning of the document when JavaScript is unavailable: every card remains visible by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the inquiry planner local
&lt;/h2&gt;

&lt;p&gt;A demo form should not quietly collect business information. The template keeps the shortlist in the current browser and does not send it anywhere.&lt;/p&gt;

&lt;p&gt;When a buyer adds a category, the script appends a unique line to a textarea. On submit, it summarizes the brief and opens the official supplier contact page. There is no hidden endpoint and no third-party form processor.&lt;/p&gt;

&lt;p&gt;This is a useful default for open templates because it prevents accidental storage of names, emails, target prices, and launch details. A production implementation can add a backend later, together with consent text, retention rules, validation, spam controls, and an appropriate privacy notice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make mobile layout a structural decision
&lt;/h2&gt;

&lt;p&gt;The catalog uses stable grid tracks instead of scaling text with viewport width:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.product-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minmax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
  &lt;span class="py"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;18px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;980px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.product-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;620px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.product-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cards do not change size when filtering, and product images use a fixed aspect ratio. On small screens, the inquiry form becomes a single column and the hero statistics stack into compact rows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat content accuracy as part of the code
&lt;/h2&gt;

&lt;p&gt;A product template can become misleading even when the JavaScript is perfect. That is why the copy avoids hard-coded prices, unverified certification claims, or fixed MOQs.&lt;/p&gt;

&lt;p&gt;Instead, the interface asks buyers to compare:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;age range and target market;&lt;/li&gt;
&lt;li&gt;battery and liquid formats;&lt;/li&gt;
&lt;li&gt;packaging dimensions and instruction languages;&lt;/li&gt;
&lt;li&gt;sample approval and inspection points;&lt;/li&gt;
&lt;li&gt;carton quantity, logistics, and launch timing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full range remains on the &lt;a href="https://www.cps-toys.com/products/" rel="noopener noreferrer"&gt;official CPS Toys product catalog&lt;/a&gt;, where current product details can be checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would add in production
&lt;/h2&gt;

&lt;p&gt;The next version could introduce a small JSON product schema, server-side rendering for indexable category pages, image optimization, structured data, and a protected inquiry API. I would also add automated accessibility checks and field-level validation before connecting the form to a CRM.&lt;/p&gt;

&lt;p&gt;For the first iteration, plain browser technologies were enough. The result is easy to inspect, easy to host, and honest about where a demo ends and a real wholesale conversation begins.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>a11y</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
