Compare commits
No commits in common. "master" and "develop" have entirely different histories.
|
@ -41,15 +41,8 @@ const App: React.FC = () => {
|
||||||
<div className="py-4 -mb-4 flex flex-row gap-x-3">
|
<div className="py-4 -mb-4 flex flex-row gap-x-3">
|
||||||
{ethStatus?.syncState === "syncing" ? (
|
{ethStatus?.syncState === "syncing" ? (
|
||||||
<span className="flex items-center gap-x-2 rounded-full bg-neutral-800 text-white p-1 px-4 bg">
|
<span className="flex items-center gap-x-2 rounded-full bg-neutral-800 text-white p-1 px-4 bg">
|
||||||
<CircleProgressBar
|
<CircleProgressBar radius={5} strokeWidth={3} percentage={Math.floor(ethStatus.sync)} />
|
||||||
radius={5}
|
<span className="font-bold font-mono text-orange-400 mr-2">{ethStatus.sync.toFixed(1)}%</span> Syncing Ethereum Network
|
||||||
strokeWidth={3}
|
|
||||||
percentage={Math.floor(ethStatus.sync)}
|
|
||||||
/>
|
|
||||||
<span className="font-bold font-mono text-orange-400 mr-2">
|
|
||||||
{ethStatus.sync.toFixed(1)}%
|
|
||||||
</span>{" "}
|
|
||||||
Syncing Ethereum Network
|
|
||||||
</span>
|
</span>
|
||||||
) : ethStatus?.syncState === "done" ? (
|
) : ethStatus?.syncState === "done" ? (
|
||||||
<span className="flex items-center gap-x-2 rounded-full bg-neutral-800 text-white p-1 px-4 bg">
|
<span className="flex items-center gap-x-2 rounded-full bg-neutral-800 text-white p-1 px-4 bg">
|
||||||
|
@ -139,10 +132,8 @@ const Root = () => {
|
||||||
<LumeStatusProvider>
|
<LumeStatusProvider>
|
||||||
<NetworksProvider>
|
<NetworksProvider>
|
||||||
<AuthProvider>
|
<AuthProvider>
|
||||||
<main className="flex flex-col bg-neutral-950 w-full min-h-screen h-full pt-2 pb-5">
|
<App />
|
||||||
<App />
|
<Browser />
|
||||||
<Browser />
|
|
||||||
</main>
|
|
||||||
</AuthProvider>
|
</AuthProvider>
|
||||||
</NetworksProvider>
|
</NetworksProvider>
|
||||||
</LumeStatusProvider>
|
</LumeStatusProvider>
|
||||||
|
|
|
@ -346,7 +346,7 @@ export function Browser() {
|
||||||
ref={iframeRef}
|
ref={iframeRef}
|
||||||
onLoad={handleIframeLoad}
|
onLoad={handleIframeLoad}
|
||||||
src={url ? `/browse/${url}` : "about:blank"}
|
src={url ? `/browse/${url}` : "about:blank"}
|
||||||
className={`${shouldRenderStartPage ? "hidden" : ""} flex-1 w-full h-full -mb-5`}
|
className={`${shouldRenderStartPage ? "hidden" : ""} w-full h-full`}
|
||||||
></iframe>
|
></iframe>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -9,7 +9,7 @@ const AVAILABLE_PAGES = [
|
||||||
"lumeweb",
|
"lumeweb",
|
||||||
"blockranger.eth",
|
"blockranger.eth",
|
||||||
"esteroids.eth",
|
"esteroids.eth",
|
||||||
// "ens.eth",
|
"ens.eth",
|
||||||
"sogola.eth",
|
"sogola.eth",
|
||||||
"vitalik.eth",
|
"vitalik.eth",
|
||||||
];
|
];
|
||||||
|
@ -18,7 +18,7 @@ const StartPage = ({ setUrl }: Props) => {
|
||||||
const { ready, inited } = useLumeStatus();
|
const { ready, inited } = useLumeStatus();
|
||||||
const { isLoggedIn } = useAuth();
|
const { isLoggedIn } = useAuth();
|
||||||
return (
|
return (
|
||||||
<div className="mx-4 relative border rounded-md mt-2 border-neutral-800 p-10 pb-5 w-[calc(100%-32px)] bg-neutral-900 flex flex-col">
|
<div className="mx-4 relative border rounded-md mt-2 border-neutral-800 p-10 w-[calc(100%-32px)] bg-neutral-900 flex flex-col">
|
||||||
<h2 className="font-bold text-2xl text-white">
|
<h2 className="font-bold text-2xl text-white">
|
||||||
Welcome to the Lume Browser
|
Welcome to the Lume Browser
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -29,7 +29,7 @@ const StartPage = ({ setUrl }: Props) => {
|
||||||
</p>
|
</p>
|
||||||
<p className="text-gray-400 my-4">
|
<p className="text-gray-400 my-4">
|
||||||
For further documentation, see:{" "}
|
For further documentation, see:{" "}
|
||||||
<a href="https://docs.lumeweb.com/browser-webapp" className="underline text-white">
|
<a href="https://docs.lumeweb.com/browser-webapp">
|
||||||
https://docs.lumeweb.com/browser-webapp
|
https://docs.lumeweb.com/browser-webapp
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -38,21 +38,6 @@ const StartPage = ({ setUrl }: Props) => {
|
||||||
{inited && ready ? (
|
{inited && ready ? (
|
||||||
<div>
|
<div>
|
||||||
<hr className="my-3 border-neutral-700" />
|
<hr className="my-3 border-neutral-700" />
|
||||||
<div
|
|
||||||
className="bg-yellow-800/40 rounded-md border border-yellow-500 text-yellow-500 p-4"
|
|
||||||
role="alert"
|
|
||||||
>
|
|
||||||
<p className="font-bold">Disclaimer</p>
|
|
||||||
<p>
|
|
||||||
The sites listed below are the ones we currently support. We're a
|
|
||||||
small team working hard to make this technology possible. We don't
|
|
||||||
endorse any ideological views. Our focus is on building for a free
|
|
||||||
web. The listed sites are examples of what our technology can do
|
|
||||||
today. Please note that we are not hosting or serving any content
|
|
||||||
ourselves and have no control over the content as it's
|
|
||||||
decentralized.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<h3 className="text-white text-lg font-bold mt-4">
|
<h3 className="text-white text-lg font-bold mt-4">
|
||||||
Currently Accessible Websites:
|
Currently Accessible Websites:
|
||||||
</h3>
|
</h3>
|
||||||
|
|
|
@ -13,6 +13,8 @@ import "@/styles/globals.scss";
|
||||||
<title>Web3 Browser - Powered By Lume Web</title>
|
<title>Web3 Browser - Powered By Lume Web</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<main class="bg-neutral-950 w-full">
|
||||||
<App client:only="react" />
|
<App client:only="react" />
|
||||||
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue