Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,404 changes: 1,214 additions & 190 deletions kinode/src/http/login.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions kinode/src/register-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

src/abis/types/*
./src/abis/types
2 changes: 1 addition & 1 deletion kinode/src/register-ui/src/components/ChainInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function ChainInfo({
</button>
<button
onClick={changeToNodeChain}
className="clear max-w-1/3"
className="clear max-w-1/3 z-10"
>
{generateNetworkIcon(networkName)}
<div className='ml-2'>
Expand Down
4 changes: 2 additions & 2 deletions kinode/src/register-ui/src/components/KnsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function KinodeHeader({
nodeChainId === OPTIMISM_OPT_HEX) && (
<Tooltip
position="left"
className="!absolute top-8 right-8"
className="!absolute top-8 right-8 z-10"
button={nodeChainId === SEPOLIA_OPT_HEX ? (
<img
alt="sepolia"
Expand All @@ -105,7 +105,7 @@ function KinodeHeader({
</div>
{!hideConnect && (
<div
className="flex c max-w-[50vw] mb-8 absolute top-2 left-2"
className="flex c w-[99vw] mb-8 absolute top-2 left-2"
>
{isActive && account ? (
<ChainInfo
Expand Down
87 changes: 26 additions & 61 deletions kinode/src/register-ui/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -702,54 +702,38 @@ button:hover {
position: relative;
}

.bottom-2 {
bottom: 0.5rem;
}

.bottom-8 {
bottom: 2rem;
}

.left-2 {
left: 0.5rem;
}

.left-8 {
left: 2rem;
}

.right-1 {
right: 0.25rem;
.right-0 {
right: 0px;
}

.right-8 {
right: 2rem;
}

.top-1 {
top: 0.25rem;
}

.top-8 {
top: 2rem;
}

.right-0 {
right: 0px;
}

.top-0 {
top: 0px;
}

.left-0 {
left: 0px;
}

.left-2 {
left: 0.5rem;
}

.top-2 {
top: 0.5rem;
}

.top-8 {
top: 2rem;
}

.z-10 {
z-index: 10;
}
Expand All @@ -774,11 +758,6 @@ button:hover {
margin-bottom: 2rem;
}

.my-10 {
margin-top: 2.5rem;
margin-bottom: 2.5rem;
}

.mb-1 {
margin-bottom: 0.25rem;
}
Expand Down Expand Up @@ -815,6 +794,10 @@ button:hover {
margin-top: 0.25rem;
}

.mt-10 {
margin-top: 2.5rem;
}

.mt-2 {
margin-top: 0.5rem;
}
Expand All @@ -827,10 +810,6 @@ button:hover {
margin-top: 2rem;
}

.mt-10 {
margin-top: 2.5rem;
}

.block {
display: block;
}
Expand All @@ -843,20 +822,20 @@ button:hover {
display: none;
}

.h-16 {
height: 4rem;
.h-32 {
height: 8rem;
}

.h-screen {
height: 100vh;
}

.h-32 {
height: 8rem;
.w-32 {
width: 8rem;
}

.w-16 {
width: 4rem;
.w-\[95vw\] {
width: 95vw;
}

.w-full {
Expand All @@ -867,8 +846,8 @@ button:hover {
width: 100vw;
}

.w-32 {
width: 8rem;
.w-\[99vw\] {
width: 99vw;
}

.min-w-\[200px\] {
Expand All @@ -883,8 +862,8 @@ button:hover {
max-width: 460px;
}

.max-w-\[50vw\] {
max-width: 50vw;
.max-w-\[450vw\] {
max-width: 450vw;
}

.shrink {
Expand Down Expand Up @@ -957,15 +936,11 @@ button:hover {
line-height: 2rem;
}

.text-6xl {
font-size: 3.75rem;
.text-5xl {
font-size: 3rem;
line-height: 1;
}

.text-\[8px\] {
font-size: 8px;
}

.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
Expand All @@ -976,16 +951,6 @@ button:hover {
line-height: 1.25rem;
}

.text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}

.text-5xl {
font-size: 3rem;
line-height: 1;
}

.text-xs {
font-size: 0.75rem;
line-height: 1rem;
Expand Down
28 changes: 11 additions & 17 deletions kinode/src/register-ui/src/pages/SetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Loader from "../components/Loader";
import { utils, providers } from "ethers";
import { downloadKeyfile } from "../utils/download-keyfile";
import { ReactComponent as NameLogo } from "../assets/kinode.svg"
import { Tooltip } from "../components/Tooltip";
import { KinodeTitle } from "../components/KinodeTitle";

type SetPasswordProps = {
direct: boolean;
Expand Down Expand Up @@ -111,29 +113,19 @@ function SetPassword({
return (
<>
<KinodeHeader
header={<h3 className="row" style={{ justifyContent: "center", alignItems: "center" }}>
Set
<NameLogo style={{ height: 28, width: "auto", margin: "0 16px -3px" }} />
Password
</h3>}
header={<KinodeTitle prefix="Set Password" showLogo />}
openConnect={() => { }}
closeConnect={closeConnect}
nodeChainId={nodeChainId}
/>
{loading ? (
<Loader msg="Setting up node..." />
) : (
<form id="signup-form" className="col" onSubmit={handleSubmit}>
<div style={{ width: "100%" }}>
<div className="row label-row">
<form id="signup-form" className="flex flex-col max-w-[450px] w-full" onSubmit={handleSubmit}>
<div className="w-full flex flex-col">
<div className="flex self-stretch mb-2 place-items-center">
<label htmlFor="password">New Password</label>
<div className="tooltip-container">
<div className="tooltip-button">&#8505;</div>
<div className="tooltip-content">
This password will be used to log in if you restart your node
or switch browsers.
</div>
</div>
<Tooltip text="This password will be used to log in if you restart your node or switch browsers." />
</div>
<input
type="password"
Expand All @@ -145,10 +137,11 @@ function SetPassword({
value={pw}
onChange={(e) => setPw(e.target.value)}
autoFocus
className="mb-2 self-stretch"
/>
</div>
<div style={{ width: "100%" }}>
<div className="row label-row">
<div className="w-full flex flex-col mb-2">
<div className="flex">
<label htmlFor="confirm-password">Confirm Password</label>
</div>
<input
Expand All @@ -160,6 +153,7 @@ function SetPassword({
placeholder="Min 6 characters"
value={pw2}
onChange={(e) => setPw2(e.target.value)}
className="mb-2 self-stretch"
/>
{Boolean(error) && <p style={{ color: "red" }}>{error}</p>}
</div>
Expand Down