A reusable NavBar
component built with TypeScript and React for creating a responsive navigation bar with buttons, logo, and optional customization of styles.
Buttons
: An array of objects representing the buttons in the navbar. Each object must have:label
: The text displayed on the button.onClick
: A function triggered when the button is clicked.
Style
(optional): An object containing optional custom styles:ButtonTextColor
: A string representing the color of the button text.NavBarBackground
: A string representing the background color of the navbar.
Logo
(optional): An object representing the logo in the navbar:imagePath
: A string representing the image URL for the logo.href
(optional): A string representing the URL that the logo links to.
A reusable Hero
component built with TypeScript and React for creating a customizable hero section with a background image or color, title, description, button, and an optional logo.
Title
: The main heading text displayed in the hero section.Description
: A short description or tagline below the title.ButtonLabel
: The text displayed inside the call-to-action button.ButtonOnClick
: A function triggered when the button is clicked.Background
(optional): A string representing either a background image URL or a CSS color value.Logo
(optional): A URL string for an optional logo displayed in the hero section.HasDarkCover
(optional, default:true
): A boolean that determines whether a semi-transparent dark overlay appears over the background.
A reusable TwinList
component built with TypeScript and React for displaying a structured, alternating list layout. It supports customizable styles, dynamic button actions, and images.
-
Style
(optional): An object for customizing the appearance of the component.Background
(optional): The background color of the entire section.ListBackground
(optional): The background color of individual list items.TextColor
(optional): The color of the text inside the list items.ButtonStyle
(optional, default:1
): Defines the button style, accepts values from1
to5
.
-
List
: An array of objects representing the list items. Each object contains:Title
: The title displayed for the list item.Description
: A short description related to the item.Image
: A URL string pointing to the image displayed beside the text.ButtonLabel
: The text displayed on the button.ButtonOnClick
: A callback function triggered when the button is clicked.
A reusable Cards
component built with TypeScript and React for displaying a list of cards with optional customizations.
IsDarkTheme
(optional): A boolean to set the theme to dark. Defaults tofalse
.CardSectionBG
(optional): A custom background color for the card section.Cards
: An array of objects representing each card. Each object can have:ImagePath
(optional): The path to an image for the card.Title
: The title text for the card.Description
: The description text for the card.Onclick
: A callback function triggered when the card is clicked.
A reusable PhotoGrid
component built with TypeScript and React for displaying a grid of images with optional background styling and click handlers.
Background
(optional): A string defining the background color or image of the grid.Images
: An array of objects representing the images in the grid. Each object contains:Image
: A URL string pointing to the image source.Alt
: The alternative text for the image.Onclick
: A callback function triggered when the image is clicked.
A reusable Banner
component built with TypeScript and React, designed to display a customizable banner with an image background, title, and description.
BackgroundImage
: A string representing the URL of the background image for the banner.Title
: A string representing the title text that will be displayed on the banner.Description
: AReact.ReactNode
representing the description content that will be displayed beneath the title. This can be text, JSX elements, or other React components.
A reusable Footer
component built with TypeScript and React for creating a customizable footer with a title, description, logo, optional social media links, additional links, and custom styling.
Title
: A string representing the title of the footer.Description
: A React node that can contain any valid JSX content for the footer description.Logo
: A string representing the URL of the footer logo image.Style
(optional): An object containing optional custom styles:TextColor
: A string representing the color of the text.Background
: A string representing the background color of the footer.
Links
(optional): An array of objects representing social media links. Each object must have:ImagePath
: A string representing the URL of the social media image.Href
: A string representing the URL of the social media link.Alt
: A string representing the alt text for the image.
MiscLinks
(optional): An array of objects representing miscellaneous links. Each object must have:Text
: A string representing the text of the link.Href
: A string representing the URL of the link.
MiscInfo
(optional): A React node that can contain additional miscellaneous information in the footer.