Components
Hero
The Hero component is a responsive Angular component designed to showcase your product or service. It includes a bold headline, descriptive text, a call-to-action button, and an image.
Features
- Engaging Design: Eye-catching layout with a focus on the headline and call-to-action.
- Responsive Layout: Optimized for all screen sizes, ensuring a consistent experience.
- Customizable Content: Easily adjust the headline, description, button, and image through the TypeScript file.
- Integrated Call-to-Action: Includes a checkout button for user engagement.
Usage
Step 1: Import the Component
Add the HeroComponent to your Angular project by including it in your page component. Remember to add it to the imports array.
Step 2: Add the Template
Include the component on your page:
Configuration
Customization in TypeScript
You can customize the Hero component by updating the following properties in the TypeScript file:
showDiscountInfo(boolean): Determines if discount information is displayed in the call-to-action button. Defaults tofalse.heroHeader(string): The main headline of the hero section.heroHeaderHighlightedText(string): The highlighted text at the end of the headline.heroImg(string): The source URL for the hero image.heroSecondaryText(string): The secondary description text below the headline.
Example:
Notes
- Use the TypeScript properties to dynamically adjust the Hero section's content and behavior.
- The component automatically handles responsive design and integrates seamlessly with the CheckoutButton component.