File tree Expand file tree Collapse file tree 4 files changed +24
-27
lines changed Expand file tree Collapse file tree 4 files changed +24
-27
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ npm run dev
36
36
37
37
## Other templates
38
38
39
- There are nine templates for TinyBase, of which this is one:
39
+ There are ten templates for TinyBase, of which this is one:
40
40
41
41
| | Template | Language | React | Plus |
42
42
| --- | ---------------------------------------------------------------------------------------------- | ---------- | ----- | ------------------- |
@@ -45,6 +45,7 @@ There are nine templates for TinyBase, of which this is one:
45
45
| 👉 | [ vite-tinybase-react] ( https://github.com/tinyplex/vite-tinybase-react ) | JavaScript | Yes | |
46
46
| | [ vite-tinybase-ts-react] ( https://github.com/tinyplex/vite-tinybase-ts-react ) | TypeScript | Yes | |
47
47
| | [ vite-tinybase-ts-react-sync] ( https://github.com/tinyplex/vite-tinybase-ts-react-sync ) | TypeScript | Yes | Synchronization |
48
+ | | [ vite-tinybase-ts-react-pglite] ( https://github.com/tinyplex/vite-tinybase-ts-react-pglite ) | TypeScript | Yes | PGlite |
48
49
| | [ vite-tinybase-ts-react-crsqlite] ( https://github.com/tinyplex/vite-tinybase-ts-react-crsqlite ) | TypeScript | Yes | CR-SQLite |
49
50
| | [ tinybase-ts-react-partykit] ( https://github.com/tinyplex/tinybase-ts-react-partykit ) | TypeScript | Yes | PartyKit |
50
51
|
8000
| [ tinybase-ts-react-electricsql] ( https://github.com/tinyplex/tinybase-ts-react-electricsql ) | TypeScript | Yes | ElectricSQL |
Original file line number Diff line number Diff line change 13
13
< link rel ="icon " type ="image/svg+xml " href ="/favicon.svg " />
14
14
</ head >
15
15
< body >
16
- < img id ="logo " src ="/favicon.svg " />
17
- < h1 > A TinyBase App</ h1 >
18
16
< div id ="app "> </ div >
19
17
< script type ="module " src ="/src/index.jsx "> </ script >
20
18
</ body >
Original file line number Diff line number Diff line change @@ -26,20 +26,18 @@ export const App = () => {
26
26
return (
27
27
< StrictMode >
28
28
< Provider store = { store } >
29
+ < header >
30
+ < h1 >
31
+ < img src = '/favicon.svg' />
32
+ TinyBase & React
33
+ </ h1 >
34
+ </ header >
29
35
< Buttons />
30
36
< div >
31
37
< h2 > Values</ h2 >
32
38
< ValuesInHtmlTable />
33
39
</ div >
34
40
< div >
35
- < h2 > Species Table</ h2 >
36
- < SortedTableInHtmlTable
37
- tableId = 'species'
38
- cellId = 'price'
39
- descending = { true }
40
- sortOnClick = { true }
41
- className = 'sortedTable'
42
- />
43
41
< h2 > Pets Table</ h2 >
44
42
< SortedTableInHtmlTable
45 43
tableId = 'pets'
Original file line number Diff line number Diff line change 5
5
user-select : none;
6
6
}
7
7
8
- # logo {
9
- display : block ;
8
+ # app {
9
+ max-width : 40 rem ;
10
10
margin : 2rem auto;
11
- width : 6rem ;
11
+ display : grid;
12
+ grid-template-columns : 1fr ;
13
+ column-gap : 2rem ;
14
+ align-items : start;
15
+ row-gap : 1rem ;
12
16
}
13
17
14
18
h1 {
15
- text-align : center;
16
- font-weight : 800 ;
19
+ font-weight : 600 ;
20
+ img {
21
+ margin-right : 1rem ;
22
+ height : 2.5rem ;
23
+ vertical-align : text-bottom;
24
+ }
17
25
}
18
26
19
27
h2 {
23
31
margin : 1rem 0 0 ;
24
32
}
25
33
26
- # app {
27
- max-width : 40rem ;
28
- margin : 2rem auto;
29
- display : grid;
30
- grid-template-columns : 1fr ;
31
- column-gap : 2rem ;
32
- align-items : start;
33
- row-gap : 1rem ;
34
- }
35
-
36
34
# buttons {
37
35
border : solid # 666 ;
38
36
border-width : 1px 0 ;
41
39
42
40
# buttons button {
43
41
border : 1px solid # 666 ;
44
- border-radius : 1 rem ;
42
+ border-radius : 0.25 rem ;
45
43
padding : 0.5rem 1rem ;
46
44
background : # 222 ;
47
45
color : # fff ;
@@ -63,6 +61,7 @@ table {
63
61
table-layout : fixed;
64
62
width : 100% ;
65
63
margin-bottom : 2rem ;
64
+ caption-side : bottom;
66
65
}
67
66
table caption {
68
67
text-align : left;
@@ -99,6 +98,7 @@ table.sortedTable thead th {
99
98
# app {
100
99
grid-template-columns : 1fr 1fr ;
101
100
}
101
+ header ,
102
102
# buttons {
103
103
grid-column : span 2 ;
104
104
}
You can’t perform that action at this time.
0 commit comments