Skip to content

Commit 0425cdf

Browse files
89 updated the highlight text to a gradient (#97)
1 parent 9db9921 commit 0425cdf

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import styled from 'styled-components'
2+
3+
const HighlightedText = styled.span`
4+
background: linear-gradient(234.45deg, #12c6ff 0%, #6184c9 68.23%);
5+
-webkit-background-clip: text;
6+
background-clip: text;
7+
-webkit-text-fill-color: transparent;
8+
color: #54ffff;
9+
`
10+
11+
export default HighlightedText

components/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export { default as CompanyLogo } from './company-logo'
55
export { default as Footer } from './footer'
66
export { default as Form } from './form'
77
export { default as Heading } from './heading'
8+
export { default as HighlightedText } from './highlighted-text'
89
export { default as Input } from './input'
910
export { default as SiteHeader } from './site-header'
1011
export { default as Testimonials } from './testimonials'

pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Footer,
66
Testimonials,
77
Heading,
8+
HighlightedText,
89
Text,
910
SiteHeader,
1011
} from 'components'
@@ -26,8 +27,7 @@ const Home = () => (
2627
<div className={styles.heroContent}>
2728
<Heading className={styles.heroHeading}>
2829
We are the community for{' '}
29-
<span className={styles.highlight}>remote-first</span> Software
30-
Engineers
30+
<HighlightedText>remote-first</HighlightedText> Software Engineers
3131
</Heading>
3232
<Text sectionText className={styles.heroText}>
3333
Commit is designing the future of work and we're putting Engineers

styles/Home.module.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ h1.heroHeading {
9292
margin-top: 200px;
9393
margin-bottom: 4.5rem;
9494
}
95-
h1.heroHeading .highlight {
96-
color: #54ffff;
97-
}
9895
p.heroText {
9996
font-family: Montserrat;
10097
font-size: 1.5rem;

0 commit comments

Comments
 (0)