Hero
Convert from the first scroll — headline, value prop, dual CTAs, announcement pill, and split-media layouts.
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.
Quick start
Drop this into your page's front matter, under the sections list. Edit the values, and HugoBlox renders the block — no build step.
- 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
A modern, developer-focused hero section optimized for dark mode with gradient effects, animated backgrounds, and flexible layouts.
- 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"
- 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
| Parameter | Type | Default | Description |
|---|---|---|---|
username | string | me | Author folder to pull data from |
title | string | - | Override author title |
tagline | string | - | Override author role |
bio | string | - | Override author bio |
greeting | string | - | Text above the name |
name_prefix | string | - | Prefix before name (styled differently) |
show_status | boolean | false | Show emoji status badge (uses author's status.icon) |
show_scroll_indicator | boolean | false | Show scroll prompt |
social | array | - | Override author social links |
cta_buttons | array | - | Call-to-action buttons |
| Parameter | Type | Default | Description |
|---|---|---|---|
style | string | centered | Layout style (centered or split) |
avatar_shape | string | circle | Avatar shape (circle or rounded) |
The block automatically detects icons for these networks:
github → GitHub logolinkedin → LinkedIn logotwitter → X (Twitter) logoemail → Envelope iconOther networks will use a generic link icon unless you specify a custom icon.
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"
The block automatically pulls from /data/authors/{username}.yaml:
name.display → Namerole → Tagline/rolebio → Short biographylinks → Social linksavatar → Profile imagestatus.icon → Emoji badge (shown when show_status: true)Status Emoji Examples:
# In data/authors/me.yaml
status:
icon: "💻" # Developer
# Or: 🎨 Designer, 🚀 Entrepreneur, 🔬 Researcher, 🎓 Student
The block includes:
Flexibility
Switch the block's design with these presets — no custom CSS.
styleLayout styleavatar_shapeAvatar shapeReference
Every option the Dev Hero block accepts, generated from its schema.
Properties set under the block's content key.
| Property | Type | Default | Description |
|---|---|---|---|
username | string | me | Author username to pull data from (matches folder name in /authors/) |
title | string | — | Override name/title (falls back to author title) |
tagline | string | — | Override role/tagline (falls back to author role) |
bio | string | — | Override bio text (falls back to author bio) |
greeting | string | — | Small greeting text above the name |
name_prefix | string | — | Prefix before the name (styled differently) |
show_status | boolean | false | Show status emoji badge on avatar (uses author's status.icon from profile) |
show_scroll_indicator | boolean | false | Show scroll down indicator at bottom |
scroll_target | string | #projects | CSS selector for scroll indicator target |
links | object[] | — | Override social links (falls back to author links) |
links[].iconrequired | string | — | Icon identifier |
links[].urlrequired | string | — | Link URL |
links[].label | string | — | Link label/title |
cta_buttons | object[] | — | Call-to-action buttons |
cta_buttons[].textrequired | string | — | Button text |
cta_buttons[].urlrequired | string | — | Button URL |
cta_buttons[].icon | string | — | Button icon (optional) |
typewriter | object | — | Typewriter animation for cycling through roles/taglines |
typewriter.enable | boolean | false | Enable typewriter effect |
typewriter.strings | string[] | — | Array of strings to cycle through |
typewriter.prefix | string | — | Static text before the animated part |
typewriter.type_speed | integer | 80 | Typing speed in milliseconds per character |
typewriter.delete_speed | integer | 50 | Delete speed in milliseconds per character |
typewriter.pause_time | integer | 2000 | Pause time in milliseconds before deleting |
Properties set under the block's design key — shared background, spacing, and color settings apply on top.
| Property | Type | Default | Description |
|---|---|---|---|
style | centered | split | centered | Layout style |
avatar_shape | circle | rounded | circle | Avatar shape |
animations | boolean | false | Enable scroll and typewriter animations |
Frequently asked
Ready to build with the Dev Hero block?
More blocks like this