Skip to content

Commit d4138fc

Browse files
committed
feat: header video flexibility
1 parent 2c4c81e commit d4138fc

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/components/HeaderFooter/VideoHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { useState, useEffect } from 'react'
3+
import { useState, useEffect, JSX } from 'react'
44
import { Menu, X, ChevronDown } from 'lucide-react'
55
import Image, { StaticImageData } from 'next/image'
66
import { HeaderDesktop } from './HeaderDesktop'
@@ -20,7 +20,7 @@ export function VideoHeader({
2020
logoDark: StaticImageData
2121
menuItems?: HeaderMenuProps[]
2222
title?: string
23-
subtitle?: string
23+
subtitle?: string | JSX.Element
2424
}) {
2525
const [isScrolled, setIsScrolled] = useState(false)
2626
const [isHeaderVisible, setIsHeaderVisible] = useState(false)

src/components/Pages/LandingPage.stories.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { PhoneIcon, PlayCircleIcon, RectangleGroupIcon } from '@heroicons/react/
3333
import { ChartPieIcon, CursorArrowRaysIcon, FingerPrintIcon } from '@heroicons/react/24/outline'
3434
import { DynamicIcon } from '@/components/Images'
3535
import { Meta, StoryObj } from '@storybook/react';
36+
import { title } from 'process'
3637

3738
const GithubIcon = () => (
3839
// <FontAwesomeIcon icon={faGithub} size="10x" />
@@ -83,6 +84,8 @@ export const Default: PageStory = {
8384
</div>
8485
),
8586
header: {
87+
title: 'Storage Service',
88+
subtitle: 'A scalable object storage service that offers industry-leading performance, security, and availability.',
8689
menuItems: [
8790
{
8891
name: 'Documentation',
@@ -308,14 +311,13 @@ export const Default: PageStory = {
308311
},
309312
}
310313

311-
export const LowImpactHero = {
314+
export const HtmlSubtitle = {
312315
args: {
313316
...Default.args,
314-
hero: {
315-
type: 'lowImpact',
316-
children: <h1 className="text-4xl font-bold">Low Impact Hero</h1>,
317+
header: {
318+
title: 'Page Title',
319+
subtitle: <div><p className="text-xl font-bold">A load of text here</p><br/><p className="text-2xl font-bold">A load more text here</p></div>,
317320
},
318-
heroBackgroundImage: 'stock1.jpg?height=400&width=800',
319321
},
320322
}
321323

0 commit comments

Comments
 (0)