File tree 2 files changed +21
-0
lines changed
routes/package/(_components)
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2024 the JSR authors. All rights reserved. MIT license.
2
+ export function ExternalLink ( props : { class ?: string ; strokeWidth ?: string } ) {
3
+ return (
4
+ < svg
5
+ fill = "none"
6
+ stroke-width = { props . strokeWidth ?? "1.5" }
7
+ stroke = "currentColor"
8
+ viewBox = "0 0 24 24"
9
+ xmlns = "http://www.w3.org/2000/svg"
10
+ class = { `size-4 ${ props . class ?? "" } ` }
11
+ >
12
+ < path
13
+ stroke-linecap = "round"
14
+ stroke-linejoin = "round"
15
+ d = "M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"
16
+ />
17
+ </ svg >
18
+ ) ;
19
+ }
Original file line number Diff line number Diff line change 1
1
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
2
2
import { Package , PackageVersionWithUser } from "../../../utils/api_types.ts" ;
3
+ import { ExternalLink } from "../../../components/icons/ExternalLink.tsx" ;
3
4
import { GitHub } from "../../../components/icons/GitHub.tsx" ;
4
5
import { RuntimeCompatIndicator } from "../../../components/RuntimeCompatIndicator.tsx" ;
5
6
import { getScoreTextColorClass } from "../../../utils/score_ring_color.ts" ;
@@ -141,6 +142,7 @@ export function PackageHeader(
141
142
< span >
142
143
{ pkg . githubRepository . owner } /{ pkg . githubRepository . name }
143
144
</ span >
145
+ < ExternalLink strokeWidth = "2.25" />
144
146
</ a >
145
147
) }
146
148
</ div >
You can’t perform that action at this time.
0 commit comments