|
3 | 3 | import { useEffect, useState } from "react";
|
4 | 4 | import Image from "next/image";
|
5 | 5 | import { NextPage } from "next";
|
| 6 | +import liveTag from "~~/public/live-tag.svg"; |
| 7 | +import map from "~~/public/map.png"; |
6 | 8 |
|
7 | 9 | interface ContinentData {
|
8 | 10 | "North America": number;
|
@@ -31,102 +33,100 @@ const Home: NextPage = () => {
|
31 | 33 | }, []);
|
32 | 34 |
|
33 | 35 | return (
|
34 |
| - <> |
| 36 | + <div className="container mx-auto"> |
35 | 37 | {/* First row */}
|
36 | 38 | <div className="flex flex-row flex-wrap lg:flex-nowrap lg:border-x-[1px] lg:border-y-[1px] border-black">
|
37 | 39 | {/* Introduction section */}
|
38 |
| - <section className="bg-[#df57c4] p-10 lg:w-[45vw] border-x-[1px] border-y-[1px] border-black lg:border-none"> |
| 40 | + <section className="bg-[#df57c4] p-6 lg:p-10 lg:w-[45vw] border-x-[1px] border-y-[1px] border-black lg:border-none overflow-auto"> |
39 | 41 | <div className="flex flex-col">
|
40 |
| - <p> |
| 42 | + <p className="mt-0"> |
41 | 43 | A one line command to deploy and monitor an Ethereum Node, funded and maintained by BuidlGuidl members.
|
42 | 44 | </p>
|
43 |
| - <p>Mac/linux</p> |
44 |
| - <code className="bg-black p-6 text-white text-base">{` |
45 |
| - /bin/bash -c "$(curl -fsSL https://client.buidlguidl.com/runBuidlGuidlClient.sh)" |
46 |
| - `}</code> |
| 45 | + <p className="mt-0">Mac/linux</p> |
| 46 | + <div className="bg-black p-2 lg:p-4 text-white text-sm overflow-auto"> |
| 47 | + <p className="m-2"> |
| 48 | + /bin/bash -c "$(curl -fsSL https://client.buidlguidl.com/runBuidlGuidlClient.sh)" |
| 49 | + </p> |
| 50 | + </div> |
47 | 51 | <p> or run the client from the repo:</p>
|
48 |
| - <code className="bg-black p-6 text-white text-base">{` |
49 |
| - git clone https://github.com/BuidlGuidl/buidlguidl-client.git |
50 |
| - cd buidlguidl-client |
51 |
| - yarn install |
52 |
| - node index.js |
53 |
| - `}</code> |
| 52 | + <div className="bg-black p-2 lg:p-4 text-white text-sm overflow-auto"> |
| 53 | + <p className="m-2 whitespace-nowrap">git clone https://github.com/BuidlGuidl/buidlguidl-client.git</p> |
| 54 | + <p className="m-2">cd buidlguidl-client</p> |
| 55 | + <p className="m-2">yarn install</p> |
| 56 | + <p className="m-2">node index.js</p> |
| 57 | + </div> |
54 | 58 | </div>
|
55 | 59 | </section>
|
56 | 60 |
|
57 | 61 | {/* Screenshot section */}
|
58 |
| - <section className="bg-[#DDDDDD] flex-1 p-8 flex justify-center border-x-[1px] border-b-[1px] border-black lg:border-b-0"> |
59 |
| - <Image src="/screenshot-2.png" alt="screenshot" className="object-contain" width={500} height={500} /> |
| 62 | + <section className="bg-[#DDDDDD] flex-1 p-6 flex justify-center border-x-[1px] border-b-[1px] border-black lg:border-b-0"> |
| 63 | + <Image src="/screenshot-2.png" alt="screenshot" className="object-contain" width={972} height={875} /> |
60 | 64 | </section>
|
61 | 65 |
|
62 | 66 | {/* Satellite section */}
|
63 | 67 | <section className="bg-[#20F658] p-6 w-[40vw] lg:flex-1 flex justify-center border-r-[1px] border-b-[1px] border-black lg:border-r-0 lg:border-b-0">
|
64 |
| - <Image src="/satellite-10fps.gif" alt="satellite" className="object-contain" width={500} height={500} /> |
| 68 | + <Image src="/satellite-10fps.gif" alt="satellite" className="object-contain" width={436} height={535} /> |
65 | 69 | </section>
|
66 | 70 | </div>
|
67 | 71 |
|
68 | 72 | {/* Second row */}
|
69 |
| - <div className="flex flex-row flex-wrap lg:flex-nowrap mb-10"> |
| 73 | + <div className="lg:grid lg:grid-cols-3 mb-10"> |
70 | 74 | {/* Map section */}
|
71 |
| - <section className="bg-[#F6F6F6] p-10 border-x-[1px] border-black lg:border-b-[1px]"> |
| 75 | + <section className="col-span-2 bg-[#F6F6F6] p-6 lg:p-10 border-x-[1px] border-black lg:border-b-[1px]"> |
72 | 76 | <div className="flex flex-row items-center gap-4">
|
73 |
| - <h1 className="text-lg">📡 Clients running</h1> |
74 |
| - <Image |
75 |
| - src="/live-tag.svg" |
76 |
| - alt="live tag" |
77 |
| - className="w-16 animate-pulse-fast mb-1.5" |
78 |
| - width={500} |
79 |
| - height={500} |
80 |
| - /> |
| 77 | + <h1 className="text-lg m-0">📡 Clients running</h1> |
| 78 | + <Image src={liveTag} alt="live tag" className="w-16 animate-pulse-fast" /> |
81 | 79 | </div>
|
82 | 80 | <div className="relative flex items-center justify-center pt-10">
|
83 |
| - <Image src="/map.png" alt="map" className="w-auto" width={2000} height={2000} /> |
| 81 | + <Image src={map} alt="map" /> |
84 | 82 | {/* Continent tags */}
|
85 |
| - <div className="text-sm lg:text-base flex items-center justify-center"> |
86 |
| - <div className="bg-[#f359d4] px-3 leading-none absolute top-[90px] right-[200px] md:top-[100px] md:right-[280px] lg:top-[130px] lg:right-[420px]"> |
87 |
| - <p className="text-center whitespace-nowrap">europe ({continentData?.Europe ?? "..."})</p> |
| 83 | + <div className="text-xs md:text-sm lg:text-base flex items-center justify-center"> |
| 84 | + <div className="bg-[#f359d4] lg:px-3 leading-none absolute top-[26%] right-[33%] lg:right-[37%]"> |
| 85 | + <p className="m-2 xl:my-3 text-center whitespace-nowrap">europe ({continentData?.Europe ?? "..."})</p> |
88 | 86 | </div>
|
89 |
| - <div className="bg-[#f359d4] px-3 leading-none absolute top-[120px] right-[80px] md:top-[130px] md:right-[120px] lg:top-[170px] lg:right-[220px]"> |
90 |
| - <p className="text-center whitespace-nowrap">asia ({continentData?.Asia ?? "..."})</p> |
| 87 | + <div className="bg-[#f359d4] lg:px-3 leading-none absolute top-[35%] right-[14%] xl:right-[18%] lg:top-[30%]"> |
| 88 | + <p className="m-2 xl:my-3 text-center whitespace-nowrap">asia ({continentData?.Asia ?? "..."})</p> |
91 | 89 | </div>
|
92 |
| - <div className="bg-[#f359d4] px-3 leading-none absolute top-[100px] left-[30px] md:top-[130px] md:left-[60px] lg:top-[170px] lg:left-[120px]"> |
93 |
| - <p className="text-center whitespace-nowrap"> |
| 90 | + <div className="bg-[#f359d4] lg:px-3 leading-none absolute top-[32%] left-[5%] lg:left-[6%] xl:left-[9%]"> |
| 91 | + <p className="m-2 xl:my-3 text-center whitespace-nowrap"> |
94 | 92 | north america ({continentData?.["North America"] ?? "..."})
|
95 | 93 | </p>
|
96 | 94 | </div>
|
97 |
| - <div className="bg-[#f359d4] px-3 leading-none absolute bottom-[40px] left-[100px] md:bottom-[80px] md:left-[160px] lg:bottom-[120px] lg:left-[220px]"> |
98 |
| - <p className="text-center whitespace-nowrap"> |
| 95 | + <div className="bg-[#f359d4] lg:px-3 leading-none absolute bottom-[20%] left-[15%] xl:left-[20%]"> |
| 96 | + <p className="m-2 xl:my-3 text-center whitespace-nowrap"> |
99 | 97 | south america ({continentData?.["South America"] ?? "..."})
|
100 | 98 | </p>
|
101 | 99 | </div>
|
102 |
| - <div className="bg-[#f359d4] px-3 leading-none absolute bottom-[100px] left-[220px] md:bottom-[140px] md:left-[320px] lg:bottom-[190px] lg:left-[490px]"> |
103 |
| - <p className="text-center whitespace-nowrap">africa ({continentData?.Africa ?? "..."})</p> |
| 100 | + <div className="bg-[#f359d4] lg:px-3 leading-none absolute bottom-[35%] left-[43%] lg:left-[45%]"> |
| 101 | + <p className="m-2 xl:my-3 text-center whitespace-nowrap">africa ({continentData?.Africa ?? "..."})</p> |
104 | 102 | </div>
|
105 |
| - <div className="bg-[#f359d4] px-3 leading-none absolute bottom-[30px] right-[30px] lg:bottom-[80px] lg:right-[60px]"> |
106 |
| - <p className="text-center whitespace-nowrap">australia ({continentData?.Australia ?? "..."})</p> |
| 103 | + <div className="bg-[#f359d4] lg:px-3 leading-none absolute bottom-[10%] right-[5%] lg:bottom-[13%]"> |
| 104 | + <p className="m-2 xl:my-3 text-center whitespace-nowrap"> |
| 105 | + australia ({continentData?.Australia ?? "..."}) |
| 106 | + </p> |
107 | 107 | </div>
|
108 | 108 | </div>
|
109 | 109 | </div>
|
110 | 110 | </section>
|
111 | 111 |
|
112 | 112 | {/* Docs section */}
|
113 |
| - <section className="bg-black p-10 lg:w-[30vw] w-full text-white"> |
| 113 | + <section className="bg-black p-6 lg:p-10 text-white"> |
114 | 114 | <h1 className="text-lg">Useful links | Docs</h1>
|
115 |
| - <ul className="list-disc list-outside flex flex-col m-auto lg:mx-0 pl-8 lg:pl-4 "> |
116 |
| - <li> |
| 115 | + <ul className="list-disc list-outside pl-4"> |
| 116 | + <li className="my-4"> |
117 | 117 | <a href="https://docs.rocketpool.net/guides/node/local/hardware" className="link">
|
118 | 118 | On how to select hardware
|
119 | 119 | </a>
|
120 | 120 | </li>
|
121 |
| - <li> |
| 121 | + <li className="my-4"> |
122 | 122 | <a href="https://gist.github.com/yorickdowne/f3a3e79a573bf35767cd002cc977b038" className="link">
|
123 | 123 | All about how to buy the correct drive
|
124 | 124 | </a>
|
125 | 125 | </li>
|
126 | 126 | </ul>
|
127 | 127 | </section>
|
128 | 128 | </div>
|
129 |
| - </> |
| 129 | + </div> |
130 | 130 | );
|
131 | 131 | };
|
132 | 132 |
|
|
0 commit comments