<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Deliver Website UI]]></title><description><![CDATA[Deliver Website UI]]></description><link>https://deliverui.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b0296a36ae1b115eefe8163/318b3272-9558-400f-8b37-a6b537167272.png</url><title>Deliver Website UI</title><link>https://deliverui.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 08:31:57 GMT</lastBuildDate><atom:link href="https://deliverui.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Show the Product, Not a Picture of It: 3 Hero Section Ideas | DeliverWebsite UI]]></title><description><![CDATA[Three free React hero sections that show the product working instead of a gradient blob, and when to use each. From DeliverWebsite UI.]]></description><link>https://deliverui.hashnode.dev/show-the-product-not-a-picture-of-it-3-hero-section-ideas-deliverwebsite-ui</link><guid isPermaLink="true">https://deliverui.hashnode.dev/show-the-product-not-a-picture-of-it-3-hero-section-ideas-deliverwebsite-ui</guid><category><![CDATA[React]]></category><category><![CDATA[webdev]]></category><category><![CDATA[Web Design]]></category><category><![CDATA[Frontend Development]]></category><category><![CDATA[UI Design]]></category><dc:creator><![CDATA[Pooja Deliver Website]]></dc:creator><pubDate>Tue, 24 Nov 2026 13:16:17 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0296a36ae1b115eefe8163/7fbb185e-87af-46b6-801e-49e07264e448.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most hero sections spend their best pixels on a picture: a gradient blob, a stock photo, a 3D shape that could belong to any company. Visitors give a page about three seconds. If those seconds go to decoration, the page has to win them back further down, and most visitors never scroll that far.</p>
<p>The heroes that work best do one thing: they <strong>show the product doing its job</strong> in the first screen. Here are three ways to do it, all free on DeliverWebsite UI.</p>
<h2>1. Put the real interface in the hero</h2>
<p>The neo-brutalist CRM hero has a sharp two-line headline on one side and a <strong>live pipeline board</strong> on the other. Teammates drag deals across colour-blocked stages, a won deal bursts into confetti, and the total counts up. Nobody has to imagine what the product does, because it is doing it.</p>
<p>Use this when your product has a screen people will recognise: dashboards, boards, editors, inboxes.</p>
<p><a href="https://ui.deliverwebsite.com/components/hero-sections/neo-brutalist-hero-section/">Neo brutalist hero section</a></p>
<h2>2. Sell the feeling when the product is an experience</h2>
<p>Some products are not a screen. A travel planner sells calm. The painted-sky hero puts a golden-hour sky behind a big serif headline, with one paper plane gliding across. One moving thing, and it stops being decoration because it <em>is</em> the promise: the trip takes care of itself.</p>
<p>Use this when the outcome is a feeling, not a feature list.</p>
<p><a href="https://ui.deliverwebsite.com/components/hero-sections/hero-section-with-painted-sky-background/">Hero section with painted sky background</a></p>
<h2>3. Let the visitor make the comparison</h2>
<p>The before/after section puts a divider across the hero: on one side the same business online in 1999, on the other the same business today. The visitor drags it. Nobody needs convincing that the new version is better, because they made the comparison with their own hand.</p>
<p>Use this for redesigns, upgrades and anything sold as "better than what you have".</p>
<p><a href="https://ui.deliverwebsite.com/components/interactive-sections/before-after/">Before / after slider</a></p>
<h2>The rule behind all three</h2>
<p>Before you add motion to a hero, ask one question: <strong>does it show what the product does?</strong> If it does, keep it and let it stop after a few seconds. If it doesn't, cut it. Every section in DeliverWebsite UI is held to that rule, and every one is free to copy: React, Tailwind CSS and Motion.</p>
<p>Which of the three would you use on your next launch?</p>
<p><em>Written with help from AI. Every component shown is real and free to copy on DeliverWebsite UI.</em></p>
<hr />
<p><em>More from me:</em> <a href="https://www.instagram.com/poojadeliverwebsite/">Instagram</a> · <a href="https://x.com/poojadeliver">X</a> · <a href="https://www.youtube.com/@poojadeliverwebsite">YouTube</a> · <a href="https://medium.com/@poojadeliverwebsite">Medium</a> · <a href="https://substack.com/@poojadeliverwebsite">Substack</a> · <a href="https://www.reddit.com/user/poojadeliverwebsite/">Reddit</a> · <a href="https://in.pinterest.com/poojadeliverwebsite/">Pinterest</a> · <a href="https://ui.deliverwebsite.com/">Free UI library</a></p>
]]></content:encoded></item><item><title><![CDATA[How to Build a Code Rain Background in React With Canvas (Developer Hero Section, Free Template)]]></title><description><![CDATA[Build a Matrix-style code rain behind a developer hero in React: one canvas, colour from CSS, a frame loop that stops off screen. Free component.]]></description><link>https://deliverui.hashnode.dev/how-to-build-a-code-rain-background-in-react-with-canvas-developer-hero-section-free-template</link><guid isPermaLink="true">https://deliverui.hashnode.dev/how-to-build-a-code-rain-background-in-react-with-canvas-developer-hero-section-free-template</guid><category><![CDATA[React]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[canvas]]></category><category><![CDATA[Frontend Development]]></category><dc:creator><![CDATA[Pooja Deliver Website]]></dc:creator><pubDate>Sun, 22 Nov 2026 08:10:11 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0296a36ae1b115eefe8163/4257a34b-f5b5-474f-b87c-2f4c0f6ff9b1.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Developers judge a developer tool's website fast, and they judge it by looking for code. A stock photo of a laptop tells them nothing. An illustration of a rocket tells them less. What they want to see in the first three seconds is: what would I actually write, and does it work?</p>
<p>So for a made-up webhooks product called <strong>Hookvane</strong>, I built a hero section where everything speaks code: the snippet you'd write, a live log of requests landing under it, the install command as a button, and behind all of it, columns of lime code falling slowly down the screen.</p>
<p>This post shows how it's built in React, with the real code, focusing on the code rain: a Matrix-style canvas animation in about 25 lines of drawing, themed by CSS, and cheap enough to leave running behind a hero. The component is free at the end.</p>
<h2>What's in the hero</h2>
<p>Hookvane: "Webhooks that <strong>never miss.</strong>"</p>
<ul>
<li>A tag line in lime mono: "v2.4 · Now with replay"</li>
<li>The headline, white and lime, in Geist</li>
<li>"Receive, verify and retry every webhook from 200+ providers. One endpoint, typed events, zero dropped deliveries."</li>
<li>Two square, monospaced buttons: <strong>Get an API key</strong> (solid lime) and <strong>Read the docs</strong> (outlined)</li>
<li>An install chip: <code>$ npm i @hookvane/sdk</code> with a copy button</li>
<li>A mono facts line: 12.4k GitHub stars · 99.99% delivered · SOC 2 Type II</li>
<li>A row of client logos: "Delivering webhooks for"</li>
<li>On the right: a code pane, <code>listen.ts</code>, with a "live" dot, and under it a log of requests arriving</li>
<li>Behind everything: the code rain</li>
</ul>
<p>The palette is two colours: zinc-950 black and Tailwind's lime-300. Geist for the headline, JetBrains Mono for every detail.</p>
<h2>1. The code rain: the model</h2>
<p>Here's the idea. Split the canvas into columns 18 px wide. Give each column:</p>
<ul>
<li>a <strong>string</strong> of 48 random code characters (hex digits and code punctuation), which repeats down the screen,</li>
<li>a <strong>speed</strong> in lines per second, different for every column,</li>
<li>a <strong>start</strong> offset, so they don't all line up.</li>
</ul>
<pre><code class="language-ts">const COLUMN_PX = 18;
const LINE_PX = 18;
const FPS = 24;
const GLYPHS = "0123456789abcdef{}[]()&lt;&gt;=/;:*+-_$#";
// A column's string is this many glyphs long; it repeats down the screen.
const STRING_LENGTH = 48;

function makeColumns(count: number): Column[] {
  return Array.from({ length: count }, () =&gt; ({
    glyphs: Array.from({ length: STRING_LENGTH }, randomGlyph),
    speed: 0.6 + Math.random() * 1.8,
    start: Math.random() * STRING_LENGTH,
  }));
}
</code></pre>
<p>The glyph set is deliberate. Classic code rain uses katakana; for a developer tool, hex digits and brackets look like real code, so the background reads as "data flowing" rather than "film reference".</p>
<p>Speeds run from 0.6 to 2.4 lines per second. Slow, on purpose: this is a background. Fast rain behind a headline is exhausting to read over.</p>
<h2>2. Drawing a frame</h2>
<p>Each frame, every column draws one character per row. Which character goes in which row depends on how far the column has travelled:</p>
<pre><code class="language-ts">columns.current.forEach((column, index) =&gt; {
  const travelled = column.start + time * column.speed;
  const shift = (travelled % 1) * LINE_PX;
  for (let row = 0; row &lt; rows; row += 1) {
    const position = (row - Math.floor(travelled) + STRING_LENGTH * 1000) % STRING_LENGTH;
    // Brightest at the head of the run (position 0), fading out along it.
    context.globalAlpha = Math.max(0, 0.55 - position / STRING_LENGTH) * 0.7;
    context.fillText(column.glyphs[position], index * COLUMN_PX, row * LINE_PX + shift);
  }
  if (Math.random() &lt; 0.05) column.glyphs[Math.floor(Math.random() * STRING_LENGTH)] = randomGlyph();
});
</code></pre>
<p>Four details make it look right:</p>
<p><strong>The string moves, not the characters.</strong> <code>travelled</code> is how many lines the column has moved since it started. Subtracting its whole part from the row picks which character of the string sits in that row, so the string slides down the screen. The <code>+ STRING_LENGTH * 1000</code> keeps the number positive before the modulo, because JavaScript's <code>%</code> returns negative results for negative numbers.</p>
<p><strong>Smooth, not steppy.</strong> The fractional part of <code>travelled</code> becomes a pixel <code>shift</code>, so the whole column glides between lines instead of jumping 18 px at a time.</p>
<p><strong>A head and a tail.</strong> Alpha is <code>0.55 - position / 48</code>, so position 0 (the head) is brightest and it fades along the string, hitting zero a bit past halfway. Then the string repeats, so each column has bright heads arriving at regular gaps. The <code>* 0.7</code> keeps even the brightest characters quiet.</p>
<p><strong>It flickers like a live stream.</strong> Each frame, each column has a 5% chance of swapping one character. It's subtle, but static strings sliding down look like wallpaper; changing ones look like data.</p>
<h2>3. Colour and font from CSS</h2>
<p>This is my favourite part:</p>
<pre><code class="language-ts">const style = getComputedStyle(context.canvas);
context.clearRect(0, 0, width, height);
context.fillStyle = style.color;
context.font = `12px ${style.fontFamily}`;
</code></pre>
<p>A canvas normally ignores CSS. But the <code>&lt;canvas&gt;</code> element itself still has a computed <code>color</code> and <code>font-family</code>. So the rain reads them, and you theme it with ordinary Tailwind classes:</p>
<pre><code class="language-tsx">&lt;CodeRain className="absolute inset-0 -z-10 size-full mask-radial-from-transparent mask-radial-from-25% mask-radial-to-black mask-radial-to-90% font-code text-lime-300" /&gt;
</code></pre>
<p><code>text-lime-300</code> makes it lime. <code>font-code</code> makes it JetBrains Mono. Switch to <code>text-sky-400</code> and it's blue. No props, no colour strings in the canvas code.</p>
<p>The mask in that class list matters too: a radial mask that's transparent from the centre out to 25% and fully visible from 90%. The rain fades out toward the middle of the hero, so it frames the content instead of fighting it.</p>
<h2>4. A frame loop that knows when to stop</h2>
<p>The drawing runs inside a reusable hook, <code>useCanvasLoop</code>, which handles everything that makes canvas animations expensive or janky:</p>
<pre><code class="language-ts">// Runs `draw` on the canvas at most `fps` times a second. It stops while the canvas is off screen
// or the tab is hidden, and for visitors who ask for reduced motion it draws one still frame.
</code></pre>
<p>What it does:</p>
<ul>
<li><strong>Caps the frame rate.</strong> The rain asks for 24 fps. <code>requestAnimationFrame</code> still ticks at the display's rate, but the hook skips drawing until 1/24 s has passed. On a 120 Hz screen that's 80% less work, and slow rain looks identical at 24 fps.</li>
<li><strong>Sharp but not wasteful.</strong> It sizes the canvas to its box times the device pixel ratio, capped at 2: sharp on retina, without paying for 3× pixels on phones that have them.</li>
<li><strong>Stops when nobody can see it.</strong> An <code>IntersectionObserver</code> pauses it when the hero scrolls away, and it skips frames while the tab is hidden.</li>
<li><strong>Resizes itself.</strong> A <code>ResizeObserver</code> refits the canvas when the layout changes, and the rain makes a new set of columns when the count changes.</li>
<li><strong>Reduced motion.</strong> It draws one still frame and never starts the loop.</li>
</ul>
<p>The hook keeps the latest <code>draw</code> in a ref, so the loop never restarts when the component re-renders.</p>
<h2>5. A log that lands one request at a time</h2>
<p>Under the code pane, a log shows requests arriving: <code>POST /hooks/github/push 200 41ms</code>, then Stripe, and so on. It's driven by a small counting hook:</p>
<pre><code class="language-ts">const LOG_STEP_MS = 1300;
const LOG_HOLD_MS = 2600;

const count = useCycleCount(requests.length, isRunning, { stepMs: LOG_STEP_MS, holdMs: LOG_HOLD_MS });
</code></pre>
<p><code>useCycleCount</code> counts 1, 2, 3… up to the number of requests, one every 1.3 seconds, holds the full list for 2.6 seconds, then starts over. The log shows the first <code>count</code> requests, newest on top. Each row enters with <code>AnimatePresence</code> (fading in from 8 px above) and the rows below slide down with Motion's <code>layout</code> prop.</p>
<p>For reduced motion, the hook returns the full count straight away, so the whole log is visible and nothing moves.</p>
<h2>6. The install command as a button</h2>
<p>The second call to action for a developer tool isn't "Learn more". It's the one command that gets them started:</p>
<pre><code class="language-tsx">&lt;button type="button" onClick={() =&gt; copy(command)} aria-label={`Copy command: ${command}`}&gt;
  &lt;span aria-hidden className={style.prompt}&gt;$&lt;/span&gt;
  &lt;span className="truncate"&gt;{command}&lt;/span&gt;
  ...
  &lt;span role="status" className="sr-only"&gt;{isCopied ? "Copied" : ""}&lt;/span&gt;
&lt;/button&gt;
</code></pre>
<p>Click it and the copy icon turns into a lime check for 1.6 seconds. A hidden status region says "Copied" to screen readers, and the button's label tells them what it copies. In the terminal style, the chip is square with a zinc border that turns lime on hover.</p>
<h2>Design decisions</h2>
<p><strong>Code is the illustration.</strong> The snippet, the log and the rain are all code. For developers, that's the most persuasive picture you can show.</p>
<p><strong>Two colours.</strong> Black and acid lime, nothing else. Lime marks the accent word, the primary button, the method names in the log and the "live" dot.</p>
<p><strong>Square everything.</strong> No rounded corners on buttons or panes. Monospaced, uppercase, widely tracked button labels. It looks like a terminal because the audience lives in one.</p>
<p><strong>Proof in mono.</strong> "12.4k GitHub stars · 99.99% delivered · SOC 2 Type II" in small mono type under the buttons: the three questions a developer asks, answered before they ask.</p>
<h2>Frequently asked questions</h2>
<p><strong>Is this code rain hero free?</strong> Yes. The whole hero is free to copy: the code rain canvas, the code pane, the request log, the command chip and the nav.</p>
<p><strong>What is it built with?</strong> React, Next.js, Tailwind CSS and Motion (Framer Motion), with lucide-react icons. The rain is plain Canvas 2D, no library.</p>
<p><strong>Will the canvas animation slow my page down?</strong> It's built not to. It draws at most 24 times a second, caps the pixel ratio at 2, stops when off screen or in a hidden tab, and draws a single frame for reduced motion.</p>
<p><strong>How do I change the colour of the code rain?</strong> Change the text colour class on the canvas, for example <code>text-sky-400</code> instead of <code>text-lime-300</code>. The canvas reads its colour and font from CSS.</p>
<p><strong>Can I use katakana like the classic effect?</strong> Yes. Change the <code>GLYPHS</code> string to any characters you like. Make sure your font has them.</p>
<p><strong>Does it work on mobile?</strong> Yes. The layout stacks to one column, the canvas resizes with its box, and the rain keeps its 18 px columns, so phones just get fewer of them.</p>
<h2>Get the component</h2>
<p>The whole hero is free to copy: <a href="https://ui.deliverwebsite.com/components/hero-sections/developer-hero-section-with-code-rain/"><strong>developer hero section with code rain →</strong></a></p>
<p>I'm building a free library of animated React components and landing pages at <a href="http://ui.deliverwebsite.com">ui.deliverwebsite.com</a>. Follow for one new component every day.</p>
<hr />
<p><em>More from me:</em> <a href="https://www.instagram.com/poojadeliverwebsite/">Instagram</a> · <a href="https://x.com/poojadeliver">X</a> · <a href="https://www.youtube.com/@poojadeliverwebsite">YouTube</a> · <a href="https://medium.com/@poojadeliverwebsite">Medium</a> · <a href="https://substack.com/@poojadeliverwebsite">Substack</a> · <a href="https://www.reddit.com/user/poojadeliverwebsite/">Reddit</a> · <a href="https://in.pinterest.com/poojadeliverwebsite/">Pinterest</a> · <a href="https://ui.deliverwebsite.com/">Free UI library</a></p>
]]></content:encoded></item></channel></rss>