Skip to content

Commit 3e1e6e8

Browse files
committed
Show type checker info on UI, fixed laike9m#30
1 parent b5f1ed3 commit 3e1e6e8

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

templates/components/badge.html

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,29 @@
66
align-items: center;
77
justify-content: center;
88
padding: 2px 4px;
9+
margin-right: 4px;
910
height: 30px;
1011
border-radius: 5px;
1112
background-color: #6cb8d4;
1213
color: white;
13-
font-size: 15px;
14+
font-size: 14px;
1415
font-weight: bold;
1516
}
1617

18+
.badge a {
19+
color: white;
20+
}
21+
22+
.badge span:nth-child(2),
23+
.badge span a {
24+
font-weight: lighter;
25+
}
26+
1727
.badge span:nth-child(1) svg {
1828
width: 16px;
1929
height: 16px;
2030
margin-right: 5px;
2131
}
22-
23-
.badge span:nth-child(2) {
24-
font-size: 14px;
25-
font-weight: lighter;
26-
}
2732
</style>
2833
</head>
2934

@@ -33,4 +38,12 @@
3338
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 256 255"><defs><linearGradient id="logosPython0" x1="12.959%" x2="79.639%" y1="12.039%" y2="78.201%"><stop offset="0%" stop-color="#387EB8"/><stop offset="100%" stop-color="#366994"/></linearGradient><linearGradient id="logosPython1" x1="19.128%" x2="90.742%" y1="20.579%" y2="88.429%"><stop offset="0%" stop-color="#FFE052"/><stop offset="100%" stop-color="#FFC331"/></linearGradient></defs><path fill="url(#logosPython0)" d="M126.916.072c-64.832 0-60.784 28.115-60.784 28.115l.072 29.128h61.868v8.745H41.631S.145 61.355.145 126.77c0 65.417 36.21 63.097 36.21 63.097h21.61v-30.356s-1.165-36.21 35.632-36.21h61.362s34.475.557 34.475-33.319V33.97S194.67.072 126.916.072ZM92.802 19.66a11.12 11.12 0 0 1 11.13 11.13a11.12 11.12 0 0 1-11.13 11.13a11.12 11.12 0 0 1-11.13-11.13a11.12 11.12 0 0 1 11.13-11.13Z"/><path fill="url(#logosPython1)" d="M128.757 254.126c64.832 0 60.784-28.115 60.784-28.115l-.072-29.127H127.6v-8.745h86.441s41.486 4.705 41.486-60.712c0-65.416-36.21-63.096-36.21-63.096h-21.61v30.355s1.165 36.21-35.632 36.21h-61.362s-34.475-.557-34.475 33.32v56.013s-5.235 33.897 62.518 33.897Zm34.114-19.586a11.12 11.12 0 0 1-11.13-11.13a11.12 11.12 0 0 1 11.13-11.131a11.12 11.12 0 0 1 11.13 11.13a11.12 11.12 0 0 1-11.13 11.13Z"/></svg>
3439
</span>
3540
<span>{{ python_info }}</span>
36-
</div>
41+
</div>
42+
<div class="badge">
43+
<span>type checker:&nbsp;<span>
44+
<span>
45+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/microsoft/pyright">
46+
pyright
47+
</a>
48+
</span>
49+
</div>

0 commit comments

Comments
 (0)