-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_app.tsx
165 lines (158 loc) · 5 KB
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
//@ts-nocheck
import React from 'react';
import {ApolloProvider} from '@apollo/client';
import client from '../src/middleware/graphql/apollo-client';
import type {AppProps /*, AppContext */, NextWebVitalsMetric} from 'next/app';
import Navbar from '../src/components/ui/Navbar';
import Footer from '../src/components/ui/Footer';
import {Provider} from 'react-redux';
// @ts-ignore
import {store} from '../src/store';
import Head from 'next/head';
import metrics from '../src/metrics';
import 'bootstrap/dist/css/bootstrap.min.css';
import WalletProvider from '../dabu/WalletProvider';
import {ChainId} from '@thirdweb-dev/react';
import TwitchEmbed from '@/src/components/blocks/TwitchEmbed';
function MyApp({Component, pageProps}: AppProps) {
return (
<WalletProvider
desiredChainId={ChainId.Polygon}
supportedChains={[ChainId.Mainnet, ChainId.Polygon]}>
{({connected, dabu, address, connect}) => {
// console.log('pageProps',dabu);
return (
<ApolloProvider client={client}>
<Head>
<link href='bootstrap/dist/css/bootstrap.min.css' />
</Head>
<style jsx global>
{`
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
html,
body,
#__next {
display: flex;
flex-direction: column;
height: 100%;
font-family: 'Inter', monospace;
}
body {
background: url('lookoutbg.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-color: rgba(255, 255, 255, 0.8);
background-blend-mode: lighten;
}
#tako {
height: calc(100% - 110.25px);
overflow-y: scroll;
}
button,
p {
font-size: 1.25rem;
}
.bg-white {
background-color: rgba(255, 255, 255, 0.6);
}
.fnt-color-black {
color: #000;
}
.fnt-color-black:hover {
color: #000;
}
.text-decoraction-none {
text-decoration: none;
}
.no-cursor {
cursor: none;
}
.pointer,
.cursor-pointer {
cursor: pointer;
}
.no-select {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.overflow-y-scroll {
overflow-y: scroll;
}
.z-2 {
z-index: 2;
}
.z-3 {
z-index: 3;
}
.MuiButton-startIcon {
display: none !important;
}
.img-wrap {
height: 150px;
width: 150px;
}
.width-10rem {
width: 10rem !important;
}
.width-15rem {
width: 15rem !important;
}
.width-20rem {
width: 20rem !important;
}
.width-25rem {
width: 25rem !important;
}
//fonts
.h6 {
font-size: 1.25rem;
}
// sections
.wrapper {
width: 100%;
max-width: 1400px !important;
}
.s1 {
min-height: 800px;
}
.s2 {
min-height: 600px;
}
.s3 {
min-height: 400px;
}
`}
</style>
<Provider store={store}>
<Navbar
siteTitle={"Moika's Lookout"}
address={address}
connect={connect}
/>
{/*TODO: Create Layout*/}
<div id='tako' className='position-relative'>
<Component
{...{
...pageProps,
connected: connected,
dabu,
address,
connect,
}}
/>
<div className='position-absolute bottom-0 end-0'>
<TwitchEmbed />
</div>
</div>
</Provider>
</ApolloProvider>
);
}}
</WalletProvider>
);
}
export default MyApp;