considbrs-webdev / modularity-pitea-hero
A module for the Pitea Hero.
Package info
github.com/Considbrs-Webdev/modularity-pitea-hero
Type:wordpress-plugin
pkg:composer/considbrs-webdev/modularity-pitea-hero
README
| title | README |
|---|---|
| date | 2021-05-27 |
| draft | false |
| layout | default |
| parent | Boilerplates |
modularity-pitea-hero
A module for the Pitea Hero.
Report Bug
·
Request Feature
Table of Contents
- Table of Contents
- About modularity-pitea-hero
- Getting Started
- Usage
- Deploy
- Roadmap
- Contributing
- License
- Acknowledgements
About modularity-pitea-hero
A WordPress Modularity module for creating hero sections on Piteå municipality websites. This module provides a customizable hero section with background image, heading, search functionality, and action buttons.
Features
- Background Image: Upload and display a background image for the hero section
- Overlay Control: Adjustable overlay opacity to ensure text readability
- Custom Heading: Set a main heading text for the hero section
- Search Bar: Integrated search functionality with customizable placeholder text
- Action Buttons: Add multiple buttons with icons and links to guide users
Built With
- PHP
- NPM
- Webpack
- Modularity
- ACF (Advanced Custom Fields)
- Blade templating
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
- WordPress with Modularity plugin installed
- PHP 7.4 or higher
- Composer
- Node.js and npm
- Advanced Custom Fields (ACF) plugin
Installation instructions:
- Composer (macOS):
brew install composer
- Node.js and npm (macOS):
brew install node
- Modularity:
composer require helsingborg-stad/modularity
Installation
- Clone the repo
git clone https://github.com/Considbrs-Webdev/modularity-pitea-hero.git
- Install and build NPM packages
npm install && npm run build
- Install composer packages
composer install
Usage
After installation, the module will be available in the WordPress Modularity module library. You can add it to any page or post where Modularity is enabled.
Module Configuration
- Background Image: Upload a background image (required)
- Overlay Opacity: Adjust the overlay darkness (0-100%, default: 50%)
- Heading: Set the main heading text (required, default: "Välkommen till Piteå kommun")
- Search Placeholder: Customize the search input placeholder text (optional, default: "Vad kan vi hjälpa dig med?")
- Buttons: Add up to 12 action buttons with:
- Icon selection
- Button text
- Link destination
The search bar will always be displayed, even if no placeholder text is set.
Deploy
Instructions for deploys.
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License.
