File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ReactElement } from "react" ;
2
2
import styled , { ThemeProvider } from "styled-components" ;
3
3
import * as Examples from "./components" ;
4
- // @ts -ignore
5
- // import Banner from "../react-sortablejs.png";
4
+ import b from "json-beautify" ;
5
+
6
6
const components = Object . entries ( Examples ) ;
7
7
8
8
function Contents ( ) {
9
9
return (
10
10
< Wrapper >
11
- < StyledImage >
12
- { /* <img src={Banner} /> */ }
13
- </ StyledImage >
14
11
< Grid >
15
12
{ components . map ( ( [ name , Component ] , index ) => (
16
13
< Container key = { index } >
@@ -25,6 +22,17 @@ function Contents() {
25
22
) ;
26
23
}
27
24
25
+ const Code = styled . pre `
26
+ display: block;
27
+ background-color: #0003;
28
+ padding: 1rem;
29
+ font-size: 0.7rem;
30
+ border-radius: 0.25rem;
31
+ word-wrap: break-word;
32
+ overflow: default;
33
+ text-overflow: default;
34
+ ` ;
35
+
28
36
const Wrapper = styled . div `
29
37
display: flex;
30
38
justify-content: center;
@@ -56,7 +64,7 @@ const Grid = styled.div`
56
64
display: grid;
57
65
padding: 1rem;
58
66
background-color: #eee;
59
- border-radius: .7rem;
67
+ border-radius: 0 .7rem;
60
68
gap: 1rem;
61
69
animation: ease 200ms;
62
70
@media (max-width: 600px) {
You can’t perform that action at this time.
0 commit comments