8000 [examples] add some components to examples · andrewvmail/react-sortablejs@d3cba97 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3cba97

Browse files
author
Wayne Van Son
committed
[examples] add some components to examples
1 parent da64f8e commit d3cba97

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

examples/app.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import React, { ReactElement } from "react";
22
import styled, { ThemeProvider } from "styled-components";
33
import * as Examples from "./components";
4-
//@ts-ignore
5-
// import Banner from "../react-sortablejs.png";
4+
import b from "json-beautify";
5+
66
const components = Object.entries(Examples);
77

88
function Contents() {
99
return (
1010
<Wrapper>
11-
<StyledImage>
12-
{/* <img src={Banner} /> */}
13-
</StyledImage>
1411
<Grid>
1512
{components.map(([name, Component], index) => (
1613
<Container key={index}>
@@ -25,6 +22,17 @@ function Contents() {
2522
);
2623
}
2724

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+
2836
const Wrapper = styled.div`
2937
display: flex;
3038
justify-content: center;
@@ -56,7 +64,7 @@ const Grid = styled.div`
5664
display: grid;
5765
padding: 1rem;
5866
background-color: #eee;
59-
border-radius: .7rem;
67+
border-radius: 0.7rem;
6068
gap: 1rem;
6169
animation: ease 200ms;
6270
@media (max-width: 600px) {

0 commit comments

Comments
 (0)
0