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
7 changes: 5 additions & 2 deletions apps/web/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions apps/web/src/app/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import { useState } from 'react';
import { Link, NavLink, Outlet, useNavigation } from 'react-router';
import { compactHash } from '../product.js';
import { BrandMark } from '../components/BrandMark.js';
import { WalletDialog } from '../components/WalletDialog.js';
import { useRuntime } from './AppProviders.js';

Expand Down Expand Up @@ -46,9 +47,7 @@ export function AppShell() {
<div className="ambient ambient-two" />
<header className="topbar">
<Link className="brand" to="/" aria-label="ProofKey home">
<span className="brand-mark">
<span />
</span>
<BrandMark />
<span>ProofKey</span>
</Link>

Expand Down Expand Up @@ -135,9 +134,7 @@ export function AppShell() {
<footer className="site-footer">
<div>
<span className="brand compact">
<span className="brand-mark">
<span />
</span>
<BrandMark />
ProofKey
</span>
<p>Proof-backed access for machines that work in the real world.</p>
Expand Down
28 changes: 28 additions & 0 deletions apps/web/src/components/BrandMark.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export function BrandMark() {
return (
<span className="brand-mark" aria-hidden="true">
<svg viewBox="0 0 64 64" role="presentation">
<rect width="64" height="64" rx="18" fill="#0f543a" />
<circle cx="23" cy="23" r="11" fill="#d8e953" />
<circle cx="23" cy="23" r="5.5" fill="#0f543a" />
<path
d="m31 31 18 18M38.5 38.5l6-6M44 44l6-6"
fill="none"
stroke="#d8e953"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="7"
/>
<path
d="m19.5 23 2.5 2.5 5-6.5"
fill="none"
stroke="#ff6847"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2.8"
/>
<circle cx="49" cy="49" r="3.5" fill="#ff6847" />
</svg>
</span>
);
}
39 changes: 7 additions & 32 deletions apps/web/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,42 +119,17 @@ input:focus-visible {
text-decoration: none;
}
.brand-mark {
position: relative;
display: block;
width: 34px;
height: 34px;
overflow: hidden;
border-radius: 10px;
background: var(--forest);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span {
position: absolute;
background: var(--lime);
content: '';
}
.brand-mark::before {
top: 8px;
left: 9px;
width: 7px;
height: 18px;
border-radius: 4px;
}
.brand-mark::after {
top: 8px;
left: 15px;
width: 11px;
height: 7px;
border-radius: 4px;
flex: 0 0 auto;
filter: drop-shadow(0 5px 9px rgba(15, 84, 58, 0.2));
}
.brand-mark span {
top: 17px;
left: 16px;
width: 12px;
height: 7px;
transform: rotate(45deg);
border-radius: 4px;

.brand-mark svg {
display: block;
width: 100%;
height: 100%;
}
.brand.compact {
font-size: 15px;
Expand Down
Loading