ui(resources): style the TPH link

This commit is contained in:
Jean-Philippe Sirois
2019-09-17 01:58:44 -04:00
parent b6b4c9df61
commit 94f8c5317d
3 changed files with 29 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
import React, { PropsWithChildren } from "react"
import * as SC from "./styles"
export function ResourcesLink({
children,
to,
}: PropsWithChildren<{
to: string
}>) {
return <SC.ResourcesLinkWrapper to={to}>{children}</SC.ResourcesLinkWrapper>
}
+16
View File
@@ -0,0 +1,16 @@
import { Link } from "gatsby"
import styled from "styled-components"
export const ResourcesLinkWrapper = styled(Link)`
color: #0090d8;
font-weight: 700;
border-bottom: 2px solid;
text-decoration: none;
transition: color 0.3s;
&:hover,
&:focus {
color: #5dbbea;
transition: none;
}
`