Skip to content

Commit 089d4ea

Browse files
adding complete-example
1 parent 541c9c1 commit 089d4ea

File tree

13 files changed

+331
-100
lines changed

13 files changed

+331
-100
lines changed

example/basic/App.css

Whitespace-only changes.

example/basic/App.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

example/basic/com/basic/com/eager/eagerPanel1.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

example/basic/com/basic/com/eager/eagerPanel2.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

example/basic/com/basic/index.css

Whitespace-only changes.

example/basic/com/basic/index.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

example/basic/com/basic/service/index.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

example/basic/index.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

example/complete-example/src/App.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
body {
2+
position: relative;
3+
left: 0px;
4+
top: 0px;
5+
margin: 0px;
6+
padding: 0px;
7+
background-color: lavender;
8+
overflow-y: scroll;
9+
overflow-x: hidden;
10+
}
11+
12+
select,
13+
button,
14+
input {
15+
outline: none;
16+
}
17+
18+
#root {
19+
position: absolute;
20+
left: 0px;
21+
right: 0px;
22+
top: 0px;
23+
bottom: 0px;
24+
}
25+
26+
#header {
27+
position: relative;
28+
margin: 15px;
29+
display: flex;
30+
align-items: center;
31+
justify-content: center;
32+
}
33+
34+
#header a {
35+
text-decoration: none;
36+
z-index: 2;
37+
}
38+
39+
#header h1 {
40+
text-align: center;
41+
color: #ab0000;
42+
margin: 0px;
43+
}
44+
45+
#actions > div {
46+
margin-right: 150px;
47+
}
48+
49+
@media only screen and (max-width: 580px) {
50+
#header {
51+
display: table;
52+
margin: auto;
53+
}
54+
}

example/complete-example/src/App.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
import './App.css';
3+
import Tabs from './components/tabs/tabs.js';
4+
function App() {
5+
return (
6+
<>
7+
<div id="header">
8+
<a href="https://github.com/dev-javascript/react-dyn-tabs" target="_blank">
9+
<h1>react-dyn-tabs</h1>
10+
</a>
11+
</div>
12+
<Tabs />
13+
</>
14+
);
15+
}
16+
17+
export default App;
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#actions > div {
2+
margin-right: 150px;
3+
}
4+
5+
@media only screen and (max-width: 580px) {
6+
#actions > div {
7+
margin-right: 0px;
8+
}
9+
}
10+
11+
#actions {
12+
margin-bottom: 5px;
13+
display: table;
14+
background-color: #eff0f1;
15+
padding: 10px;
16+
border-radius: 7px;
17+
margin: 10px;
18+
overflow: hidden;
19+
}
20+
21+
#actions button {
22+
float: left;
23+
margin: 2px;
24+
white-space: nowrap;
25+
}
26+
27+
.log-container {
28+
position: relative;
29+
}
30+
31+
.log-container::before {
32+
content: 'event log';
33+
position: absolute;
34+
top: 50%;
35+
left: 50%;
36+
transform: translate(-50%, -50%);
37+
font-weight: 500;
38+
color: #80808075;
39+
}
40+
41+
.log {
42+
background-color: #eff0f1;
43+
margin: 10px;
44+
color: #00000080;
45+
border-radius: 7px;
46+
max-height: 100px;
47+
overflow: auto;
48+
}
49+
50+
.log > pre {
51+
padding: 10px;
52+
margin: 0px;
53+
}
54+
55+
.clear-log {
56+
position: absolute;
57+
right: 30px;
58+
top: 5px;
59+
cursor: pointer;
60+
}

0 commit comments

Comments
 (0)