Skip to content

Commit be673b5

Browse files
committed
Revert "Implement dvc.org redesign to include dvcx coming soon (#4737)"
This reverts commit cc9b048.
1 parent b825fa0 commit be673b5

File tree

28 files changed

+125
-548
lines changed

28 files changed

+125
-548
lines changed

β€Žplugins/landing-page/gatsby-node.tsβ€Ž

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,18 @@ export const onCreateNode: GatsbyNode['onCreateNode'] = async api => {
5959
terminal: terminal.split('\n').map(processTerminalLine).join('\n')
6060
}
6161
})
62-
if (node.relativePath === 'dvc.yml') {
63-
const DvcSlide = {
64-
id: createNodeId('DvcSlide'),
65-
parent: node.id,
66-
children: [],
67-
internal: {
68-
type: 'DvcSlide',
69-
contentDigest: node.internal.contentDigest
70-
},
71-
slides: processedSlides
62+
const landingPageNode = {
63+
slides: processedSlides,
64+
65+
id: createNodeId('LandingPage'),
66+
parent: node.id,
67+
children: [],
68+
internal: {
69+
type: 'LandingPage',
70+
contentDigest: node.internal.contentDigest
7271
}
73-
createNode(DvcSlide)
74-
createParentChildLink({ child: DvcSlide, parent: node })
7572
}
73+
createNode(landingPageNode)
74+
createParentChildLink({ child: landingPageNode, parent: node })
7675
}
7776
}

β€Žsrc/@dvcorg/gatsby-theme/components/LayoutHeader/Nav/LinkItems/styles.module.cssβ€Ž

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050

5151
font-family: var(--font-base);
5252
font-weight: 400;
53-
font-size: 17px;
54-
line-height: 20px;
53+
font-size: 20px;
54+
line-height: 24px;
5555
text-decoration: none;
5656
color: #353940;
57-
padding: 20px 5px;
57+
padding: 20px 10px;
5858
display: flex;
5959
align-items: flex-end;
6060
border: none;
@@ -88,23 +88,22 @@
8888
}
8989

9090
.linkIcon {
91-
width: 16px;
92-
height: 16px;
91+
width: 18px;
92+
height: 18px;
9393
margin-left: 4px;
9494
}
9595

9696
.arrowUpIcon {
9797
display: none;
9898
}
9999

100-
@media screen(xl) {
101-
font-size: 20px;
102-
line-height: 24px;
103-
padding: 20px 10px;
100+
@media screen(mdMax) {
101+
font-size: 17px;
102+
line-height: 20px;
104103

105104
.linkIcon {
106-
width: 18px;
107-
height: 18px;
105+
width: 16px;
106+
height: 16px;
108107
}
109108
}
110109
}

β€Žsrc/components/HeroContainer/index.tsxβ€Ž renamed to β€Žsrc/components/HeroSection/index.tsxβ€Ž

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@ import cn from 'classnames'
22

33
import LayoutWidthContainer from '@dvcorg/gatsby-theme/src/components/LayoutWidthContainer'
44

5-
interface IHeroContainerProps {
5+
import * as styles from './styles.module.css'
6+
7+
interface IHeroSectionProps {
68
className?: string
79
children: React.ReactNode
8-
id?: HTMLDivElement['id']
910
}
1011

11-
const HeroContainer: React.FC<IHeroContainerProps> = ({
12-
className,
13-
children,
14-
id
15-
}) => (
16-
<div className={cn('w-full', className)} id={id}>
12+
const HeroSection: React.FC<IHeroSectionProps> = ({ className, children }) => (
13+
<div className={cn(styles.heroSection, className)}>
1714
<LayoutWidthContainer>{children}</LayoutWidthContainer>
1815
</div>
1916
)
2017

21-
export default HeroContainer
18+
export default HeroSection
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.heroSection {
2+
width: 100%;
3+
background-color: var(--color-light-blue);
4+
}

β€Žsrc/components/Home/Hero/GetStarted/GetStartedWithDvc.tsxβ€Ž

Lines changed: 0 additions & 61 deletions
This file was deleted.

β€Žsrc/components/Home/Hero/GetStarted/styles.module.cssβ€Ž

Lines changed: 0 additions & 152 deletions
This file was deleted.

β€Žsrc/components/Home/Hero/HeroTitleSection.tsxβ€Ž

Lines changed: 0 additions & 51 deletions
This file was deleted.

β€Žsrc/components/Home/Hero/index.tsxβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
Β (0)