File tree Expand file tree Collapse file tree 6 files changed +57
-23
lines changed
packages/gatsby-theme-iterative
LayoutHeader/HeaderBranding Expand file tree Collapse file tree 6 files changed +57
-23
lines changed Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import studioLogo from '../../images/studio_icon-color--square_vector.svg'
1717import mlemLogo from '../../images/mlem-icon.svg'
1818
1919import * as styles from './styles.module.css'
20+ import LogoGradient from '../LogoGradient'
2021
2122const 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 } >
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ import { ReactComponent as TwitterSVG } from '../SocialIcon/twitter.svg'
1313import { ReactComponent as DiscordSVG } from '../SocialIcon/discord.svg'
1414import { ReactComponent as CmlSVG } from '../../images/cml_icon-color--square_vector.svg'
1515import { ReactComponent as StudioSVG } from '../../images/studio_icon-color--square_vector.svg'
16- import { ReactComponent as IterativeSVG } from '../../images/iterative_icon-color--square_vector.svg'
1716import { ReactComponent as MlemSVG } from '../../images/mlem-icon.svg'
1817
1918import * as styles from './styles.module.css'
19+ import LogoGradient from '../LogoGradient'
2020
2121const 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 { ' ' }
Original file line number Diff line number Diff line change @@ -3,18 +3,15 @@ import React from 'react'
33import Link from '../../Link'
44import { ReactComponent as LogoSVG } from '../../../images/dvc_icon-color--square_vector.svg'
55import * as styles from './styles.module.css'
6+ import LogoGradient from '../../LogoGradient'
67
78export 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)
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments