This tutorial walks you through customizing the HeroComponentFive component. You'll learn how to:
Edit text content (headings, body text, and links).
Customize buttons (text, links, and styles).
Replace or update the image.
Adjust animations for a tailored visual experience.
Project Resources
Tutorial
Step 1: Editing Text Content
Main Heading
Locate the heading in the following code block:
Edit Text: Replace
Lorem ipsum dolor elit.
with your desired headline.Styling: Keep the
<span>
for italicized emphasis, or remove it if unnecessary.
Example Update:
Body Text
Locate the body text here:
Edit Text: Replace the placeholder with a meaningful description.
Link: Update the
<a href="#">
with your desired URL.
Example Update:
Step 2: Customizing Buttons
Button Definitions
The buttons are defined as follows:
Edit Button Text: Replace
"Get started"
and"Request a demo"
with your desired text.Update Links (
href
): Replace"#"
with your target URLs.
Example Update:
Button Variants
The
variant="solid"
button has a filled style, whilevariant="outline"
has a border. Modify them to match your branding.
Step 3: Replacing or Updating the Image
The hero image is defined in this block:
Replace Image Path (
src
): Update/images/UINOW.png
with the path to your image. Save your new image in thepublic/images/
folder for local files.Update Alt Text (
alt
): Write descriptive text for accessibility.
Example Update:
Image Dimensions
Adjust
width
andheight
to match your image dimensions if necessary.
Step 4: Adjusting Animations
The animations are handled using framer-motion
. Here's an example:
Animation Timing (
duration
): Change the0.6
value to control animation speed.Delays (
delay
): Add or adjustdelay
to stagger animations.
Example Update: