File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import Fees from "./pages/fees";
12
12
import PageNotFound from "./pages/not-found" ;
13
13
import PrivacyPolicy from "./pages/privacy-policy" ;
14
14
import Profile from "./pages/profile" ;
15
+ import StatsPage from "./pages/stats" ;
15
16
import Support from "./pages/support" ;
16
17
import TermsOfService from "./pages/terms-of-service" ;
17
18
import Testing from "./pages/testing" ;
@@ -34,6 +35,7 @@ createRoot(document.getElementById("root")!).render(
34
35
< Route path = "/testing" element = { < Testing /> } />
35
36
< Route path = "/callback" element = { < CallbackPage /> } />
36
37
< Route path = "/chat" element = { < ChatPage /> } />
38
+ < Route path = "/stats" element = { < StatsPage /> } />
37
39
< Route path = "/chat/:mint" element = { < ChatPage /> } />
38
40
< Route path = "/admin/*" element = { < Admin /> } />
39
41
< Route path = "*" element = { < PageNotFound /> } />
Original file line number Diff line number Diff line change
1
+ const GridViewStats = ( {
2
+ title,
3
+ iframes,
4
+ } : {
5
+ title : string ;
6
+ iframes : string [ ] ;
7
+ } ) => {
8
+ return (
9
+ < div className = "my-4" >
10
+ < h2 className = "text-2xl font-bold mb-4" > { title } </ h2 >
11
+ < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" >
12
+ { iframes . map ( ( iframe , index ) => (
13
+ < div key = { index } className = "border rounded-lg overflow-hidden" >
14
+ < iframe
15
+ src = { iframe }
16
+ className = "w-full h-64"
17
+ title = { `Stats iframe ${ index + 1 } ` }
18
+ />
19
+ </ div >
20
+ ) ) }
21
+ </ div >
22
+ </ div >
23
+ ) ;
24
+ } ;
25
+ export default function StatsPage ( ) {
26
+ return (
27
+ < div className = "mt-4 mx-4" >
28
+ < GridViewStats
29
+ title = "Addresses"
30
+ iframes = { [
31
+ "https://dune.com/embeds/5133792/8462503?darkMode=true" ,
32
+ "https://dune.com/embeds/5133792/8463015?darkMode=true" ,
33
+ "https://dune.com/embeds/5133760/8462538?darkMode=true" ,
34
+ ] }
35
+ />
36
+ < GridViewStats
37
+ title = "Fees"
38
+ iframes = { [
39
+ "https://dune.com/embeds/5133738/8462511?darkMode=true" ,
40
+ "https://dune.com/embeds/5133685/8465708?darkMode=true" ,
41
+ ] }
42
+ />
43
+ < GridViewStats
44
+ title = "Volume"
45
+ iframes = { [
46
+ "https://dune.com/embeds/5133685/8462540?darkMode=true" ,
47
+ "https://dune.com/embeds/5133685/8465708?darkMode=true" ,
48
+ ] }
49
+ />
50
+ </ div >
51
+ ) ;
52
+ }
You can’t perform that action at this time.
0 commit comments