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

Add Info about VS Code Extension #3651

Merged
merged 3 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ const footerListsData: Array<IFooterListData> = [
text: 'MLEM',
icon: <MlemSVG className={styles.productIcon} />,
target: '_blank'
},
{
href: 'https://marketplace.visualstudio.com/items?itemName=Iterative.dvc',
text: 'VS Code Extension',
icon: <LogoSVG className={styles.productIcon} />,
target: '_blank'
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const OtherToolsPopup: React.FC<IPopupProps> = ({
}) => (
<BasePopup className={styles.otherToolsPopup} isVisible={isVisible}>
{menuData.products.map(
({ title, iconClass, description, href, target }, i) => (
({ title, iconClass, description, href, target, titleImgClass }, i) => (
<Link
className={styles.link}
href={href}
Expand All @@ -84,8 +84,11 @@ export const OtherToolsPopup: React.FC<IPopupProps> = ({
<div className={cn(styles.linkIcon, iconClass)} />
<p className={styles.title}>
{title}
{titleImgClass && (
<span className={cn(styles.titleIcon, titleImgClass)}></span>
)}
{/^https?:\/\//.test(href) && (
<ExternalLinkIcon className={styles.titleIcon} />
<ExternalLinkIcon className={styles.titleExternalIcon} />
)}
</p>
<p className={styles.description}>{description}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
background-image: url("../../../../../../../static/img/mlem-icon.svg");
}

.vscodeIcon {
background-image: url("../../../../../../../static/img/vscode-icon.svg");
}

.communityPopup {
row-gap: 4px;
width: 260px;
Expand All @@ -69,7 +73,7 @@
grid-template-columns: 32px 216px;
column-gap: 16px;

&:hover .titleIcon {
&:hover .titleExternalIcon {
opacity: 1;
}

Expand All @@ -90,9 +94,18 @@
line-height: 24px;
display: flex;
align-items: center;

&Icon {
margin-left: 4px;
margin-bottom: 2px;
width: 14px;
height: 14px;
background-size: contain;
background-repeat: no-repeat;
}
}

.titleIcon {
.titleExternalIcon {
opacity: 0;
width: 16px;
height: 16px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import cn from 'classnames'
import React from 'react'

import { ReactComponent as VscodeIcon } from '../../../../../static/img/vscode-icon.svg'
import Link from '@dvcorg/gatsby-theme-iterative/src/components/Link'

import * as styles from './styles.module.css'
Expand All @@ -9,14 +10,18 @@ const LayoutAlert: React.FC<{ collapsed: boolean }> | false = ({
collapsed
}) => (
<div className={cn(styles.alert, collapsed && styles.collapsed)}>
<span role="img" aria-label="rocket">
🚀
</span>{' '}
Our new tool for deployment,{' '}
<Link href="https://mlem.ai" tabIndex={collapsed ? -1 : undefined}>
MLEM
</Link>
, has been released!
<div className={styles.text}>
<span role="img" aria-label="VS Code Logo">
<VscodeIcon width="22px" height="22px" />
</span>
<p>
Check out our{' '}
<Link href="https://marketplace.visualstudio.com/items?itemName=Iterative.dvc">
new VS Code extension
</Link>{' '}
for experiment tracking and model development
</p>
</div>
</div>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,25 @@
height: 0;
transform: translateY(-100%);
}

.text {
align-items: center;
display: flex;
justify-content: center;
overflow: hidden;
padding: 0 16px;
}

p {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

span {
height: 22px;
margin-right: 8px;
}
}

.gitHubAlertLink {
Expand Down
12 changes: 11 additions & 1 deletion src/@dvcorg/gatsby-theme-iterative/components/data/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ interface ICommunityData {

interface IProductsData {
title: string
titleImgClass?: string
description: string
iconClass: string
iconClass: string | null
href: string
img: string
imgAlt: string
Expand Down Expand Up @@ -136,6 +137,15 @@ const menuData: IMenuData = {
img: '/img/dvc_icon-color--square_vector.svg',
imgAlt: 'DVC logo'
},
{
title: 'VS Code Extension',
titleImgClass: styles.vscodeIcon,
description: 'Local ML model development and experiment tracking',
iconClass: null,
href: 'https://marketplace.visualstudio.com/items?itemName=Iterative.dvc',
img: '/img/dvc_icon-color--square_vector.svg',
imgAlt: 'DVC logo'
},
{
title: 'CML',
description: 'Open-source CI/CD for ML projects',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
background-image: url("../../../../../static/img/mlem-icon.svg");
}

.vscodeIcon {
background-image: url("../../../../../static/img/vscode-icon.svg");
}

.other {
font-weight: 600;
letter-spacing: 2px;
Expand Down
16 changes: 16 additions & 0 deletions src/components/Features/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ const FeaturesPage: React.FC = () => (
</HeroSection>
<LayoutWidthContainer>
<div className={styles.features}>
<div className={styles.feature}>
<img
className={styles.featureIcon}
src="/img/features/icons/cluster.svg"
alt="cluster"
/>
<h3 className={styles.featureName}>VS Code Extension</h3>
<div className={styles.featureDescription}>
Manage your data, run experiments, compare metrics, and visualize
plots, all in VS Code. Extend DVC capabilities and your ML
experimentation workflows directly into your IDE.{' '}
<Link href="https://marketplace.visualstudio.com/items?itemName=Iterative.dvc">
Start using it now
</Link>
</div>
</div>
<div className={styles.feature}>
<img
className={styles.featureIcon}
Expand Down
15 changes: 15 additions & 0 deletions src/components/Features/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
flex-basis: 311px;
padding: 0 10px;
margin-bottom: 63px;

&:first-child {
flex-basis: 100%;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
padding: 0 110px;

@media (--xs-scr) {
align-items: flex-start;
padding: 0 10px;
text-align: left;
}
}
}

.featureIcon {
Expand Down
41 changes: 41 additions & 0 deletions static/img/vscode-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.