SaasCore Docs
  • Get Started
  • Configuration
    • Database
    • Stripe
      • Product ID and Price ID
      • API keys
      • Stripe Webhook
    • Emails
      • Cron Jobs
    • Claudinary
    • Chat plugin
    • Upstash Redis
    • OAuth with Google and GitHub
    • Subscription types and plans
    • Affiliate program
    • Google Analytics Api
  • Landing page
    • Header
    • Hero
      • Discount
      • AvatarCircles
    • Other components
  • Authentication Flow
    • For Admins
    • For Clients
      • OAuth
      • Credentials
    • For Affiliates
  • Payments
    • Payment Flow Scenarios
      • Scenario 1: Registered Client
      • Scenario 2: Direct Subscription from Home Page
      • Upgrading/Downgrading/Canceling Subscriptions
    • Pricing Table
  • Component Protection
  • Pending ...
Powered by GitBook
On this page
  1. Landing page

Hero

The Hero_centered component is highly customizable and defines the content and structure of the hero section in your SAAS boilerplate. It includes metadata for headings, descriptions, call-to-action buttons, and images.

const data = {
    heading: "This Saas Boilerplate is Awesome",
    coloredWord: "Saas",
    secondaryButton: {
        text: "Another button",
        link: "/",
    },
    description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. ",
    cta: {
        text: "Get Started",
        link: "/#pricing",
    },
    image: {
        //recommended image size: 1200x630
        hero_centered: {
            // image displayed on light mode
            light: {
                src: heroImage_centered_light,
                alt: "hero image",
            },
            // image displayed on dark mode
            dark: {
                src: heroImage_centered_dark,
                alt: "hero image",
            },
            fading_effect: true,
        },
    },
};
PreviousHeaderNextDiscount

Last updated 10 months ago