-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/gatsby-theme-iterative/src/components/LogoGradient/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react' | ||
import Link from '../Link' | ||
|
||
import * as styles from './styles.module.css' | ||
import cn from 'classnames' | ||
|
||
const LogoGradient = ({ | ||
href, | ||
className, | ||
children | ||
}: { | ||
href: string | ||
className?: string | ||
children: React.ReactNode | ||
}) => { | ||
return ( | ||
<Link | ||
href={href} | ||
className={cn( | ||
styles.logoGradient, | ||
'font-medium no-underline whitespace-nowrap ml-1.5 py-2.5 focus:opacity-75 md:px-2.5 md:ml-0', | ||
className | ||
)} | ||
> | ||
{children} | ||
</Link> | ||
) | ||
} | ||
|
||
export default LogoGradient |
11 changes: 11 additions & 0 deletions
11
packages/gatsby-theme-iterative/src/components/LogoGradient/styles.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.logoGradient { | ||
background: linear-gradient( | ||
270deg, | ||
var(--color-purple) 0%, | ||
var(--color-orange-bright) 100% | ||
); | ||
background-size: 100%; | ||
background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
-moz-text-fill-color: transparent; | ||
} |