Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home page - 4.0 updates #5755

Merged
merged 15 commits into from
Sep 23, 2022
Prev Previous commit
prettier and linting
  • Loading branch information
bretthayes committed Sep 23, 2022
commit 2867a829010ccb1461b8e0bf567e02bfcbeab651
8 changes: 6 additions & 2 deletions src/components/CtaSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ export const CtaSection: FunctionComponent<CtaSection> = ({
{!slimWidth && <h2 className="tw-mb-sm">{title}</h2>}
{slimWidth && <h4 className="tw-mb-sm">{title}</h4>}
<p
className={classNames('tw-text-lg', centerContent ? 'tw-mx-auto md:tw-max-w-2xl' : 'md:tw-max-w-lg')}
className={classNames(
'tw-text-lg',
centerContent ? 'tw-mx-auto md:tw-max-w-2xl' : 'md:tw-max-w-lg'
)}
>
{description}
</p>
Expand Down Expand Up @@ -183,7 +186,8 @@ export const CtaSection: FunctionComponent<CtaSection> = ({
{...{
...cta2,
ctaStyle:
(background?.includes('dark') || background?.includes('black') && !cta2.ctaStyle?.includes('outlineButton') )
background?.includes('dark') ||
(background?.includes('black') && !cta2.ctaStyle?.includes('outlineButton'))
? 'outlineButtonLight'
: cta2.ctaStyle,
}}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/_Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Hero: FunctionComponent = () => {
</div>

<ContentSection slimWidth={true}>
<YouTube id="Kk1ea2-l8Hk" />
<YouTube title="Sourcegraph Product Tour" id="Kk1ea2-l8Hk" />
</ContentSection>

<CustomerLogos />
Expand Down