askrobots / dbbasic-web-native
Public
100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.
danq9
Add canonical.html v1.0 - The single source of truth for usability standards
fb6e650
1 year ago
History
demo-hero-showcase.html · 8.2 KB · 173 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>Hero Sections Showcase - Semantic Components</title> |
| 7 | <script src="semantic-components.js"></script> |
| 8 | <style> |
| 9 | * { |
| 10 | margin: 0; |
| 11 | padding: 0; |
| 12 | box-sizing: border-box; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; |
| 17 | line-height: 1.6; |
| 18 | color: #333; |
| 19 | } |
| 20 | |
| 21 | .section-label { |
| 22 | background: #f0f0f0; |
| 23 | padding: 16px 32px; |
| 24 | border-bottom: 2px solid #e0e0e0; |
| 25 | font-size: 14px; |
| 26 | font-weight: 600; |
| 27 | color: #666; |
| 28 | text-transform: uppercase; |
| 29 | letter-spacing: 1px; |
| 30 | } |
| 31 | |
| 32 | /* Demo image placeholder */ |
| 33 | .demo-image { |
| 34 | width: 100%; |
| 35 | height: auto; |
| 36 | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 37 | aspect-ratio: 16/9; |
| 38 | border-radius: 12px; |
| 39 | display: flex; |
| 40 | align-items: center; |
| 41 | justify-content: center; |
| 42 | color: white; |
| 43 | font-size: 24px; |
| 44 | font-weight: 600; |
| 45 | } |
| 46 | |
| 47 | /* Gradient backgrounds for demo */ |
| 48 | .gradient-purple { |
| 49 | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 50 | } |
| 51 | |
| 52 | .gradient-blue { |
| 53 | background: linear-gradient(135deg, #667eea 0%, #2193b0 100%); |
| 54 | } |
| 55 | |
| 56 | .gradient-orange { |
| 57 | background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); |
| 58 | } |
| 59 | |
| 60 | .gradient-green { |
| 61 | background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); |
| 62 | } |
| 63 | </style> |
| 64 | </head> |
| 65 | <body> |
| 66 | <!-- Variant 1: Centered Hero --> |
| 67 | <div class="section-label">Variant 1: Centered Hero (Default)</div> |
| 68 | <semantic-hero variant="centered" height="medium" class="gradient-purple"> |
| 69 | <h1 slot="heading">Ship Faster with Better Components</h1> |
| 70 | <p slot="subheading" style="color: rgba(255,255,255,0.95);">Build modern web applications with semantic, accessible components that work everywhere. No framework required.</p> |
| 71 | <div slot="actions"> |
| 72 | <semantic-action intent="primary" size="large">Get Started Free</semantic-action> |
| 73 | <semantic-action intent="neutral" size="large" variant="outline" style="--action-text: white; --action-border: white;">View Demo</semantic-action> |
| 74 | </div> |
| 75 | </semantic-hero> |
| 76 | |
| 77 | <!-- Variant 2: Split Hero --> |
| 78 | <div class="section-label">Variant 2: Split Hero (Content + Image)</div> |
| 79 | <semantic-hero variant="split" height="medium"> |
| 80 | <semantic-badge slot="badge" intent="success">New Release</semantic-badge> |
| 81 | <h1 slot="heading">The Modern Way to Build Interfaces</h1> |
| 82 | <p slot="subheading">Create beautiful, accessible web applications with our semantic component library. No learning curve, just better HTML.</p> |
| 83 | <div slot="actions"> |
| 84 | <semantic-action intent="primary" size="large">Start Building</semantic-action> |
| 85 | <semantic-action intent="neutral" size="large">Documentation</semantic-action> |
| 86 | </div> |
| 87 | <div slot="image" class="demo-image">Product Screenshot</div> |
| 88 | </semantic-hero> |
| 89 | |
| 90 | <!-- Variant 3: Minimal Hero --> |
| 91 | <div class="section-label">Variant 3: Minimal Hero (Clean & Focused)</div> |
| 92 | <semantic-hero variant="minimal" height="medium"> |
| 93 | <h1 slot="heading">Simple.</h1> |
| 94 | <p slot="subheading">Everything you need, nothing you don't.</p> |
| 95 | <div slot="actions"> |
| 96 | <semantic-action intent="primary" size="large">Get Access</semantic-action> |
| 97 | </div> |
| 98 | </semantic-hero> |
| 99 | |
| 100 | <!-- Variant 4: Background Image Hero --> |
| 101 | <div class="section-label">Variant 4: Background Image Hero</div> |
| 102 | <semantic-hero variant="background" height="large" class="gradient-blue"> |
| 103 | <semantic-badge slot="badge" intent="neutral" variant="outline" style="--badge-text: white; --badge-border: white;">Limited Time Offer</semantic-badge> |
| 104 | <h1 slot="heading">Premium Components,<br>Zero Cost</h1> |
| 105 | <p slot="subheading">What others charge $299 for, we give away free. Join thousands of developers building better web experiences.</p> |
| 106 | <div slot="actions"> |
| 107 | <semantic-action intent="primary" size="large">Get Started</semantic-action> |
| 108 | <semantic-action intent="neutral" size="large" variant="outline" style="--action-text: white; --action-border: white;">Learn More</semantic-action> |
| 109 | </div> |
| 110 | </semantic-hero> |
| 111 | |
| 112 | <!-- Centered with different heights --> |
| 113 | <div class="section-label">Size Variants: Small Height</div> |
| 114 | <semantic-hero variant="centered" height="small" class="gradient-orange"> |
| 115 | <h1 slot="heading" style="font-size: 40px;">Compact Hero</h1> |
| 116 | <p slot="subheading" style="color: white;">Perfect for secondary pages</p> |
| 117 | <div slot="actions"> |
| 118 | <semantic-action intent="primary">Learn More</semantic-action> |
| 119 | </div> |
| 120 | </semantic-hero> |
| 121 | |
| 122 | <div class="section-label">Size Variants: Full Viewport Height</div> |
| 123 | <semantic-hero variant="centered" height="large" class="gradient-green"> |
| 124 | <h1 slot="heading">Make an Impact</h1> |
| 125 | <p slot="subheading" style="color: white;">Full viewport height for maximum impact on landing pages</p> |
| 126 | <div slot="actions"> |
| 127 | <semantic-action intent="primary" size="large">Take Action</semantic-action> |
| 128 | <semantic-action intent="neutral" size="large" variant="outline" style="--action-text: white; --action-border: white;">Watch Video</semantic-action> |
| 129 | </div> |
| 130 | </semantic-hero> |
| 131 | |
| 132 | <!-- Split variant reversed --> |
| 133 | <div class="section-label">Split Variant: With Real Content</div> |
| 134 | <semantic-hero variant="split" height="medium" style="background: #f8f9fa;"> |
| 135 | <h1 slot="heading">Components That Just Work</h1> |
| 136 | <p slot="subheading">Every component is tested with AI to ensure perfect accessibility, responsiveness, and usability. No surprises, just quality.</p> |
| 137 | <div slot="actions"> |
| 138 | <semantic-action intent="primary" size="large">View Components</semantic-action> |
| 139 | <semantic-action intent="neutral" size="large">See Examples</semantic-action> |
| 140 | </div> |
| 141 | <svg slot="image" viewBox="0 0 400 300" style="width: 100%; height: auto; max-width: 500px;"> |
| 142 | <rect width="400" height="300" fill="#667eea" rx="12"/> |
| 143 | <rect x="40" y="40" width="120" height="80" fill="white" opacity="0.3" rx="8"/> |
| 144 | <rect x="180" y="40" width="180" height="80" fill="white" opacity="0.3" rx="8"/> |
| 145 | <rect x="40" y="140" width="180" height="120" fill="white" opacity="0.3" rx="8"/> |
| 146 | <rect x="240" y="140" width="120" height="120" fill="white" opacity="0.3" rx="8"/> |
| 147 | <text x="200" y="150" text-anchor="middle" fill="white" font-size="24" font-weight="bold">Component Grid</text> |
| 148 | </svg> |
| 149 | </semantic-hero> |
| 150 | |
| 151 | <!-- Minimal with different alignment --> |
| 152 | <div class="section-label">Minimal Variant: Left Aligned</div> |
| 153 | <semantic-hero variant="minimal" height="medium" align="left" style="background: linear-gradient(to right, #f8f9fa, white);"> |
| 154 | <h1 slot="heading" style="color: #333;">Start Today</h1> |
| 155 | <p slot="subheading" style="color: #666;">No credit card required. No hidden fees.</p> |
| 156 | <div slot="actions"> |
| 157 | <semantic-action intent="primary" size="large">Sign Up Free</semantic-action> |
| 158 | </div> |
| 159 | </semantic-hero> |
| 160 | |
| 161 | <div style="padding: 80px 32px; text-align: center; background: #f0f0f0;"> |
| 162 | <h2 style="margin-bottom: 16px;">Hero Component Showcase</h2> |
| 163 | <p style="color: #666; max-width: 600px; margin: 0 auto;"> |
| 164 | These premium hero sections compete with what Tailwind UI charges $299 for. |
| 165 | All variants are fully responsive, accessible (WCAG AAA), and work without any framework. |
| 166 | </p> |
| 167 | <div style="margin-top: 32px;"> |
| 168 | <semantic-action intent="primary" onclick="window.location='demo-saas-landing.html'">View Full Demo</semantic-action> |
| 169 | <semantic-action intent="neutral" onclick="window.location='index.html'">Back to Components</semantic-action> |
| 170 | </div> |
| 171 | </div> |
| 172 | </body> |
| 173 | </html> |