Skip to content

Commit

Permalink
chore: change font color and family
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Oct 2, 2023
1 parent be9fb3e commit 023c9fd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/content/Sponsor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
link: 'https://mlh.io/',
width: '170px',
alt: 'Major League Hacking',
color: '#5c9dff',
color: 'accent',
},
],
beta: [
Expand Down
19 changes: 18 additions & 1 deletion src/components/Sponsors/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ const SponsorLogo = styled.div`
}
`;

const SponsorTitle = styled(Heading3)`
${tw`text-center font-Inter`}
color: ${(props) => props.color};
${({ accent }) =>
accent
? `
background: var(--brand-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
`
: ''}
`;

export const SponsorIcon = ({ pic, alt, size, link, margin, marginTop, title, color }) => (
<SponsorLogo style={{ margin }}>
{pic ? (
Expand All @@ -35,7 +50,9 @@ export const SponsorIcon = ({ pic, alt, size, link, margin, marginTop, title, co
) : (
<div />
)}
<Heading3 style={{ paddingTop: '2rem', color }}>{title}</Heading3>
<SponsorTitle color={color} accent={color === 'accent'}>
{title}
</SponsorTitle>
</SponsorLogo>
);

Expand Down

0 comments on commit 023c9fd

Please sign in to comment.