Skip to content

Commit

Permalink
chore: Add github corners.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 30, 2021
1 parent 47e2b54 commit ae7b038
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@uiw/react-github-corners": "1.2.0",
"@uiw/copy-to-clipboard": "1.0.11",
"react": "17.0.2",
"react-color": "2.19.3",
Expand Down
8 changes: 8 additions & 0 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useRef, useState } from 'react';
import GitHubCorners from '@uiw/react-github-corners';
import { SketchPicker, ColorResult, RGBColor } from 'react-color'
import styles from './App.module.css'
import Code from './Code'
Expand All @@ -15,6 +16,13 @@ export default function App() {
backgroundColor: `rgba(${color.r}, ${color.g}, ${color.b}, ${color.a})`
}}
>
<GitHubCorners
fixed
zIndex={999}
size={60}
target="__blank"
href="https://github.com/uiwjs/ui-color"
/>
<div className={styles.header}>
<div>
<SketchPicker
Expand Down

0 comments on commit ae7b038

Please sign in to comment.