You've already forked wp-bootstrap
- Add 16 block patterns across 7 new categories (hero, features, CTA, testimonials, pricing, contact, text) - Add dark mode toggle with localStorage persistence and system preference detection (Bootstrap 5.3 data-bs-theme) - Register 17 custom block styles mapping Bootstrap components to WordPress blocks (cards, alerts, tables, buttons, etc.) - Add 4 style variations: Ocean, Forest, Sunset, Midnight - Add sidebar template part and "Blog with Sidebar" custom template - Add Inter and Lora variable fonts with fontFace declarations - Add Display font size (fluid 2.5rem-3.5rem) - Update translations (en_US .pot, de_CH .po) with all new strings - Bump version to 0.1.0 Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
1.6 KiB
PHP
27 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Title: Hero with cover image
|
|
* Slug: wp-bootstrap/hero-cover
|
|
* Categories: wp-bootstrap_hero, banner, featured
|
|
* Description: A full-width hero section with a cover image, heading, paragraph, and call to action button.
|
|
*
|
|
* @package WPBootstrap
|
|
* @since 0.1.0
|
|
*/
|
|
?>
|
|
<!-- wp:cover {"dimRatio":60,"overlayColor":"contrast","isUserOverlayColor":true,"minHeight":500,"align":"full","layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-cover alignfull" style="min-height:500px"><span aria-hidden="true" class="wp-block-cover__background has-contrast-background-color has-background-dim-60 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"center","level":1,"fontSize":"display"} -->
|
|
<h1 class="wp-block-heading has-text-align-center has-display-font-size"><?php esc_html_e( 'Build something amazing', 'wp-bootstrap' ); ?></h1>
|
|
<!-- /wp:heading -->
|
|
|
|
<!-- wp:paragraph {"align":"center","fontSize":"large"} -->
|
|
<p class="has-text-align-center has-large-font-size"><?php esc_html_e( 'Create modern, responsive websites with the power of Bootstrap 5 and the WordPress Site Editor.', 'wp-bootstrap' ); ?></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
|
|
<div class="wp-block-buttons"><!-- wp:button {"fontSize":"medium"} -->
|
|
<div class="wp-block-button has-custom-font-size has-medium-font-size"><a class="wp-block-button__link wp-element-button"><?php esc_html_e( 'Get Started', 'wp-bootstrap' ); ?></a></div>
|
|
<!-- /wp:button --></div>
|
|
<!-- /wp:buttons --></div></div>
|
|
<!-- /wp:cover -->
|