hugoblox.com/blocks/dev-hero
HeroFree · MITHugo

Dev Hero block

A dark-mode, developer-focused hero with gradient effects, social links, and call-to-action buttons.

Add it to any Hugo page's sections list — no build step.

v1.0.0Version
24Options
MITLicense

Quick start

Add the Dev Hero block

Drop this into your page's front matter, under the sections list. Edit the values, and HugoBlox renders the block — no build step.

Add to your page's sections
- block: dev-hero
  id: hero
  content:
    username: me
    greeting: Hi, I'm
    show_status: true
    show_scroll_indicator: true
    cta_buttons:
      - text: View My Work
        url: "#projects"
        icon: arrow-down
      - text: Get In Touch
        url: "#contact"
        icon: envelope
  design:
    style: centered
    avatar_shape: circle
    background:
      color:
        dark: "#0a0a0f"

Overview

About the Dev Hero block

A modern, developer-focused hero section optimized for dark mode with gradient effects, animated backgrounds, and flexible layouts.

Features

  • Gradient Text: Name displayed with beautiful gradient styling
  • Animated Background: Floating orbs with subtle grid pattern
  • Social Links: Automatic icon detection for common platforms
  • CTA Buttons: Primary and secondary button styling
  • Two Layouts: Centered or split (avatar on side) layouts
  • Author Integration: Pulls data from author profiles
  • Emoji Status Badge: Optional personalized emoji on avatar (💻 developer, 🎨 designer, 🚀 startup, etc.)
  • Scroll Indicator: Optional animated scroll prompt

Usage

Centered Layout (Default)

- block: dev-hero
  id: hero
  content:
    username: me
    greeting: "Hi, I'm"
    show_status: true
    show_scroll_indicator: true
    cta_buttons:
      - text: View My Work
        url: "#projects"
        icon: arrow-down
      - text: Get In Touch
        url: "#contact"
        icon: envelope
  design:
    style: centered
    avatar_shape: circle
    background:
      color:
        dark: "#0a0a0f"

Split Layout

- block: dev-hero
  id: hero
  content:
    username: me
    greeting: "Hello, I'm"
    cta_buttons:
      - text: View Projects
        url: "#projects"
      - text: Download Resume
        url: "/resume.pdf"
        icon: document-arrow-down
  design:
    style: split
    avatar_shape: rounded

Parameters

Content

ParameterTypeDefaultDescription
usernamestringmeAuthor folder to pull data from
titlestring-Override author title
taglinestring-Override author role
biostring-Override author bio
greetingstring-Text above the name
name_prefixstring-Prefix before name (styled differently)
show_statusbooleanfalseShow emoji status badge (uses author's status.icon)
show_scroll_indicatorbooleanfalseShow scroll prompt
socialarray-Override author social links
cta_buttonsarray-Call-to-action buttons

Design

ParameterTypeDefaultDescription
stylestringcenteredLayout style (centered or split)
avatar_shapestringcircleAvatar shape (circle or rounded)

Social Networks

The block automatically detects icons for these networks:

  • github → GitHub logo
  • linkedin → LinkedIn logo
  • twitter → X (Twitter) logo
  • email → Envelope icon

Other networks will use a generic link icon unless you specify a custom icon.

CTA Buttons

The first button is styled as primary (filled), subsequent buttons are secondary (outlined).

cta_buttons:
  - text: Primary Button
    url: "#action"
    icon: arrow-right  # optional
  - text: Secondary Button
    url: "#other"

Author Data

The block automatically pulls from /data/authors/{username}.yaml:

  • name.display → Name
  • role → Tagline/role
  • bio → Short biography
  • links → Social links
  • avatar → Profile image
  • status.icon → Emoji badge (shown when show_status: true)

Status Emoji Examples:

# In data/authors/me.yaml
status:
  icon: "💻"  # Developer
  # Or: 🎨 Designer, 🚀 Entrepreneur, 🔬 Researcher, 🎓 Student

Styling

The block includes:

  • Animated gradient orbs in the background
  • Subtle grid pattern overlay
  • Gradient text effect on the name
  • Glass morphism social buttons
  • Primary/secondary CTA button styles

Flexibility

Layouts & variants

Switch the block's design with these presets — no custom CSS.

styleLayout style
centereddefaultsplit
avatar_shapeAvatar shape
circledefaultrounded

Reference

Configuration

Every option the Dev Hero block accepts, generated from its schema.

Content options

Properties set under the block's content key.

PropertyTypeDefaultDescription
usernamestringmeAuthor username to pull data from (matches folder name in /authors/)
titlestringOverride name/title (falls back to author title)
taglinestringOverride role/tagline (falls back to author role)
biostringOverride bio text (falls back to author bio)
greetingstringSmall greeting text above the name
name_prefixstringPrefix before the name (styled differently)
show_statusbooleanfalseShow status emoji badge on avatar (uses author's status.icon from profile)
show_scroll_indicatorbooleanfalseShow scroll down indicator at bottom
scroll_targetstring#projectsCSS selector for scroll indicator target
linksobject[]Override social links (falls back to author links)
links[].iconrequiredstringIcon identifier
links[].urlrequiredstringLink URL
links[].labelstringLink label/title
cta_buttonsobject[]Call-to-action buttons
cta_buttons[].textrequiredstringButton text
cta_buttons[].urlrequiredstringButton URL
cta_buttons[].iconstringButton icon (optional)
typewriterobjectTypewriter animation for cycling through roles/taglines
typewriter.enablebooleanfalseEnable typewriter effect
typewriter.stringsstring[]Array of strings to cycle through
typewriter.prefixstringStatic text before the animated part
typewriter.type_speedinteger80Typing speed in milliseconds per character
typewriter.delete_speedinteger50Delete speed in milliseconds per character
typewriter.pause_timeinteger2000Pause time in milliseconds before deleting

Design options

Properties set under the block's design key — shared background, spacing, and color settings apply on top.

PropertyTypeDefaultDescription
stylecentered | splitcenteredLayout style
avatar_shapecircle | roundedcircleAvatar shape
animationsbooleanfalseEnable scroll and typewriter animations

Frequently asked

Dev Hero block FAQ

  • Add a "block: dev-hero" entry to the sections list in your page's front matter, then fill in the content fields. HugoBlox renders it automatically — copy the example config above as a starting point.

Ready to build with the Dev Hero block?