DEV3 Technologies home

Link-in-bio profile layout

A single-column mobile-first link page with avatar, bio, social icon row and a stack of large tappable link buttons.

Tailwind CSSLayoutslink-in-bioprofilemobilebuttons

Live preview

Code

How it works

What it solves

A link-in-bio page is opened almost exclusively from a phone, from inside an app browser. It needs one centered column, big tap targets and no clutter, so visitors can reach the right destination in a single thumb press.

How it works

main is a flex column limited to max-w-md and at least the full screen height, so the footer can be pushed to the bottom with mt-auto. The avatar has explicit width and height attributes to reserve space and avoid layout shift, plus a ring that makes it pop from the gradient background. Social icons live in a labelled list; each link has an aria-label because the visible text is just initials.

The links are block level anchors with generous vertical padding, giving a tap area well above the 44 pixel guideline. The first link uses a filled style to signal the primary action, and a small hover lift gives pointer users feedback without needing any script.

Adapting it

  • Loop your stored links into the nav and mark the featured one in the data.
  • Swap the initials for inline SVG icons.
  • Change the gradient colours to match the owner's theme setting.

Pitfalls

  • Keep link labels short; long text wraps and breaks the rhythm.
  • Add rel="noopener" if links open in a new tab.
  • Serve a correctly sized avatar, around 192 pixels, to keep first paint quick.

How to use it

  1. Add the markup as the public view for a profile.
  2. Output the avatar, name, bio and social links from your user record.
  3. Loop the owner's links into the nav, giving the first one the filled classes.
  4. Load Tailwind CSS 4 on the page and keep the viewport meta tag set.

Licence: DEV3 Snippet Licence. Free to use, change and ship in personal and commercial projects. Attribution is appreciated, not required. Please do not redistribute snippets as a collection.

Related snippets