Skip to content

Commit f0f5091

Browse files
committed
fix: install instructions, add css
1 parent e181c30 commit f0f5091

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ When you create an identity, download the seed and keep it safe. The seed *is* t
3838
else console.log("logged out")
3939
})
4040
```
41+
1. **Put this stylesheet into your html `<head>`**
42+
(please ensure your path is valid)
43+
```html
44+
<link rel="stylesheet" href="/node_modules/@e280/authlocal/x/themes/basic.css"/>
45+
```
4146
1. **Put these new elements in your html `<body>`**
4247
```html
4348
<auth-user></auth-user>

s/app/index.html.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {ssg, html} from "@e280/scute"
44
const domain = "authlocal.org"
55
const favicon = "/assets/favicon.png"
66

7-
export default ssg.page(import.meta.url, async _orb => ({
7+
export default ssg.page(import.meta.url, async orb => ({
88
title: "Authlocal App Demo",
99

1010
js: "demo.bundle.min.js",
@@ -21,6 +21,10 @@ export default ssg.page(import.meta.url, async _orb => ({
2121
url: `https://${domain}/app/`,
2222
},
2323

24+
head: html`
25+
<link rel="stylesheet" href="${orb.url("/themes/basic.css")}"/>
26+
`,
27+
2428
body: html`
2529
<h1>Example app using Authlocal</h1>
2630
<p>This page is a test for a typical federated auth integration with <a href="/">Authlocal</a></p>

0 commit comments

Comments
 (0)