From 786452f3ff51aa074d8ec0dcc14f7089f4ab0eaa Mon Sep 17 00:00:00 2001 From: Nisar Hassan Naqvi Date: Tue, 5 Jan 2021 15:24:59 +0000 Subject: [PATCH] make site valid in accordance to W3C validator.. Fixes gitpod-io/website#842 --- src/components/FeatureCard.tsx | 2 +- src/components/TrustedBy.tsx | 6 ++-- src/components/index/PrefixInput.tsx | 50 ++++++++++++++-------------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/components/FeatureCard.tsx b/src/components/FeatureCard.tsx index ecef5a927..4ffd5c73d 100644 --- a/src/components/FeatureCard.tsx +++ b/src/components/FeatureCard.tsx @@ -43,7 +43,7 @@ const Styled = styled.div<{ &:nth-of-type(2n) { @media (min-width: 1141px) { - flex-direction: ${({ opposite }) => (opposite ? 'reverse' : 'row-reverse')}; + flex-direction: ${({ opposite }) => (opposite ? 'row' : 'row-reverse')}; } @media (min-width: 1141px) { diff --git a/src/components/TrustedBy.tsx b/src/components/TrustedBy.tsx index a1f8ad753..d3820c4da 100644 --- a/src/components/TrustedBy.tsx +++ b/src/components/TrustedBy.tsx @@ -78,7 +78,7 @@ const StyledTrustedBy = styled.section` } ` -const StyledBrandImage = styled.img<{ transform?: string }>` +const StyledBrandImage = styled.img<{ transformValue?: string }>` width: 9.5rem; @media(max-width: ${sizes.breakpoints.lg}) { @@ -90,7 +90,7 @@ const StyledBrandImage = styled.img<{ transform?: string }>` } @media(min-width: calc(${sizes.breakpoints.lg} + 1px)) { - transform: ${({ transform }) => (transform ? transform : 'none')}; + transform: ${({ transformValue }) => (transformValue ? transformValue : 'none')}; } ` @@ -117,7 +117,7 @@ const TrustedBy = ({ brands, title, styles }: TrustedByProps) => (
{brands.map((b: Brand) => ( - + ))}
diff --git a/src/components/index/PrefixInput.tsx b/src/components/index/PrefixInput.tsx index 877486d2f..56458274e 100644 --- a/src/components/index/PrefixInput.tsx +++ b/src/components/index/PrefixInput.tsx @@ -272,33 +272,33 @@ const PrefixInput = () => { return ( - -
- -
-
+ + + + + + https://gitpod.io/# -
+ { onChange={handleChange} type="text" /> -
+ <>

{ error ? error : 'Enter your GitLab, GitHub, or Bitbucket URL' } @@ -320,13 +320,13 @@ const PrefixInput = () => { Start Workspace -

+
-
-
-
+ + +   -
+
) }