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;
}
`
+2 -2
View File
@@ -1,6 +1,6 @@
import { Link } from "gatsby"
import React, { Fragment } from "react"
import { ResourcesLink } from "../components/ResourcesLink"
import { ResourcesList } from "../components/ResourcesList"
import { SEO } from "../components/SEO"
@@ -12,7 +12,7 @@ function ResourcesPage() {
<p>
This is meant as a small knowledge base for commonly answered questions
on our Discord community,{" "}
<Link to="/about">The Programmer's Hangout</Link>.
<ResourcesLink to="/about">The Programmer's Hangout</ResourcesLink>.
</p>
<ResourcesList />
</Fragment>