Skip to content

Commit

Permalink
website: update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 15, 2021
1 parent 590ad66 commit a0d1e67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
background: #03a132;
}
.keyboard kbd {
font-weight: bold;
display: inline-block;
background: #eff0f2;
border-radius: 3px;
Expand Down
2 changes: 2 additions & 0 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Fragment, useEffect, useState } from 'react';
import ReactJson from 'react-json-view';
import CopyToClipboard from '@uiw/react-copy-to-clipboard';
import GitHubCorners from '@uiw/react-github-corners';
import './App.css';

type Writeable<T> = { -readonly [P in keyof T]: T[P] };
Expand Down Expand Up @@ -67,6 +68,7 @@ const App = () => {
}, []);
return (
<div className="App">
<GitHubCorners fixed size={56} target="_blank" href="https://github.com/uiwjs/keycode-info" />
{copied && <div className="copied-info">copied</div>}
<header className="App-header">
{!data && <div className="help">Press any key to get the JavaScript event keycode</div>}
Expand Down

0 comments on commit a0d1e67

Please sign in to comment.