mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
ui(resources): style the TPH link
This commit is contained in:
@@ -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>
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user