Skip to content

Commit 4cee8ce

Browse files
committed
added a bit of ODD flair
1 parent e8692d0 commit 4cee8ce

File tree

6 files changed

+45
-1
lines changed

6 files changed

+45
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

examples/odd-passkeys-preact/src/app.jsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as OddPasskey from '@oddjs/passkeys'
22
import { OddContextProvider } from '@oddjs/preact'
33
import { Router } from 'preact-router'
44
import Home from './home.jsx'
5+
import { ReactComponent as OddLogo } from './assets/odd-logo.svg'
56

67
import Login from './login.jsx'
78
import Register from './register.jsx'
@@ -31,7 +32,15 @@ export function App() {
3132
<Login path="/login" />
3233
<Register path="/register" />
3334
</Router>
34-
35+
<div class="powered-by-odd">
36+
<div class="powered-by-wave">
37+
<img class="powered-by-bg" src="/wave-background-light.webp" width="2080" height="120" alt="Wave background"/>
38+
<img class="powered-by-fg" src="/wave-foreground-light.webp" width="2080" height="120" alt="Wave foreground"/>
39+
</div>
40+
<a class="powered-by-msg" href="https://odd.dev">
41+
Powered by <OddLogo />
42+
</a>
43+
</div>
3544
</main>
3645
</OddContextProvider>
3746
</>

examples/odd-passkeys-preact/src/login.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export default function Login(props) {
122122
</code>{' '}
123123
and enable it.</p>
124124
</div>
125+
125126
</div>
126127

127128
<style jsx>{`

examples/odd-passkeys-preact/src/styles/index.css

+34
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,38 @@
4747
flex-direction: column;
4848
align-items: center;
4949
justify-content: center;
50+
padding-bottom: 8rem;
51+
box-sizing: border-box;
52+
}
53+
54+
.powered-by-odd {
55+
position: fixed;
56+
bottom: 0;
57+
left: 0;
58+
right: 0;
59+
}
60+
61+
.powered-by-bg {
62+
position: absolute;
63+
bottom: 0;
64+
}
65+
66+
.powered-by-fg {
67+
position: absolute;
68+
bottom: 0;
69+
}
70+
71+
.powered-by-wave {
72+
position: relative;
73+
}
74+
75+
.powered-by-msg {
76+
font-family: 'ApfelGrotezk';
77+
background: #484A65;
78+
display: flex;
79+
padding: 1rem;
80+
color: #AAADC4;
81+
justify-content: center;
82+
align-items: center;
83+
gap: 0.25rem;
5084
}

0 commit comments

Comments
 (0)