nip05 ready for light mode

This commit is contained in:
Alejandro Gomez 2023-01-10 11:06:51 +01:00
parent 28da0aeb05
commit b32f3544cc
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
5 changed files with 10 additions and 7 deletions

View File

@ -2,15 +2,15 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
margin: .2em 0; margin: .2em;
} }
.nip05 .nick { .nip05 .nick {
color: #999; color: var(--gray-light);
} }
.nip05 .domain { .nip05 .domain {
color: #DDD; color: var(--gray-superlight);
} }
.nip05 .badge { .nip05 .badge {

View File

@ -37,7 +37,7 @@ const Nip05 = ({ nip05, pubkey }) => {
{isVerified && ( {isVerified && (
<span className="badge"> <span className="badge">
<FontAwesomeIcon <FontAwesomeIcon
color={"green"} color={"var(--success)"}
icon={faCheck} icon={faCheck}
size="xs" size="xs"
/> />
@ -46,7 +46,7 @@ const Nip05 = ({ nip05, pubkey }) => {
{couldNotVerify && ( {couldNotVerify && (
<span className="error"> <span className="error">
<FontAwesomeIcon <FontAwesomeIcon
color={"red"} color={"var(--error)"}
icon={faTriangleExclamation} icon={faTriangleExclamation}
size="xs" size="xs"
/> />

View File

@ -53,7 +53,8 @@
} }
.indented .active { .indented .active {
margin-left: -3px; background-color: var(--gray-tertiary);
margin-left: -5px;
border-left: 3px solid var(--highlight); border-left: 3px solid var(--highlight);
} }

View File

@ -23,6 +23,8 @@
--gray: #ccc; --gray: #ccc;
--gray-secondary: #ddd; --gray-secondary: #ddd;
--gray-tertiary: #eee; --gray-tertiary: #eee;
--gray-superlight: #333;
--gray-light: #555;
} }
} }

View File

@ -33,12 +33,12 @@ export default function ProfilePage() {
<div className="f-grow"> <div className="f-grow">
<h2>{user?.display_name || user?.name}</h2> <h2>{user?.display_name || user?.name}</h2>
<Copy text={params.id} /> <Copy text={params.id} />
{user?.nip05 && <Nip05 nip05={user.nip05} pubkey={user.pubkey} />}
</div> </div>
<div> <div>
{isMe ? <div className="btn" onClick={() => navigate("/settings")}>Settings</div> : <FollowButton pubkey={id} />} {isMe ? <div className="btn" onClick={() => navigate("/settings")}>Settings</div> : <FollowButton pubkey={id} />}
</div> </div>
</div> </div>
{user?.nip05 && <Nip05 nip05={user.nip05} pubkey={user.pubkey} />}
<p>{extractLinks([user?.about])}</p> <p>{extractLinks([user?.about])}</p>
{user?.website && ( {user?.website && (