Skip to content

Commit 366f5bb

Browse files
authored
Update theme (#248)
1 parent 5b2fc1a commit 366f5bb

File tree

6 files changed

+57
-23
lines changed

6 files changed

+57
-23
lines changed

packages/gatsby-theme-iterative/config/prismjs/dvc-commands.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ module.exports = [
7373
'stage list',
7474
'stage',
7575
'status',
76+
'studio login',
77+
'studio logout',
78+
'studio token',
79+
'studio',
7680
'unfreeze',
7781
'unprotect',
7882
'update',

packages/gatsby-theme-iterative/src/components/HamburgerMenu/index.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import studioLogo from '../../images/studio_icon-color--square_vector.svg'
1717
import mlemLogo from '../../images/mlem-icon.svg'
1818

1919
import * as styles from './styles.module.css'
20+
import LogoGradient from '../LogoGradient'
2021

2122
const docsPage = getFirstPage()
2223

@@ -75,13 +76,9 @@ export const HamburgerMenu: React.FC<
7576
>
7677
<LogoSVG />
7778
</Link>
78-
<Link
79-
className={styles.company}
80-
href="https://iterative.ai/"
81-
target="_blank"
82-
>
83-
by <span className={styles.companyName}>iterative.ai</span>
84-
</Link>
79+
<LogoGradient className="mr-auto" href="https://dvc.ai/">
80+
by <span className="font-extrabold">dvc.ai</span>
81+
</LogoGradient>
8582
</div>
8683
<ul className={styles.sections}>
8784
<li className={styles.section}>

packages/gatsby-theme-iterative/src/components/LayoutFooter/index.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import { ReactComponent as TwitterSVG } from '../SocialIcon/twitter.svg'
1313
import { ReactComponent as DiscordSVG } from '../SocialIcon/discord.svg'
1414
import { ReactComponent as CmlSVG } from '../../images/cml_icon-color--square_vector.svg'
1515
import { ReactComponent as StudioSVG } from '../../images/studio_icon-color--square_vector.svg'
16-
import { ReactComponent as IterativeSVG } from '../../images/iterative_icon-color--square_vector.svg'
1716
import { ReactComponent as MlemSVG } from '../../images/mlem-icon.svg'
1817

1918
import * as styles from './styles.module.css'
19+
import LogoGradient from '../LogoGradient'
2020

2121
const docsPage = getFirstPage()
2222

@@ -189,14 +189,9 @@ const LayoutFooter: React.FC = () => (
189189
<div className={styles.bottomRow}>
190190
<p className={styles.companyLabel}>
191191
By{' '}
192-
<Link
193-
className={styles.companyName}
194-
href="https://iterative.ai/"
195-
target="_blank"
196-
>
197-
<IterativeSVG className={styles.companyLogo} />
198-
iterative.ai
199-
</Link>
192+
<LogoGradient className="font-extrabold mr-1" href="https://dvc.ai">
193+
dvc.ai
194+
</LogoGradient>
200195
<span className={styles.companyDescription}>
201196
<ShowOnly as="span" on="desktop">
202197
{' '}

packages/gatsby-theme-iterative/src/components/LayoutHeader/HeaderBranding/index.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@ import React from 'react'
33
import Link from '../../Link'
44
import { ReactComponent as LogoSVG } from '../../../images/dvc_icon-color--square_vector.svg'
55
import * as styles from './styles.module.css'
6+
import LogoGradient from '../../LogoGradient'
67

78
export const HeaderBranding = () => (
89
<>
910
<Link href="/" className={styles.logoLink} title="DVC" aria-label="DVC">
1011
<LogoSVG className={styles.logo} />
1112
</Link>
12-
<Link
13-
className={styles.company}
14-
href="https://iterative.ai/"
15-
target="_blank"
16-
>
17-
by <span className={styles.companyName}>iterative.ai</span>
18-
</Link>
13+
<LogoGradient className="mr-auto text-sm" href="https://dvc.ai/">
14+
by <span className="font-extrabold">dvc.ai</span>
15+
</LogoGradient>
1916
</>
2017
)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from 'react'
2+
import Link from '../Link'
3+
4+
import * as styles from './styles.module.css'
5+
import cn from 'classnames'
6+
7+
const LogoGradient = ({
8+
href,
9+
className,
10+
children
11+
}: {
12+
href: string
13+
className?: string
14+
children: React.ReactNode
15+
}) => {
16+
return (
17+
<Link
18+
href={href}
19+
className={cn(
20+
styles.logoGradient,
21+
'font-medium no-underline whitespace-nowrap ml-1.5 py-2.5 focus:opacity-75 md:px-2.5 md:ml-0',
22+
className
23+
)}
24+
>
25+
{children}
26+
</Link>
27+
)
28+
}
29+
30+
export default LogoGradient
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.logoGradient {
2+
background: linear-gradient(
3+
270deg,
4+
var(--color-purple) 0%,
5+
var(--color-orange-bright) 100%
6+
);
7+
background-size: 100%;
8+
background-clip: text;
9+
-webkit-text-fill-color: transparent;
10+
-moz-text-fill-color: transparent;
11+
}

0 commit comments

Comments
 (0)