Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

Layout.tsx

49 lines1.1 KB

1import React from 'react'
2​
3export const Layout = ({ children }: { children: React.ReactNode }) => {
4 return (
5 <main>
6 {children}
7 <style jsx global>{`
8 * {
9 font-family: Menlo, Monaco, 'Lucida Console', 'Liberation Mono',
10 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New',
11 monospace, serif;
12 }
13 body {
14 margin: 0;
15 padding: 25px 50px;
16 }
17 a {
18 color: #22bad9;
19 }
20 p {
21 font-size: 14px;
22 line-height: 24px;
23 }
24 article {
25 margin: 0 auto;
26 max-width: 650px;
27 }
28 button {
29 align-items: center;
30 background-color: #22bad9;
31 border: 0;
32 color: white;
33 display: flex;
34 padding: 5px 7px;
35 transition: background-color 0.3s;
36 }
37 button:active {
38 background-color: #1b9db7;
39 }
40 button:disabled {
41 background-color: #b5bebf;
42 }
43 button:focus {
44 outline: none;
45 }
46 `}</style>
47 </main>
48 )