From edb8a0f2bf0a967da92d31a707126092022797c0 Mon Sep 17 00:00:00 2001 From: Hunter Chang <716376+ChangoMan@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:56:40 +0800 Subject: [PATCH] adjust mobile styles --- packages/nextjs/app/page.tsx | 90 +++++++++---------- packages/nextjs/components/Footer.tsx | 11 ++- packages/nextjs/components/Header.tsx | 23 +---- .../RainbowKitCustomConnectButton/index.tsx | 2 +- packages/nextjs/styles/globals.css | 3 +- packages/nextjs/tailwind.config.js | 2 +- 6 files changed, 57 insertions(+), 74 deletions(-) diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index 9d7af86..9d29ff9 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -3,6 +3,8 @@ import { useEffect, useState } from "react"; import Image from "next/image"; import { NextPage } from "next"; +import liveTag from "~~/public/live-tag.svg"; +import map from "~~/public/map.png"; interface ContinentData { "North America": number; @@ -31,94 +33,92 @@ const Home: NextPage = () => { }, []); return ( - <> +
{/* First row */}
{/* Introduction section */} -
+
-

+

A one line command to deploy and monitor an Ethereum Node, funded and maintained by BuidlGuidl members.

-

Mac/linux

- {` - /bin/bash -c "$(curl -fsSL https://client.buidlguidl.com/runBuidlGuidlClient.sh)" - `} +

Mac/linux

+
+

+ /bin/bash -c "$(curl -fsSL https://client.buidlguidl.com/runBuidlGuidlClient.sh)" +

+

or run the client from the repo:

- {` - git clone https://github.com/BuidlGuidl/buidlguidl-client.git - cd buidlguidl-client - yarn install - node index.js - `} +
+

git clone https://github.com/BuidlGuidl/buidlguidl-client.git

+

cd buidlguidl-client

+

yarn install

+

node index.js

+
{/* Screenshot section */} -
- screenshot +
+ screenshot
{/* Satellite section */}
- satellite + satellite
{/* Second row */} -
+
{/* Map section */} -
+
-

📡 Clients running

- live tag +

📡 Clients running

+ live tag
- map + map {/* Continent tags */} -
-
-

europe ({continentData?.Europe ?? "..."})

+
+
+

europe ({continentData?.Europe ?? "..."})

-
-

asia ({continentData?.Asia ?? "..."})

+
+

asia ({continentData?.Asia ?? "..."})

-
-

+

+

north america ({continentData?.["North America"] ?? "..."})

-
-

+

+

south america ({continentData?.["South America"] ?? "..."})

-
-

africa ({continentData?.Africa ?? "..."})

+
+

africa ({continentData?.Africa ?? "..."})

-
-

australia ({continentData?.Australia ?? "..."})

+
+

+ australia ({continentData?.Australia ?? "..."}) +

{/* Docs section */} -
+

Useful links | Docs

-
- +
); }; diff --git a/packages/nextjs/components/Footer.tsx b/packages/nextjs/components/Footer.tsx index ca1dd2f..d082d09 100644 --- a/packages/nextjs/components/Footer.tsx +++ b/packages/nextjs/components/Footer.tsx @@ -1,4 +1,3 @@ -import React from "react"; import Image from "next/image"; import { HeartIcon } from "@heroicons/react/24/solid"; @@ -7,14 +6,14 @@ import { HeartIcon } from "@heroicons/react/24/solid"; */ export const Footer = () => { return ( -
-
+
+
- crosses + crosses
- crosses + crosses
diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index 34fb2fa..5f0f92b 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -1,32 +1,17 @@ "use client"; -import React from "react"; import Image from "next/image"; -import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth"; +import { RainbowKitCustomConnectButton } from "~~/components/scaffold-eth"; /** * Site header */ export const Header = () => { return ( -
- {/* Lines at the sides */} -
-
-
-
- - {/* Logo div with mix-blend-exclusion */} -
-
- logo -
-
- - {/* Connect button */} -
+
+
+ logo -
); diff --git a/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/index.tsx b/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/index.tsx index 3860657..82b33e2 100644 --- a/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/index.tsx +++ b/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/index.tsx @@ -32,7 +32,7 @@ export const RainbowKitCustomConnectButton = () => { if (!connected) { return (