diff options
author | 2024-03-20 01:21:25 +0100 | |
---|---|---|
committer | 2024-03-20 01:42:27 +0100 | |
commit | 3679722b7acd4d7056d7dded8b7b6564462f528c (patch) | |
tree | c6f3f4f05b7cb1336650781154b1d9e14fb70297 /src/components/landing/sections/Publications.tsx | |
parent | chore(deps): bump dependencies (diff) | |
download | blog-3679722b7acd4d7056d7dded8b7b6564462f528c.tar.gz blog-3679722b7acd4d7056d7dded8b7b6564462f528c.tar.zst blog-3679722b7acd4d7056d7dded8b7b6564462f528c.zip |
Simplify license links
Diffstat (limited to 'src/components/landing/sections/Publications.tsx')
-rw-r--r-- | src/components/landing/sections/Publications.tsx | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/src/components/landing/sections/Publications.tsx b/src/components/landing/sections/Publications.tsx index 068ec49..33f989f 100644 --- a/src/components/landing/sections/Publications.tsx +++ b/src/components/landing/sections/Publications.tsx | |||
@@ -20,11 +20,7 @@ import { | |||
20 | import Section from '@site/src/components/landing/Section'; | 20 | import Section from '@site/src/components/landing/Section'; |
21 | import Subtitle from '@site/src/components/landing/Subtitle'; | 21 | import Subtitle from '@site/src/components/landing/Subtitle'; |
22 | import authorizedLinks from '@site/src/components/landing/sections/authorizedLinks'; | 22 | import authorizedLinks from '@site/src/components/landing/sections/authorizedLinks'; |
23 | import { | 23 | import { CCLicenseLink, ClosedAccessLink } from '@site/src/components/licenses'; |
24 | CCLicenseLink, | ||
25 | ClosedAccessLink, | ||
26 | LicenseLink, | ||
27 | } from '@site/src/components/licenses'; | ||
28 | 24 | ||
29 | import styles from './Publications.module.css'; | 25 | import styles from './Publications.module.css'; |
30 | 26 | ||
@@ -129,14 +125,6 @@ function OpenAccess({ license }: { license: string }) { | |||
129 | ); | 125 | ); |
130 | } | 126 | } |
131 | 127 | ||
132 | function ArtifactLicense({ license, url }: { license: string; url: string }) { | ||
133 | return ( | ||
134 | <LicenseLink to={url} label="Artifact license"> | ||
135 | {license} | ||
136 | </LicenseLink> | ||
137 | ); | ||
138 | } | ||
139 | |||
140 | export default function Publications() { | 128 | export default function Publications() { |
141 | return ( | 129 | return ( |
142 | <Section id="publications" title="Publications"> | 130 | <Section id="publications" title="Publications"> |
@@ -164,15 +152,11 @@ export default function Publications() { | |||
164 | </i>{' '} | 152 | </i>{' '} |
165 | pp. 433–45. <DOILink doi="10.1145/3550355.3552448" />{' '} | 153 | pp. 433–45. <DOILink doi="10.1145/3550355.3552448" />{' '} |
166 | <PDFLink filename="models22" />{' '} | 154 | <PDFLink filename="models22" />{' '} |
155 | <ArtifactLink doi="10.5281/zenodo.6974248" />{' '} | ||
167 | <ClosedAccess | 156 | <ClosedAccess |
168 | publisher="ACM" | 157 | publisher="ACM" |
169 | url="https://authors.acm.org/journals/rights-permissions" | 158 | url="https://authors.acm.org/journals/rights-permissions" |
170 | authorizedURL={authorizedLinks.models22} | 159 | authorizedURL={authorizedLinks.models22} |
171 | />{' '} | ||
172 | <ArtifactLink doi="10.5281/zenodo.6974248" />{' '} | ||
173 | <ArtifactLicense | ||
174 | license="EPL-2.0" | ||
175 | url="https://www.eclipse.org/legal/epl-v20.html" | ||
176 | /> | 160 | /> |
177 | </li> | 161 | </li> |
178 | <li className={styles.publications__item}> | 162 | <li className={styles.publications__item}> |
@@ -225,15 +209,11 @@ export default function Publications() { | |||
225 | </i>{' '} | 209 | </i>{' '} |
226 | pp. 323–333. <DOILink doi="10.1145/3239372.3239412" />{' '} | 210 | pp. 323–333. <DOILink doi="10.1145/3239372.3239412" />{' '} |
227 | <PDFLink filename="models18" />{' '} | 211 | <PDFLink filename="models18" />{' '} |
212 | <ArtifactLink doi="10.5281/zenodo.1318156" />{' '} | ||
228 | <ClosedAccess | 213 | <ClosedAccess |
229 | publisher="ACM" | 214 | publisher="ACM" |
230 | url="https://authors.acm.org/journals/rights-permissions" | 215 | url="https://authors.acm.org/journals/rights-permissions" |
231 | authorizedURL={authorizedLinks.models18} | 216 | authorizedURL={authorizedLinks.models18} |
232 | />{' '} | ||
233 | <ArtifactLink doi="10.5281/zenodo.1318156" />{' '} | ||
234 | <ArtifactLicense | ||
235 | license="EPL-1.0" | ||
236 | url="https://www.eclipse.org/legal/epl-v10.html" | ||
237 | /> | 217 | /> |
238 | </li> | 218 | </li> |
239 | </ul> | 219 | </ul> |