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
test-layout-components.html · 25.8 KB · 531 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>Layout Components Test - Semantic Components</title> |
| 7 | <script src="semantic-components.js"></script> |
| 8 | <style> |
| 9 | body { |
| 10 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; |
| 11 | margin: 0; |
| 12 | padding: 40px 0; |
| 13 | background: #f5f5f5; |
| 14 | } |
| 15 | |
| 16 | .test-section { |
| 17 | margin-bottom: 60px; |
| 18 | } |
| 19 | |
| 20 | .test-section h2 { |
| 21 | margin-bottom: 8px; |
| 22 | color: #333; |
| 23 | } |
| 24 | |
| 25 | .test-section p { |
| 26 | margin-bottom: 24px; |
| 27 | color: #666; |
| 28 | } |
| 29 | |
| 30 | .demo-box { |
| 31 | background: white; |
| 32 | padding: 20px; |
| 33 | border-radius: 8px; |
| 34 | box-shadow: 0 2px 8px rgba(0,0,0,0.1); |
| 35 | margin-bottom: 20px; |
| 36 | } |
| 37 | |
| 38 | .demo-item { |
| 39 | background: #e3f2fd; |
| 40 | padding: 16px; |
| 41 | border-radius: 4px; |
| 42 | border-left: 4px solid #2196f3; |
| 43 | } |
| 44 | |
| 45 | .code-block { |
| 46 | background: #263238; |
| 47 | color: #aed581; |
| 48 | padding: 16px; |
| 49 | border-radius: 4px; |
| 50 | margin-top: 12px; |
| 51 | font-family: 'Courier New', monospace; |
| 52 | font-size: 14px; |
| 53 | overflow-x: auto; |
| 54 | } |
| 55 | |
| 56 | semantic-action { |
| 57 | margin: 4px; |
| 58 | } |
| 59 | </style> |
| 60 | </head> |
| 61 | <body> |
| 62 | <semantic-container size="xlarge"> |
| 63 | <h1 style="margin-bottom: 32px; text-align: center;">Layout Components Test Suite</h1> |
| 64 | |
| 65 | <!-- ======================================== --> |
| 66 | <!-- SEMANTIC-STACK TESTS --> |
| 67 | <!-- ======================================== --> |
| 68 | <div class="test-section"> |
| 69 | <h2>semantic-stack</h2> |
| 70 | <p>Vertical or horizontal stacking with consistent spacing</p> |
| 71 | |
| 72 | <!-- Vertical Stack --> |
| 73 | <div class="demo-box"> |
| 74 | <h3>Vertical Stack (default)</h3> |
| 75 | <semantic-stack spacing="4"> |
| 76 | <div class="demo-item">Item 1</div> |
| 77 | <div class="demo-item">Item 2</div> |
| 78 | <div class="demo-item">Item 3</div> |
| 79 | </semantic-stack> |
| 80 | <div class="code-block"><semantic-stack spacing="4">...</semantic-stack></div> |
| 81 | </div> |
| 82 | |
| 83 | <!-- Horizontal Stack --> |
| 84 | <div class="demo-box"> |
| 85 | <h3>Horizontal Stack</h3> |
| 86 | <semantic-stack direction="horizontal" spacing="3"> |
| 87 | <div class="demo-item">Item 1</div> |
| 88 | <div class="demo-item">Item 2</div> |
| 89 | <div class="demo-item">Item 3</div> |
| 90 | </semantic-stack> |
| 91 | <div class="code-block"><semantic-stack direction="horizontal" spacing="3">...</semantic-stack></div> |
| 92 | </div> |
| 93 | |
| 94 | <!-- Different Spacing --> |
| 95 | <div class="demo-box"> |
| 96 | <h3>Different Spacing Values</h3> |
| 97 | <semantic-grid cols="3" gap="4"> |
| 98 | <div> |
| 99 | <h4>spacing="1"</h4> |
| 100 | <semantic-stack spacing="1"> |
| 101 | <div class="demo-item">Item</div> |
| 102 | <div class="demo-item">Item</div> |
| 103 | </semantic-stack> |
| 104 | </div> |
| 105 | <div> |
| 106 | <h4>spacing="4"</h4> |
| 107 | <semantic-stack spacing="4"> |
| 108 | <div class="demo-item">Item</div> |
| 109 | <div class="demo-item">Item</div> |
| 110 | </semantic-stack> |
| 111 | </div> |
| 112 | <div> |
| 113 | <h4>spacing="8"</h4> |
| 114 | <semantic-stack spacing="8"> |
| 115 | <div class="demo-item">Item</div> |
| 116 | <div class="demo-item">Item</div> |
| 117 | </semantic-stack> |
| 118 | </div> |
| 119 | </semantic-grid> |
| 120 | </div> |
| 121 | |
| 122 | <!-- Alignment Options --> |
| 123 | <div class="demo-box"> |
| 124 | <h3>Alignment Options</h3> |
| 125 | <semantic-grid cols="3" gap="4"> |
| 126 | <div> |
| 127 | <h4>align="start"</h4> |
| 128 | <semantic-stack align="start" style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 129 | <div class="demo-item" style="width: 80%;">Item</div> |
| 130 | <div class="demo-item" style="width: 60%;">Item</div> |
| 131 | </semantic-stack> |
| 132 | </div> |
| 133 | <div> |
| 134 | <h4>align="center"</h4> |
| 135 | <semantic-stack align="center" style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 136 | <div class="demo-item" style="width: 80%;">Item</div> |
| 137 | <div class="demo-item" style="width: 60%;">Item</div> |
| 138 | </semantic-stack> |
| 139 | </div> |
| 140 | <div> |
| 141 | <h4>align="end"</h4> |
| 142 | <semantic-stack align="end" style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 143 | <div class="demo-item" style="width: 80%;">Item</div> |
| 144 | <div class="demo-item" style="width: 60%;">Item</div> |
| 145 | </semantic-stack> |
| 146 | </div> |
| 147 | </semantic-grid> |
| 148 | </div> |
| 149 | |
| 150 | <!-- Justify Options (Horizontal) --> |
| 151 | <div class="demo-box"> |
| 152 | <h3>Justify Options (Horizontal Stack)</h3> |
| 153 | <div style="margin-bottom: 16px;"> |
| 154 | <h4>justify="start"</h4> |
| 155 | <semantic-stack direction="horizontal" justify="start" spacing="2" style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 156 | <div class="demo-item">A</div> |
| 157 | <div class="demo-item">B</div> |
| 158 | <div class="demo-item">C</div> |
| 159 | </semantic-stack> |
| 160 | </div> |
| 161 | <div style="margin-bottom: 16px;"> |
| 162 | <h4>justify="center"</h4> |
| 163 | <semantic-stack direction="horizontal" justify="center" spacing="2" style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 164 | <div class="demo-item">A</div> |
| 165 | <div class="demo-item">B</div> |
| 166 | <div class="demo-item">C</div> |
| 167 | </semantic-stack> |
| 168 | </div> |
| 169 | <div style="margin-bottom: 16px;"> |
| 170 | <h4>justify="between"</h4> |
| 171 | <semantic-stack direction="horizontal" justify="between" spacing="2" style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 172 | <div class="demo-item">A</div> |
| 173 | <div class="demo-item">B</div> |
| 174 | <div class="demo-item">C</div> |
| 175 | </semantic-stack> |
| 176 | </div> |
| 177 | </div> |
| 178 | |
| 179 | <!-- Wrapping --> |
| 180 | <div class="demo-box"> |
| 181 | <h3>Wrapping with wrap attribute</h3> |
| 182 | <semantic-stack direction="horizontal" spacing="2" wrap style="background: #f0f0f0; padding: 12px; border-radius: 4px;"> |
| 183 | <div class="demo-item">Item 1</div> |
| 184 | <div class="demo-item">Item 2</div> |
| 185 | <div class="demo-item">Item 3</div> |
| 186 | <div class="demo-item">Item 4</div> |
| 187 | <div class="demo-item">Item 5</div> |
| 188 | <div class="demo-item">Item 6</div> |
| 189 | <div class="demo-item">Item 7</div> |
| 190 | <div class="demo-item">Item 8</div> |
| 191 | </semantic-stack> |
| 192 | <div class="code-block"><semantic-stack direction="horizontal" wrap>...</semantic-stack></div> |
| 193 | </div> |
| 194 | |
| 195 | <!-- Real-world Example: Button Group --> |
| 196 | <div class="demo-box"> |
| 197 | <h3>Real-world: Button Groups</h3> |
| 198 | <semantic-stack direction="horizontal" spacing="2" wrap> |
| 199 | <semantic-action intent="primary">Save</semantic-action> |
| 200 | <semantic-action intent="secondary">Cancel</semantic-action> |
| 201 | <semantic-action intent="neutral">Reset</semantic-action> |
| 202 | </semantic-stack> |
| 203 | </div> |
| 204 | |
| 205 | <!-- Real-world Example: Form Layout --> |
| 206 | <div class="demo-box"> |
| 207 | <h3>Real-world: Form Layout</h3> |
| 208 | <semantic-stack spacing="4"> |
| 209 | <semantic-input label="Full Name" required></semantic-input> |
| 210 | <semantic-input label="Email" type="email" required></semantic-input> |
| 211 | <semantic-input label="Message" type="textarea"></semantic-input> |
| 212 | <semantic-stack direction="horizontal" justify="end" spacing="2"> |
| 213 | <semantic-action intent="secondary">Cancel</semantic-action> |
| 214 | <semantic-action intent="primary">Submit</semantic-action> |
| 215 | </semantic-stack> |
| 216 | </semantic-stack> |
| 217 | </div> |
| 218 | </div> |
| 219 | |
| 220 | <!-- ======================================== --> |
| 221 | <!-- SEMANTIC-GRID TESTS --> |
| 222 | <!-- ======================================== --> |
| 223 | <div class="test-section"> |
| 224 | <h2>semantic-grid</h2> |
| 225 | <p>Responsive grid layouts with automatic columns</p> |
| 226 | |
| 227 | <!-- 3 Column Grid --> |
| 228 | <div class="demo-box"> |
| 229 | <h3>3 Column Grid</h3> |
| 230 | <semantic-grid cols="3" gap="4"> |
| 231 | <div class="demo-item">Column 1</div> |
| 232 | <div class="demo-item">Column 2</div> |
| 233 | <div class="demo-item">Column 3</div> |
| 234 | </semantic-grid> |
| 235 | <div class="code-block"><semantic-grid cols="3" gap="4">...</semantic-grid></div> |
| 236 | </div> |
| 237 | |
| 238 | <!-- Auto-fit Grid --> |
| 239 | <div class="demo-box"> |
| 240 | <h3>Auto-fit Grid (automatically adjusts columns)</h3> |
| 241 | <semantic-grid cols="auto-fit" min-width="200px" gap="4"> |
| 242 | <div class="demo-item">Item 1</div> |
| 243 | <div class="demo-item">Item 2</div> |
| 244 | <div class="demo-item">Item 3</div> |
| 245 | <div class="demo-item">Item 4</div> |
| 246 | <div class="demo-item">Item 5</div> |
| 247 | </semantic-grid> |
| 248 | <div class="code-block"><semantic-grid cols="auto-fit" min-width="200px" gap="4">...</semantic-grid></div> |
| 249 | </div> |
| 250 | |
| 251 | <!-- Different Gap Sizes --> |
| 252 | <div class="demo-box"> |
| 253 | <h3>Different Gap Sizes</h3> |
| 254 | <semantic-stack spacing="6"> |
| 255 | <div> |
| 256 | <h4>gap="1" (4px)</h4> |
| 257 | <semantic-grid cols="3" gap="1"> |
| 258 | <div class="demo-item">A</div> |
| 259 | <div class="demo-item">B</div> |
| 260 | <div class="demo-item">C</div> |
| 261 | </semantic-grid> |
| 262 | </div> |
| 263 | <div> |
| 264 | <h4>gap="4" (16px)</h4> |
| 265 | <semantic-grid cols="3" gap="4"> |
| 266 | <div class="demo-item">A</div> |
| 267 | <div class="demo-item">B</div> |
| 268 | <div class="demo-item">C</div> |
| 269 | </semantic-grid> |
| 270 | </div> |
| 271 | <div> |
| 272 | <h4>gap="8" (32px)</h4> |
| 273 | <semantic-grid cols="3" gap="8"> |
| 274 | <div class="demo-item">A</div> |
| 275 | <div class="demo-item">B</div> |
| 276 | <div class="demo-item">C</div> |
| 277 | </semantic-grid> |
| 278 | </div> |
| 279 | </semantic-stack> |
| 280 | </div> |
| 281 | |
| 282 | <!-- Real-world: Card Grid --> |
| 283 | <div class="demo-box"> |
| 284 | <h3>Real-world: Card Grid</h3> |
| 285 | <semantic-grid cols="3" gap="6"> |
| 286 | <semantic-card> |
| 287 | <h3 slot="title">Feature 1</h3> |
| 288 | <p slot="description">Description of feature 1</p> |
| 289 | <semantic-action intent="primary">Learn More</semantic-action> |
| 290 | </semantic-card> |
| 291 | <semantic-card> |
| 292 | <h3 slot="title">Feature 2</h3> |
| 293 | <p slot="description">Description of feature 2</p> |
| 294 | <semantic-action intent="primary">Learn More</semantic-action> |
| 295 | </semantic-card> |
| 296 | <semantic-card> |
| 297 | <h3 slot="title">Feature 3</h3> |
| 298 | <p slot="description">Description of feature 3</p> |
| 299 | <semantic-action intent="primary">Learn More</semantic-action> |
| 300 | </semantic-card> |
| 301 | </semantic-grid> |
| 302 | </div> |
| 303 | |
| 304 | <!-- Real-world: Stats Grid --> |
| 305 | <div class="demo-box"> |
| 306 | <h3>Real-world: Stats Dashboard</h3> |
| 307 | <semantic-grid cols="4" gap="4"> |
| 308 | <semantic-card> |
| 309 | <h2 slot="title" style="color: #2196f3; font-size: 36px; margin: 0;">1,234</h2> |
| 310 | <p slot="description" style="margin: 0;">Total Users</p> |
| 311 | </semantic-card> |
| 312 | <semantic-card> |
| 313 | <h2 slot="title" style="color: #4caf50; font-size: 36px; margin: 0;">567</h2> |
| 314 | <p slot="description" style="margin: 0;">Active Projects</p> |
| 315 | </semantic-card> |
| 316 | <semantic-card> |
| 317 | <h2 slot="title" style="color: #ff9800; font-size: 36px; margin: 0;">89%</h2> |
| 318 | <p slot="description" style="margin: 0;">Completion Rate</p> |
| 319 | </semantic-card> |
| 320 | <semantic-card> |
| 321 | <h2 slot="title" style="color: #f44336; font-size: 36px; margin: 0;">12</h2> |
| 322 | <p slot="description" style="margin: 0;">Issues</p> |
| 323 | </semantic-card> |
| 324 | </semantic-grid> |
| 325 | </div> |
| 326 | </div> |
| 327 | |
| 328 | <!-- ======================================== --> |
| 329 | <!-- SEMANTIC-CONTAINER TESTS --> |
| 330 | <!-- ======================================== --> |
| 331 | <div class="test-section"> |
| 332 | <h2>semantic-container</h2> |
| 333 | <p>Max-width containers with responsive padding</p> |
| 334 | |
| 335 | <!-- Different Sizes --> |
| 336 | <div class="demo-box"> |
| 337 | <h3>Different Container Sizes</h3> |
| 338 | <semantic-stack spacing="4"> |
| 339 | <div> |
| 340 | <h4>Small (640px)</h4> |
| 341 | <semantic-container size="small" style="background: #e3f2fd; padding: 12px;"> |
| 342 | <p>This container has a max-width of 640px</p> |
| 343 | </semantic-container> |
| 344 | </div> |
| 345 | <div> |
| 346 | <h4>Medium (768px)</h4> |
| 347 | <semantic-container size="medium" style="background: #e8f5e9; padding: 12px;"> |
| 348 | <p>This container has a max-width of 768px</p> |
| 349 | </semantic-container> |
| 350 | </div> |
| 351 | <div> |
| 352 | <h4>Large (1024px) - Default</h4> |
| 353 | <semantic-container size="large" style="background: #fff3e0; padding: 12px;"> |
| 354 | <p>This container has a max-width of 1024px</p> |
| 355 | </semantic-container> |
| 356 | </div> |
| 357 | <div> |
| 358 | <h4>XLarge (1280px)</h4> |
| 359 | <semantic-container size="xlarge" style="background: #fce4ec; padding: 12px;"> |
| 360 | <p>This container has a max-width of 1280px</p> |
| 361 | </semantic-container> |
| 362 | </div> |
| 363 | </semantic-stack> |
| 364 | <div class="code-block"><semantic-container size="small|medium|large|xlarge">...</semantic-container></div> |
| 365 | </div> |
| 366 | |
| 367 | <!-- With and Without Padding --> |
| 368 | <div class="demo-box"> |
| 369 | <h3>Padding Control</h3> |
| 370 | <semantic-stack spacing="4"> |
| 371 | <div> |
| 372 | <h4>With Padding (default)</h4> |
| 373 | <semantic-container size="medium" style="background: #e3f2fd;"> |
| 374 | <div style="background: white; padding: 12px;">Content with container padding</div> |
| 375 | </semantic-container> |
| 376 | </div> |
| 377 | <div> |
| 378 | <h4>Without Padding</h4> |
| 379 | <semantic-container size="medium" padding="false" style="background: #e3f2fd;"> |
| 380 | <div style="background: white; padding: 12px;">Content without container padding</div> |
| 381 | </semantic-container> |
| 382 | </div> |
| 383 | </semantic-stack> |
| 384 | </div> |
| 385 | </div> |
| 386 | |
| 387 | <!-- ======================================== --> |
| 388 | <!-- COMBINED EXAMPLES --> |
| 389 | <!-- ======================================== --> |
| 390 | <div class="test-section"> |
| 391 | <h2>Combined Layout Examples</h2> |
| 392 | <p>Real-world examples using multiple layout components together</p> |
| 393 | |
| 394 | <!-- Example 1: Pricing Page --> |
| 395 | <div class="demo-box"> |
| 396 | <h3>Pricing Page Layout</h3> |
| 397 | <semantic-container size="large"> |
| 398 | <semantic-stack spacing="6" align="center"> |
| 399 | <div style="text-align: center;"> |
| 400 | <h2 style="margin: 0 0 8px 0;">Choose Your Plan</h2> |
| 401 | <p style="margin: 0; color: #666;">Select the perfect plan for your needs</p> |
| 402 | </div> |
| 403 | <semantic-grid cols="3" gap="6"> |
| 404 | <semantic-card> |
| 405 | <semantic-stack spacing="4"> |
| 406 | <div> |
| 407 | <h3 slot="title" style="margin: 0 0 4px 0;">Free</h3> |
| 408 | <p style="font-size: 32px; font-weight: bold; margin: 0;">$0</p> |
| 409 | <p style="color: #666; margin: 0;">per month</p> |
| 410 | </div> |
| 411 | <semantic-stack spacing="2"> |
| 412 | <div>✓ 5 Projects</div> |
| 413 | <div>✓ Basic Support</div> |
| 414 | <div>✓ 1GB Storage</div> |
| 415 | </semantic-stack> |
| 416 | <semantic-action intent="neutral" style="width: 100%;">Get Started</semantic-action> |
| 417 | </semantic-stack> |
| 418 | </semantic-card> |
| 419 | <semantic-card> |
| 420 | <semantic-stack spacing="4"> |
| 421 | <div> |
| 422 | <semantic-badge intent="primary">Popular</semantic-badge> |
| 423 | <h3 slot="title" style="margin: 8px 0 4px 0;">Pro</h3> |
| 424 | <p style="font-size: 32px; font-weight: bold; margin: 0;">$29</p> |
| 425 | <p style="color: #666; margin: 0;">per month</p> |
| 426 | </div> |
| 427 | <semantic-stack spacing="2"> |
| 428 | <div>✓ Unlimited Projects</div> |
| 429 | <div>✓ Priority Support</div> |
| 430 | <div>✓ 100GB Storage</div> |
| 431 | <div>✓ Advanced Analytics</div> |
| 432 | </semantic-stack> |
| 433 | <semantic-action intent="primary" style="width: 100%;">Start Trial</semantic-action> |
| 434 | </semantic-stack> |
| 435 | </semantic-card> |
| 436 | <semantic-card> |
| 437 | <semantic-stack spacing="4"> |
| 438 | <div> |
| 439 | <h3 slot="title" style="margin: 0 0 4px 0;">Enterprise</h3> |
| 440 | <p style="font-size: 32px; font-weight: bold; margin: 0;">Custom</p> |
| 441 | <p style="color: #666; margin: 0;">contact us</p> |
| 442 | </div> |
| 443 | <semantic-stack spacing="2"> |
| 444 | <div>✓ Everything in Pro</div> |
| 445 | <div>✓ Dedicated Support</div> |
| 446 | <div>✓ Unlimited Storage</div> |
| 447 | <div>✓ Custom Integration</div> |
| 448 | </semantic-stack> |
| 449 | <semantic-action intent="neutral" style="width: 100%;">Contact Sales</semantic-action> |
| 450 | </semantic-stack> |
| 451 | </semantic-card> |
| 452 | </semantic-grid> |
| 453 | </semantic-stack> |
| 454 | </semantic-container> |
| 455 | </div> |
| 456 | |
| 457 | <!-- Example 2: Dashboard Layout --> |
| 458 | <div class="demo-box"> |
| 459 | <h3>Dashboard Layout</h3> |
| 460 | <semantic-container size="xlarge"> |
| 461 | <semantic-stack spacing="6"> |
| 462 | <!-- Header --> |
| 463 | <semantic-stack direction="horizontal" justify="between" align="center"> |
| 464 | <h2 style="margin: 0;">Dashboard</h2> |
| 465 | <semantic-action intent="primary">New Project</semantic-action> |
| 466 | </semantic-stack> |
| 467 | |
| 468 | <!-- Stats --> |
| 469 | <semantic-grid cols="4" gap="4"> |
| 470 | <semantic-card> |
| 471 | <h3 style="font-size: 28px; margin: 0;">24</h3> |
| 472 | <p style="margin: 0; color: #666;">Active Projects</p> |
| 473 | </semantic-card> |
| 474 | <semantic-card> |
| 475 | <h3 style="font-size: 28px; margin: 0;">142</h3> |
| 476 | <p style="margin: 0; color: #666;">Total Tasks</p> |
| 477 | </semantic-card> |
| 478 | <semantic-card> |
| 479 | <h3 style="font-size: 28px; margin: 0;">87%</h3> |
| 480 | <p style="margin: 0; color: #666;">Completion</p> |
| 481 | </semantic-card> |
| 482 | <semantic-card> |
| 483 | <h3 style="font-size: 28px; margin: 0;">12</h3> |
| 484 | <p style="margin: 0; color: #666;">Team Members</p> |
| 485 | </semantic-card> |
| 486 | </semantic-grid> |
| 487 | |
| 488 | <!-- Main Content --> |
| 489 | <semantic-grid cols="2" gap="6"> |
| 490 | <semantic-card> |
| 491 | <h3 slot="title">Recent Activity</h3> |
| 492 | <semantic-stack spacing="3"> |
| 493 | <div style="padding: 12px; background: #f5f5f5; border-radius: 4px;"> |
| 494 | <strong>Project Alpha</strong> - Task completed |
| 495 | </div> |
| 496 | <div style="padding: 12px; background: #f5f5f5; border-radius: 4px;"> |
| 497 | <strong>Project Beta</strong> - New comment |
| 498 | </div> |
| 499 | <div style="padding: 12px; background: #f5f5f5; border-radius: 4px;"> |
| 500 | <strong>Project Gamma</strong> - File uploaded |
| 501 | </div> |
| 502 | </semantic-stack> |
| 503 | </semantic-card> |
| 504 | <semantic-card> |
| 505 | <h3 slot="title">Quick Actions</h3> |
| 506 | <semantic-stack spacing="3"> |
| 507 | <semantic-action intent="primary" style="width: 100%;">Create Task</semantic-action> |
| 508 | <semantic-action intent="secondary" style="width: 100%;">Upload File</semantic-action> |
| 509 | <semantic-action intent="neutral" style="width: 100%;">View Reports</semantic-action> |
| 510 | </semantic-stack> |
| 511 | </semantic-card> |
| 512 | </semantic-grid> |
| 513 | </semantic-stack> |
| 514 | </semantic-container> |
| 515 | </div> |
| 516 | </div> |
| 517 | |
| 518 | <!-- Mobile Responsiveness Note --> |
| 519 | <div class="demo-box" style="background: #fff3cd; border-left: 4px solid #ffc107;"> |
| 520 | <h3 style="margin-top: 0;">📱 Mobile Responsiveness</h3> |
| 521 | <p style="margin-bottom: 8px;">All layout components are mobile-responsive by default:</p> |
| 522 | <ul style="margin: 0; padding-left: 20px;"> |
| 523 | <li><strong>semantic-grid</strong> automatically becomes single column on screens <640px</li> |
| 524 | <li><strong>semantic-container</strong> has responsive padding that adjusts based on screen size</li> |
| 525 | <li><strong>semantic-stack</strong> with wrap will automatically reflow items</li> |
| 526 | </ul> |
| 527 | <p style="margin-top: 12px; margin-bottom: 0;"><em>Try resizing your browser to see the responsive behavior!</em></p> |
| 528 | </div> |
| 529 | </semantic-container> |
| 530 | </body> |
| 531 | </html> |