aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/licenses.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-03-20 01:21:25 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-03-20 01:42:27 +0100
commit3679722b7acd4d7056d7dded8b7b6564462f528c (patch)
treec6f3f4f05b7cb1336650781154b1d9e14fb70297 /src/components/licenses.tsx
parentchore(deps): bump dependencies (diff)
downloadblog-3679722b7acd4d7056d7dded8b7b6564462f528c.tar.gz
blog-3679722b7acd4d7056d7dded8b7b6564462f528c.tar.zst
blog-3679722b7acd4d7056d7dded8b7b6564462f528c.zip
Simplify license links
Diffstat (limited to 'src/components/licenses.tsx')
-rw-r--r--src/components/licenses.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/licenses.tsx b/src/components/licenses.tsx
index 85b0cb2..f038b5f 100644
--- a/src/components/licenses.tsx
+++ b/src/components/licenses.tsx
@@ -15,7 +15,7 @@ export type LicenseLinkProps = LinkProps & { label?: string };
15 15
16export function LicenseLink({ children, label, ...props }: LicenseLinkProps) { 16export function LicenseLink({ children, label, ...props }: LicenseLinkProps) {
17 return ( 17 return (
18 <Link className={styles.link} {...props}> 18 <Link {...props}>
19 <Certificate weight="bold" aria-hidden="true" className={styles.icon} /> 19 <Certificate weight="bold" aria-hidden="true" className={styles.icon} />
20 <span className="sr-only">{label ?? 'License'}: </span> 20 <span className="sr-only">{label ?? 'License'}: </span>
21 {children} 21 {children}
@@ -29,7 +29,7 @@ export function MITLicenseLink() {
29 29
30export function CCLicenseLink({ children, label, ...props }: LicenseLinkProps) { 30export function CCLicenseLink({ children, label, ...props }: LicenseLinkProps) {
31 return ( 31 return (
32 <Link className={styles.link} {...props}> 32 <Link {...props}>
33 <CreativeCommonsIcon className={styles.icon} hidden /> 33 <CreativeCommonsIcon className={styles.icon} hidden />
34 <span className="sr-only">{label ?? 'Creative Commons license'}: </span> 34 <span className="sr-only">{label ?? 'Creative Commons license'}: </span>
35 {children} 35 {children}
@@ -51,7 +51,7 @@ export function ClosedAccessLink({
51 ...props 51 ...props
52}: LicenseLinkProps) { 52}: LicenseLinkProps) {
53 return ( 53 return (
54 <Link className={styles.link} {...props}> 54 <Link {...props}>
55 <Lock weight="bold" aria-hidden="true" className={styles.icon} /> 55 <Lock weight="bold" aria-hidden="true" className={styles.icon} />
56 <span className="sr-only">{label ?? 'Closed access'}: </span> 56 <span className="sr-only">{label ?? 'Closed access'}: </span>
57 {children} 57 {children}