Skip to content

Commit

Permalink
updated branding and copy for https://passkeys.energy
Browse files Browse the repository at this point in the history
  • Loading branch information
depatchedmode committed Jul 5, 2023
1 parent 41cc9f6 commit 872576a
Show file tree
Hide file tree
Showing 16 changed files with 212 additions and 99 deletions.
1 change: 0 additions & 1 deletion examples/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lint": "tsc && eslint '**/*.{js,jsx,ts}' && prettier --check '**/*.{js,jsx,ts,yml,json}' --ignore-path ../../.gitignore"
},
"dependencies": {
"@acab/reset.css": "^0.5.3",
"@oddjs/odd": "^0.37.1",
"@oddjs/passkeys": "workspace:^",
"@oddjs/preact": "workspace:^",
Expand Down
Binary file added examples/demo/public/fonts/ApfelGrotezk-Fett.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added examples/demo/public/wave-background-dark.webp
Binary file not shown.
Binary file added examples/demo/public/wave-background-light.webp
Binary file not shown.
Binary file added examples/demo/public/wave-foreground-light.webp
Binary file not shown.
10 changes: 10 additions & 0 deletions examples/demo/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Login from './login.jsx'
import Register from './register.jsx'
import ReloadPrompt from './prompt.jsx'
import Test from './test.jsx'
import { ReactComponent as OddLogo } from './assets/odd-logo.svg'

/** @type {import('@oddjs/odd').Configuration} */
const config = {
Expand Down Expand Up @@ -34,6 +35,15 @@ export function App() {
<Register path="/register" />
<Test path="/test" />
</Router>
<div class="powered-by-odd">
<div class="powered-by-wave">
<img class="powered-by-bg" src="/wave-background-light.webp" width="2080" height="120" alt="Wave background"/>
<img class="powered-by-fg" src="/wave-foreground-light.webp" width="2080" height="120" alt="Wave foreground"/>
</div>
<a class="powered-by-msg" href="https://odd.dev">
Powered by <OddLogo />
</a>
</div>
</main>
<ReloadPrompt />
</OddContextProvider>
Expand Down
27 changes: 26 additions & 1 deletion examples/demo/src/assets/brand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions examples/demo/src/assets/odd-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 29 additions & 28 deletions examples/demo/src/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,19 @@ export default function Login(props) {
return (
<>
<div className="login">
<Logo style="margin: 0 auto; height: 50px;" />
<div class="ask">
<Logo style="margin: 0 auto" />
<p>Did you know it will be possible to encrypt data with a passkey? <em>When</em> your browser supports it.</p>
<p>Help us achieve full browser compatibility. Track the &nbsp;
<a
href="https://github.com/oddsdk/passkeys/issues/13"
target="_blank"
rel="noreferrer"
>
current status of browser support
</a>.</p>
<p>Let’s see what this browser is capable of.</p>
</div>
<form autoComplete="on" onSubmit={onSubmit}>
<label>
<input
Expand All @@ -91,52 +103,41 @@ export default function Login(props) {
autoComplete="username webauthn"
/>
</label>
{errorMsg && <p className="error">{errorMsg}</p>}

<button type="submit" disabled={isLoggingIn}>
Login
</button>

{errorMsg && <p className="error">{errorMsg}</p>}

<p style="text-align: center">
{' '}
Don't have an account? <a href="/register">Register</a>
</p>
<br />
<p>
Navigate to{' '}
<code>
chrome://flags/#enable-experimental-web-platform-features
</code>{' '}
and enable it. Check our support{' '}
<a
href="https://github.com/oddsdk/passkeys/issues/13"
target="_blank"
rel="noreferrer"
>
issue
</a>{' '}
for more info.
</p>
</form>
<div class="warning">
<h3>Using a Chromium browser?</h3>
<p>Navigate to{' '}
<code>
chrome://flags/#enable-experimental-web-platform-features
</code>{' '}
and enable it.</p>
</div>

</div>

<style jsx>{`
.login {
max-width: 21rem;
display: flex;
flex-direction: column;
gap: 2rem;
max-width: 24rem;
margin: 0 auto;
padding: 1rem;
border: 1px solid var(--border);
border-radius: 4px;
}
form,
label {
display: flex;
flex-flow: column;
}
.error {
font-size: 0.8rem;
color: brown;
margin-bottom: 1rem;
gap: 0.5rem;
}
`}</style>
</>
Expand Down
Loading

0 comments on commit 872576a

Please sign in to comment.