Skip to content
Logo LogoDuck Framework
Explore the Main Site
⌘ K
Logo LogoDuck Framework
Explore the Main Site

Getting Started

  • Getting Started
  • Project Structure
  • Settings Configuration
  • Build a Reactive Chat App in 5 Minutes
  • Simple Counter App
  • Micro Applications

Command Line Interface

  • Duck Sync

Core Concepts

  • Templates
  • Template Tags & Filters
  • Lively UI
  • Blueprints
  • Duck Shortcuts
  • Duck Utilities

Reactivity & Real-Time

  • WebSockets Support
  • Socket I/O (xsocket)
  • Cached Views
  • Component Caching Utilities
  • Background Thread & Asyncio Loop Managers
  • Task Automations

Networking & Protocols

  • Web Server Gateway (WSGI)
  • Asynchronous Server Gateway (ASGI)
  • HTTP/2 and HTTPS
  • Free SSL Certificate

Request Handling & Auth

  • Request & Response
  • Duck Middlewares
  • Authentication
  • JWT in Duck
  • Sessions in Duck

Data Layer & Integrations

  • Database
  • Django Integration
  • Duck MCP (Model Context Protocol) Support
  • Sitemap

Deployment & Operations

  • Deployment Guide
  • Duck System Monitor
  • Duck Dashboard
  • Duck Service Management
  • Duck Logging System

Reference

  • AI Agent Guidelines
    • Agents.md
    • General Code Style Guide
    • Duck Project Guide
    • HTML Components Guide
    • Security Guide
  • Changelog

API Documentation

  • API Reference
    • duck
Duck Framework
/
API Reference
/
duck
/
duck.etc
/
duck.etc.blueprints
/
duck.etc.blueprints.welcome
/
duck.etc.blueprints.welcome.ui
/
duck.etc.blueprints.welcome.ui.components
/
duck.etc.blueprints.welcome.ui.components.links_section

duck.etc.blueprints.welcome.ui.components.links_section¶

LinksSection component — three large link cards pointing to the official Duck Framework site, documentation, and contribution page.

Module Contents¶

Classes¶

LinksSection

Renders the three primary outbound links as interactive cards.

API¶

class duck.etc.blueprints.welcome.ui.components.links_section.LinksSection(element: Optional[str] = None, properties: Optional[Dict[str, str]] = None, props: Optional[Dict[str, str]] = None, style: Optional[Dict[str, str]] = None, inner_html: Optional[Union[str, str, float]] = None, children: Optional[List[duck.html.components.HtmlComponent]] = None, **kwargs)[source]¶

Bases: duck.html.components.InnerComponent

Renders the three primary outbound links as interactive cards.

Each card has a colored ambient glow on hover and an arrow that shifts on hover to suggest navigation.

Initialization

Initialize an HTML component.

Parameters:
  • element – The HTML element tag name (e.g., textarea, input, button). Can be None, but make sure element is returned by get_element method.

  • accept_inner_html – Whether the HTML component accepts an inner body (e.g., inner-body-here).

  • inner_html – Inner html to add to the HTML component. Defaults to None.

  • properties – Dictionary for properties to initialize the component with.

  • props – Just same as properties argument (added for simplicity).

  • style – Dictionary for style to initialize the component with.

  • event_handlers – Events to automatically bind. Each dictionary maps an event name to its handler and may include additional keyword arguments forwarded to bind(), e.g. event_handlers=[{"click": on_button_click, **extra_kwargs}].

  • **kwargs – Extra keyword arguments

Raises:

HtmlComponentError – If ‘element’ is not a string or ‘inner_html’ is set but ‘accept_inner_html’ is False.

LINKS¶

[(‘🌐’, ‘Official Site’, ‘Explore the Duck Framework homepage — overview, showcase, and the latest fr…

arrow_icon() → str[source]¶

Returns an inline SVG arrow icon for link cards.

Returns:

SVG string.

build_link_card(icon: str, title: str, desc: str, url: str, accent: str, glow: str) → duck.html.components.container.Container[source]¶

Returns a single outbound link card.

Parameters:
  • icon – Emoji icon shown at the top of the card.

  • title – Card heading text.

  • desc – Short description of the destination.

  • url – The external URL the card links to.

  • accent – CSS color for the arrow and hover accent.

  • glow – CSS rgba color for the radial hover glow.

Returns:

A Container rendered as an anchor element.

get_element() → str[source]¶
Returns:

The HTML element tag for this component.

on_create() → None[source]¶

Builds the section label and the three link cards.

duck.etc.blueprints.welcome.ui.components.hero
duck.etc.blueprints.welcome.ui.components.nav_footer

On this page

  • Module Contents
    • Classes
    • API
      • LinksSection
        • LinksSection.LINKS
        • LinksSection.arrow_icon()
        • LinksSection.build_link_card()
        • LinksSection.get_element()
        • LinksSection.on_create()

© 2026, Duck Framework Built with Sphinx 8.2.3