File tree 3 files changed +70
-20
lines changed
3 files changed +70
-20
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ npm run dev
35
35
36
36
## Other templates
37
37
38
- There are nine templates for TinyBase, of which this is one:
38
+ There are ten templates for TinyBase, of which this is one:
39
39
40
40
| | Template | Language | React | Plus |
41
41
| --- | ---------------------------------------------------------------------------------------------- | ---------- | ----- | ------------------- |
@@ -44,6 +44,7 @@ There are nine templates for TinyBase, of which this is one:
44
44
| | [ vite-tinybase-react] ( https://github.com/tinyplex/vite-tinybase-react ) | JavaScript | Yes | |
45
45
| | [ vite-tinybase-ts-react] ( https://github.com/tinyplex/vite-tinybase-ts-react ) | TypeScript | Yes | |
46
46
| | [ vite-tinybase-ts-react-sync] ( https://github.com/tinyplex/vite-tinybase-ts-react-sync ) | TypeScript | Yes | Synchronization |
47
+ | | [ vite-tinybase-ts-react-pglite] ( https://github.com/tinyplex/vite-tinybase-ts-react-pglite ) | TypeScript | Yes | PGlite |
47
48
| | [ vite-tinybase-ts-react-crsqlite] ( https://github.com/tinyplex/vite-tinybase-ts-react-crsqlite ) | TypeScript | Yes | CR-SQLite |
48
49
| | [ tinybase-ts-react-partykit] ( https://github.com/tinyplex/tinybase-ts-react-partykit ) | TypeScript | Yes | PartyKit |
49
50
| | [ 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 ">
17
+ < header >
18
+ < h1 >
19
+ < img src ="/favicon.svg " />
20
+ TinyBase
21
+ </ h1 >
22
+ </ header >
19
23
< div id ="buttons ">
20
24
< button id ="countButton "> Increment number</ button >
21
25
< button id ="randomButton "> Random number</ button >
Original file line number Diff line number Diff line change 2
2
color : # bbb ;
3
3
background : # 111 ;
4
4
font-family : 'Inter' , sans-serif;
5
- }
6
-
7
- # logo {
8
- display : block;
9
- margin : 2rem auto;
10
- width : 6rem ;
11
- }
12
-
13
- h1 {
14
- text-align : center;
15
- font-weight : 800 ;
5
+ user-select : none;
16
6
}
17
7
18
8
# app {
21
11
display : grid;
22
12
grid-template-columns : 1fr ;
23
13
column-gap : 2rem ;
24
- row-gap : 2rem ;
14
+ align-items : start;
15
+ row-gap : 1rem ;
16
+ }
17
+
18
+ h1 {
19
+ font-weight : 600 ;
20
+ img {
21
+ margin-right : 1rem ;
22
+ height : 2.5rem ;
23
+ vertical-align : text-bottom;
24
+ }
25
+ }
26
+
27
+ h2 {
28
+ text-align : center;
29
+ font-weight : 800 ;
30
+ font-size : 1.3rem ;
31
+ margin : 1rem 0 0 ;
25
32
}
26
33
27
34
# buttons {
30
37
text-align : center;
31
38
}
32
39
33
- button {
40
+ # buttons button {
34
41
border : 1px solid # 666 ;
35
- border-radius : 1 rem ;
42
+ border-radius : 0.25 rem ;
36
43
padding : 0.5rem 1rem ;
37
44
background : # 222 ;
38
45
color : # fff ;
@@ -42,18 +49,56 @@ button {
42
49
width : 10rem ;
43
50
margin : 1rem ;
44
51
}
45
- button : hover {
52
+ # buttons button : hover {
46
53
border-color : # d81b60 ;
47
54
}
48
55
49
- summary {
50
- color : # fff ;
56
+ table {
57
+ border-collapse : collapse;
58
+ font-size : inherit;
59
+ line-height : inherit;
60
+ margin-top : 0.5rem ;
61
+ table-layout : fixed;
62
+ width : 100% ;
63
+ margin-bottom : 2rem ;
64
+ caption-side : bottom;
65
+ }
66
+ table caption {
67
+ text-align : left;
68
+ button {
69
+ border : 0 ;
70
+ margin-right : 0.25rem ;
71
+ }
72
+ }
73
+ table caption button {
74
+ line-height : 0.7rem ;
75
+ margin : 0 0.25rem 0 0 ;
76
+ vertical-align : middle;
77
+ }
78
+ th ,
79
+ td {
80
+ padding : 0.25rem 0.5rem 0.25rem 0 ;
81
+ text-align : left;
82
+ }
83
+ thead th ,
84
+ thead td {
85
+ border : solid # 999 ;
86
+ border-width : 1px 0 ;
87
+ }
88
+ tbody th ,
89
+ tbody td {
90
+ border-bottom : 1px solid # 333 ;
91
+ }
92
+
93
+ table .sortedTable thead th {
94
+ cursor : pointer;
51
95
}
52
96
53
97
@media (min-width : 40rem ) {
54
98
# app {
55
99
grid-template-columns : 1fr 1fr ;
56
100
}
101
+ header ,
57
102
# buttons {
58
103
grid-column : span 2 ;
59
104
}
You can’t perform that action at this time.
0 commit comments