Skip to content

Commit 7a6a76d

Browse files
author
swyx
committed
DTN button
1 parent 0752630 commit 7a6a76d

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
this is a demo of using Netlify Identity by wrapping the goTrue API in a React Hook.
1+
#Netlify Identity + Reach Router by wrapping the goTrue API in a React Hook.
2+
3+
[Deployed site here](https://unruffled-roentgen-04c3b8.netlify.com/)
4+
5+
this is a demo of using Netlify Identity with Reach Router by wrapping the goTrue API in a React Hook.
26

37
⚠️Make sure Netlify Identity is enabled!!! or demo wont work
48

59
Reach Router is used to show authentication as per [Ryan Florence](https://twitter.com/ryanflorence/status/1060361144701833216).
10+
11+
If you want to fork/deploy this yourself on Netlfiy, click this:
12+
13+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/create-react-app-lambda/tree/reachRouterAndGoTrueDemo&stack=cms)

src/App.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,24 @@ function Home() {
7272
return (
7373
<div>
7474
<h3>Welcome to the Home page!</h3>
75-
<p>this is not behind an authentication wall</p>
7675
<p>
76+
this is a <b>Public Page</b>, not behind an authentication wall
77+
</p>
78+
<p style={{ backgroundColor: '#EEE', padding: '1rem' }}>
79+
<div>
80+
<a
81+
href={`https://app.netlify.com/start/deploy?repository=https://github.com/netlify/create-react-app-lambda/tree/reachRouterAndGoTrueDemo&stack=cms`}
82+
>
83+
<img
84+
src="https://www.netlify.com/img/deploy/button.svg"
85+
alt="Deploy to Netlify"
86+
/>
87+
</a>
88+
</div>
7789
This demo is{' '}
7890
<a href="https://github.com/netlify/create-react-app-lambda/tree/reachRouterAndGoTrueDemo">
7991
Open Source.
80-
</a>
92+
</a>{' '}
8193
</p>
8294
</div>
8395
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy