Skip to content

Commit f1cd7b5

Browse files
committed
Add Website Status Component
1 parent c2c73b5 commit f1cd7b5

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

components/status.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react";
2+
3+
const Status = ({height=57,width=215}) => {
4+
return (
5+
<div>
6+
<iframe className="pt-2 pb-2"
7+
src="https://javaistic.instatus.com/embed-status/light-sm"
8+
height={height}
9+
width={width}
10+
fontSize="20px"
11+
frameBorder="0"
12+
scrolling="no"
13+
></iframe>
14+
</div>
15+
);
16+
};
17+
18+
export default Status;

theme.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import DocSearch from "components/docsearch";
22
import { useRouter } from "next/router";
3+
import Status from "components/status";
34

45
const Logo = ({ height }) => (
56
<svg height={height} viewBox="0 0 291 79" fill="none">
@@ -108,7 +109,7 @@ export default {
108109

109110
default:
110111
return (
111-
<a
112+
<><a
112113
href="https://vercel.com/?utm_source=javaistic&utm_campaign=oss"
113114
target="_blank"
114115
rel="noopener"
@@ -118,7 +119,7 @@ export default {
118119
<span>
119120
<Vercel />
120121
</span>
121-
</a>
122+
</a><Status /></>
122123
);
123124
}
124125
},

0 commit comments

Comments
 (0)