Skip to content

Commit

Permalink
fix logos slider, button, link dvc download
Browse files Browse the repository at this point in the history
  • Loading branch information
yathomasi committed Aug 1, 2023
1 parent f58865c commit 2d11d83
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
6 changes: 4 additions & 2 deletions src/components/HeroContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import LayoutWidthContainer from '@dvcorg/gatsby-theme-iterative/src/components/
interface IHeroContainerProps {
className?: string
children: React.ReactNode
id?: HTMLDivElement['id']
}

const HeroContainer: React.FC<IHeroContainerProps> = ({
className,
children
children,
id
}) => (
<div className={cn('w-full', className)}>
<div className={cn('w-full', className)} id={id}>
<LayoutWidthContainer>{children}</LayoutWidthContainer>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/Hero/GetStarted/GetStartedWithDvc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const HeroButtons = () => (

const GetStartedWithDvc = () => {
return (
<HeroContainer className="py-10 px-6">
<HeroContainer className="py-10 px-6" id="get-started-dvc">
<div className="flex items-center gap-4 md:justify-center">
<h1 className={cn('text-2xl font-medium')}>Get Started with</h1>
<StaticImage
Expand Down
17 changes: 15 additions & 2 deletions src/components/Home/Hero/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as styles from './styles.module.css'
import shortenNumber from '../../../utils/format'
import useStars from '../../../gatsby/hooks/stars'
import Link from '@dvcorg/gatsby-theme-iterative/src/components/Link'
import { navigate } from 'gatsby'

interface ISectionProps {
className?: string
Expand Down Expand Up @@ -47,7 +48,13 @@ const Badge = ({ className, children }: ISectionProps) => (
</div>
)

export const CTAButton = ({ className, children }: ISectionProps) => (
export const CTAButton = ({
className,
children,
onClick
}: ISectionProps & {
onClick?: () => void
}) => (
<button
className={cn(
'rounded-lg',
Expand All @@ -58,6 +65,7 @@ export const CTAButton = ({ className, children }: ISectionProps) => (
'flex items-center',
className
)}
onClick={onClick}
>
{children}
</button>
Expand Down Expand Up @@ -131,7 +139,12 @@ const HeroSection = () => {
</CTAButton>
</Section>
<Section className="bg-light text-dark pt-1">
<CTAButton className="bg-dark text-light">
<CTAButton
className="bg-dark text-light"
onClick={() => {
navigate('#get-started-dvc')
}}
>
Download it now
<ArrowDown className="ml-4" />
</CTAButton>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/LogosSlider/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
z-index: 1;
width: 50px;
height: 100%;
background: linear-gradient(to left, var(--color-light-blue), transparent);
background: linear-gradient(to left, #ecdeff, transparent);

@media screen(sm) {
width: 100px;
Expand All @@ -29,7 +29,7 @@
z-index: 1;
width: 50px;
height: 100%;
background: linear-gradient(to right, var(--color-light-blue), transparent);
background: linear-gradient(to right, #ecdeff, transparent);

@media screen(sm) {
width: 100px;
Expand Down
7 changes: 4 additions & 3 deletions src/components/TwoRowsButton/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@
}

&.outline {
border-color: rgb(176 184 197 / 47%);
@apply border-light;

color: var(--color-gray-hover);
background-color: var(--color-light-blue);
background-color: transparent;

&.active,
&:hover {
background-color: var(--color-light-blue-hover);
@apply bg-light;
}
}

Expand Down

0 comments on commit 2d11d83

Please sign in to comment.