Skip to content

Commit

Permalink
Merge pull request #212 from replayio/nacho/home-hero-bg-color-change
Browse files Browse the repository at this point in the history
Home hero bg changes
  • Loading branch information
ignmandagaran authored Apr 25, 2024
2 parents de21d8a + 745d2b0 commit b7e0b55
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/app/components/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function Hero({ hero }: LandingPageFragment) {
const { h1, h2 } = hero.heroVariants.items[0]

return (
<section className="relative flex overflow-hidden">
<section className="relative flex overflow-hidden bg-[#FCFCFC]">
<div className="absolute -top-[30%] left-0 h-[130%] w-full animate-fadeIn lg:-left-[35%] lg:top-0 lg:h-full lg:w-[135%]">
<Hyperspace className="opacity-10" />
</div>
Expand Down Expand Up @@ -59,7 +59,7 @@ export function Hero({ hero }: LandingPageFragment) {
<div className="flex min-h-[40px] items-center text-[#8B8B8B]">
<p className="hidden whitespace-nowrap xl:inline-block">{hero.logosTitle}</p>
<div className="max-w-full flex-1">
<HomeHeroMarquee />
<HomeHeroMarquee gradientColor="#FCFCFC" />
</div>
</div>
</div>
Expand Down
14 changes: 12 additions & 2 deletions src/app/components/hero/marquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ import logoVercel from '~/images/hero-logos/vercel.svg'
import logoWeightsAndBiases from '~/images/hero-logos/weights-and-biases.svg'
import Marquee from 'react-fast-marquee'
import { useMinTabletBreakpoint } from '~/hooks/use-media'
import { PropsWithChildren } from 'react'

export const HomeHeroMarquee = () => {
type MarqueeProps = {
style?: React.CSSProperties
className?: string
play?: boolean
pauseOnHover?: boolean
pauseOnClick?: boolean
gradientColor?: string
}

export const HomeHeroMarquee = (props: MarqueeProps) => {
const isMinTablet = useMinTabletBreakpoint()
return (
<Marquee gradient gradientWidth={isMinTablet ? 200 : 60} speed={20}>
<Marquee gradient gradientWidth={isMinTablet ? 200 : 60} speed={20} {...props}>
{[
{ name: 'React', logo: logoReact },
{ name: 'WeightsBiases', logo: logoWeightsAndBiases },
Expand Down
3 changes: 0 additions & 3 deletions src/lib/basehub-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export const linkFragment = fragmentOn('LinkComponent', {

export const landingPageFragment = fragmentOn('LandingPage', {
hero: {
subtitle: {
json: { content: true }
},
getStartedLink: linkFragment,
installationLink: linkFragment,
contactUsLink: linkFragment,
Expand Down

0 comments on commit b7e0b55

Please sign in to comment.