Skip to content

Commit

Permalink
gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sev committed Oct 25, 2024
1 parent 319319b commit f847176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/cody/dual-theme/CodyIntroDualTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const CodyIntroDualTheme: FunctionComponent<CodyIntroDualThemeProps> = ({
}) => (
<ContentSection
parentClassName="!py-0 !px-0"
className={classNames('pt-16 text-center md:mt-0 md:pt-[123px]', wrapperClassName)}
className={classNames('pt-16 text-center md:mt-0 md:py-[123px]', wrapperClassName)}
>
<h1
className={classNames('mx-auto w-full font-semibold', titleSize || 'text-4xl sm:text-6xl', {
Expand Down Expand Up @@ -65,7 +65,9 @@ export const CodyIntroDualTheme: FunctionComponent<CodyIntroDualThemeProps> = ({
type="button"
className={classNames(
'btn w-full px-6 py-2 lg:w-fit',
isLight ? 'btn-primary' : 'btn-primary-dark',
isLight
? 'btn-primary bg-[linear-gradient(87deg,#270741_1.7%,#59136D_26.55%,#462390_51.83%,#270741_95.76%)]'
: 'btn-primary-dark',
isVariant && 'md:!w-fit'
)}
title="Download Cody for Free"
Expand Down
5 changes: 4 additions & 1 deletion src/pages/cody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ const CodyPage: FunctionComponent = () => {
className="relative w-full !overflow-x-hidden bg-gray-50"
>
<div className="relative">
{/* gradient background */}
<div className="pointer-events-none absolute inset-0 -translate-y-32 bg-[linear-gradient(180deg,#E9EDFC_20%,#F9FAFB_90.4%)]" />

{/* blob gradients */}
<div className="pointer-events-none absolute inset-0">
<img
Expand All @@ -167,7 +170,7 @@ const CodyPage: FunctionComponent = () => {
/>
</div>

<ContentSection parentClassName="!py-0">
<ContentSection parentClassName="relative !py-0">
<CodyIntroDualTheme
isLight={true}
title="The most informed Code AI"
Expand Down

0 comments on commit f847176

Please sign in to comment.