diff --git a/packages/ui/src/copy/en.ts b/packages/ui/src/copy/en.ts index 76d4d59..4850b25 100644 --- a/packages/ui/src/copy/en.ts +++ b/packages/ui/src/copy/en.ts @@ -49,7 +49,23 @@ export const en = { petals: 'A few of my petals have fallen. Would you gather them?', tooFull: 'That was a lot of water. I will be fine by tomorrow.' }, - notKept: 'This device could not keep today’s care, so it lasts only until the garden closes.' + notKept: 'This device could not keep today’s care, so it lasts only until the garden closes.', + /** Keeping her (keep-her-safe.md). True and calm: a browser can clear a site's data. */ + safe: { + title: 'Keep her safe', + kept: 'This browser has promised to keep her.', + mayClear: 'This browser may clear her if the garden is not opened for a long time. A saved file keeps her for sure.', + unknown: 'This browser decides for itself how long it keeps her. A saved file keeps her for sure.', + ask: 'Ask the browser to keep her', + refused: 'The browser did not promise. A saved file keeps her for sure.', + install: 'On an iPhone or iPad, add the garden to your Home Screen to keep her.', + save: 'Save her to a file', + fileNote: 'The file holds her care and when it was given. It never holds your town.', + bringBack: 'Bring her back from a file', + broughtBack: (n: number): string => (n === 1 ? 'She is back, with 1 act of care.' : `She is back, with ${n} acts of care.`), + alreadyHere: 'Everything in that file is already here.', + notARose: 'That file does not hold a rose.' + } }, sunset: { /** ROADMAP Phase 1, word for word. */ diff --git a/packages/ui/src/rose/KeepSafe.svelte b/packages/ui/src/rose/KeepSafe.svelte new file mode 100644 index 0000000..87a885f --- /dev/null +++ b/packages/ui/src/rose/KeepSafe.svelte @@ -0,0 +1,152 @@ + + +
+

{en.rose.safe.title}

+ {#if persisted !== undefined} +

{refused ? en.rose.safe.refused : persisted === true ? en.rose.safe.kept : persisted === false ? en.rose.safe.mayClear : en.rose.safe.unknown}

+ {/if} + {#if persisted === false && !refused} + + {/if} + {#if wiring.installHint} +

{en.rose.safe.install}

+ {/if} + + +

{en.rose.safe.fileNote}

+ + +

{said}

+
+ + diff --git a/packages/ui/src/rose/Rose.svelte b/packages/ui/src/rose/Rose.svelte index dd6ae7f..b022a16 100644 --- a/packages/ui/src/rose/Rose.svelte +++ b/packages/ui/src/rose/Rose.svelte @@ -1,7 +1,8 @@