-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update password reset email look (#8)
* renaming and password reset fix * wrapping element for simpler resizing * give the user a route back to signin * tests for victory * Thats just a helper script * Speeling fixes
- Loading branch information
1 parent
71e6905
commit 7c76fa8
Showing
14 changed files
with
76 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,21 @@ export const emailPasswordReset = ({ | |
}) => email({ | ||
to, | ||
from: '[email protected]', | ||
subject: 'Password reset request', | ||
subject: 'TurningPointTales: Please reset your password', | ||
html: ` | ||
You have requested a password reset. | ||
<br/> | ||
If this was made in error, disregard. | ||
<br/> | ||
<br/> | ||
<a href="${resetUrl}" >Click here to reset your password</a> | ||
`, | ||
}); | ||
You forgot your password, didn't you? A tale as old as time.<br/> | ||
We won't hold it against you<br/> | ||
Here's a link to reset your password. | ||
<br/> | ||
<br/> | ||
<a href="${resetUrl}" >Password reset link</a> | ||
<br/> | ||
<br/> | ||
If you didn't request a password reset, please ignore this email. | ||
<br /> | ||
<br/> | ||
Adventure safely, | ||
<br/> | ||
- The Team At Turning Point Tales | ||
`, | ||
}); |
2 changes: 1 addition & 1 deletion
2
src/lib/stores/browserStore/display-ads.js → ...-state-stores/browserStore/display-ads.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { | ||
browserStore | ||
} from '../browserStore'; | ||
} from './index'; | ||
import { | ||
AD_SEEN | ||
} from './preDefinedKeys'; | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...lib/stores/browserStore/main-adventure.js → ...ate-stores/browserStore/main-adventure.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ | |
} | ||
img { | ||
width: 100%; | ||
display: flex; | ||
max-width: 500px; | ||
margin: 0 auto; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import * as sapper from "@sapper/app"; | ||
import { axios } from "src/lib/axios"; | ||
import { fade } from "src/lib/Transition"; | ||
import { statusTracking } from "src/lib/stores/status-tracking"; | ||
import { statusTracking } from "src/lib/status-tracking"; | ||
import { Input, Form, Checkbox } from "src/components/Form"; | ||
import Button from "src/components/Button.svelte"; | ||
import FAQ from "src/routes/faq.svelte"; | ||
|
@@ -54,6 +54,11 @@ | |
</script> | ||
|
||
<style> | ||
.user-new { | ||
max-width: 720px; | ||
margin: auto; | ||
} | ||
p { | ||
text-align: left; | ||
margin-bottom: 0; | ||
|
@@ -82,36 +87,36 @@ | |
<title>User Creation</title> | ||
</svelte:head> | ||
|
||
{#if $page.query.error === 'unknown'} | ||
<section class="errors text"> | ||
<section class='user-new'> | ||
{#if $page.query.error === 'unknown'} | ||
<article class="errors"> | ||
<p> | ||
An unknown error occurred! Please try again or contact | ||
<a href="mailto:[email protected]"> | ||
[email protected] | ||
</a> | ||
. | ||
</p> | ||
</article> | ||
{/if} | ||
|
||
<article> | ||
<h1>Let's create your user!</h1> | ||
|
||
<p> | ||
An unknown error occurred! Please try again or contact | ||
<a href="mailto:[email protected]"> | ||
[email protected] | ||
</a> | ||
. | ||
Creating an account grants you access to the entire library of adventures. | ||
We use your email and name, which we only share for things like payments, to | ||
personalize the experience and send you exciting updates. In lieu of sharing | ||
your data and browsing with a third party, we handcraft some interesting ads | ||
or let you skip those entirely with a paid subscription. | ||
</p> | ||
</section> | ||
{/if} | ||
|
||
<section class="preamble text"> | ||
<h1>Let's create your user!</h1> | ||
|
||
<p> | ||
Creating an account grants you access to the entire library of adventures. | ||
We use your email and name, which we only share for things like payments, to | ||
personalize the experience and send you exciting updates. In lieu of sharing | ||
your data and browsing with a third party, we handcraft some interesting ads | ||
or let you skip those entirely with a paid subscription. | ||
</p> | ||
|
||
<p> | ||
More questions? Check out our | ||
<a href="/faq">FAQ.</a> | ||
</p> | ||
</section> | ||
|
||
<section class="form text"> | ||
<p> | ||
More questions? Check out our | ||
<a href="/faq">FAQ.</a> | ||
</p> | ||
</article> | ||
|
||
<Form on:submit="{handleSubmit}" bind:this="{form}"> | ||
{#if errorMsg} | ||
<span class="error form-group">{errorMsg}</span> | ||
|
@@ -177,11 +182,11 @@ | |
Sign up | ||
</Button> | ||
</Form> | ||
</section> | ||
|
||
<section class="text"> | ||
<p> | ||
If you already have an account with us, you can log in | ||
<a href="/user/login">here.</a> | ||
</p> | ||
<article> | ||
<p> | ||
If you already have an account with us, you can log in | ||
<a href="/user/login">here.</a> | ||
</p> | ||
</article> | ||
</section> |