Skip to content

ScifiHeaderSurge

WASM Powered
Star
👑Pioneer

Scifi Header - Surge is the debut flagship header component in the TechUI Scifi series.

It represents the pinnacle of the series' visual hierarchy. It adopts a complex design language featuring "Multi-layer Geometry" and "Surging Motion". Structurally, it is built from multiple groups of precise SVG graphics, flanked by iconic energy scale decorations, appearing as if data is surging towards the center.

As a heavy-duty component with independent entrance animations and continuous dynamic lighting effects, it is born to command the scene. It is perfectly suited as the Main Title for Data Visualization Screens or a System Core Header, capable of instantly establishing the sci-fi tone of the interface and becoming the absolute visual anchor.

Tip: This component can be invoked via ScifiHeaderA1 or its semantic alias ScifiHeaderSurge.

Basic Usage

Default Form (Default)

By default, the component enables entrance animations and flowing light effects. Pass the title text through the default slot.

vue
<template>
  <div class="box">
    <ScifiHeaderSurge>TechUI Visualization</ScifiHeaderSurge>
  </div>
</template>

Dashboard Style (Dashboard)

By adjusting decorationColorAlt (decoration color variant) and gradientReverse (gradient reverse), you can achieve a more stable visual style suitable for dashboards.

vue
<template>
  <ScifiHeaderSurge 
    :width="550"
    :decorationColorAlt="true"
    :gradientReverse="true"
  >
    Dashboard Monitor
  </ScifiHeaderSurge>
</template>

Static & Glow (Static & Glow)

In performance-sensitive scenarios or where low distraction is needed, you can disable animation and the background gradient, and instead enable the glow (outer glow) effect to create a quiet sense of technology.

vue
<template>
  <ScifiHeaderSurge 
    :animation="false"
    :gradientBackground="false"
    :glow="true"
    :glowOpacity="0.6"
  >
    System Status
  </ScifiHeaderSurge>
</template>

Advanced Configuration

Minimalist Mode

By turning off the decorative elements decoration and combining it with scale scaling, it can be used as a header for ordinary modules.

vue
<template>
  <ScifiHeaderSurge 
    :decoration="false"
    :scale="0.7"
    :aniDuration="1" 
  >
    Module A
  </ScifiHeaderSurge>
</template>

Custom Styles

The component exposes a full set of CSS variables. You can easily modify the color scheme to match specific themes (such as a red warning theme) via a custom class name.

vue
<template>
  <ScifiHeaderSurge className="sfh-danger">
    WARNING
  </ScifiHeaderSurge>
</template>

<style lang="less">
.sfh-danger {
  --sf-header-bg: #4a0000;      /* Dark red background */
  --sf-header-bg_alt: #ff0000;  /* Bright red auxiliary */
  --sf-header-bd: #ff4d4f;      /* Red border */
  --sf-header-fc: #ffffff;
  --sf-header-fc_alt: #eba447;
  --sf-header-glow: #ff0000;    /* Red glow */
  --sf-header-hlite: #b81f14;
  --sf-header-focus: #eba447;
}
</style>

API Reference

Props

Property NameDescriptionTypeDefault
widthTotal header width (px). WASM will redraw paths based on this valueNumbernull (Adaptive)
animationWhether to enable surging animationBooleantrue
aniDurationAnimation cycle duration (seconds)Numbernull (Default CSS 6s)
decorationWhether to show the decorative strip at the center bottomBooleantrue
decorationColorAltWhether to enable variant coloring for decorationsBooleanfalse
gradientBackgroundWhether to enable background gradient colorBooleantrue
gradientReverseWhether to reverse the direction of the background gradientBooleanfalse
glowWhether to enable SVG outer glow filter (High performance cost, use as needed)Booleanfalse
glowOpacityOpacity of the outer glow (0-1)Number
shadowTypeShadow mode: 'drop' (Drop shadow), 't3d' (3D thickness), 'none'String'drop'
scaleOverall component scaling ratioNumber1
classNameCustom container class nameString

Slots

Slot NameDescription
defaultTitle text content

CSS Variables

Variable NameDescriptionDefault Reference
--sf-header-lhHeader line height / Base height60px
--sf-header-ffFont FamilyImpact
--sf-header-bgMain background color (Gradient start)var(--scifi-header-bg)
--sf-header-bg_altAuxiliary background color (Gradient end)var(--scifi-header-bg_alt)
--sf-header-bgopBackground opacityvar(--cpt-header-bgop, 1)
--sf-header-bdBorder line colorvar(--scifi-bd)
--sf-header-bdwBorder line widthvar(--scifi-bdw, 1px)
--sf-header-fcMain text colorvar(--scifi-header-fc)
--sf-header-fc_altAuxiliary text / Decoration element colorvar(--scifi-header-fc_alt)
--sf-header-hliteHighlight Color.var(--scifi-header-hlite)
--sf-header-focusFocus Color.var(--scifi-header-focus)
--sf-header-glowInner glow colorvar(--scifi-hlite)
--sf-header-glowopInner glow opacityvar(--cpt-header-glowop, var(--shadow-inset-op, .5))
--sf-header-shadowContainer shadowvar(--shadow-weak)
--sf-header-scaleOverall scaling ratio (CSS level)var(--cpt-header-scale, 1)
--sf-header-anidurAnimation loop durationvar(--cpt-header-anidur, 6s)

Released under the MIT License.