Skip to content

Commit 8df58ac

Browse files
authored
Merge pull request #2641 from ankaboot-source/docs/update-readme-features
feat(unsubscribe): fix preview link, add redirects, and fix newlines
2 parents ba6fd9e + 2ceaaf1 commit 8df58ac

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<template>
2+
<div class="m-auto text-center flex flex-col space-y-6 max-w-[30rem]">
3+
<div>
4+
<div class="inline-flex p-3">
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width="5rem"
8+
height="5rem"
9+
viewBox="0 0 24 24"
10+
>
11+
<path
12+
fill="#e53e3e"
13+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
14+
/>
15+
</svg>
16+
</div>
17+
<div class="text-4xl font-bold font-serif">
18+
{{ $t('unsubscribe.failure_header') }}
19+
</div>
20+
</div>
21+
<div>
22+
<p>
23+
{{ $t('unsubscribe.failure_message') }}
24+
</p>
25+
</div>
26+
<div>
27+
<Button :label="$t('unsubscribe.go_home')" @click="navigateTo('/')" />
28+
</div>
29+
</div>
30+
</template>
31+
32+
<script setup lang="ts">
33+
const $route = useRoute();
34+
const isPreview = Boolean($route.query.preview);
35+
</script>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<template>
2+
<div class="m-auto text-center flex flex-col space-y-6 max-w-[30rem]">
3+
<div>
4+
<div class="inline-flex p-3">
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width="5rem"
8+
height="5rem"
9+
viewBox="0 0 36 36"
10+
>
11+
<path
12+
fill="#55acee"
13+
d="M7 12a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h5a1 1 0 0 1 1 1m-2 5a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h3a1 1 0 0 1 1 1m-2 5a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h1a1 1 0 0 1 1 1"
14+
/>
15+
<path
16+
fill="#ccd6dd"
17+
d="M32.301 25c-.626 2.209-2.925 4-5.134 4h-20c-2.209 0-3.492-1.791-2.866-4l3.398-12c.626-2.209 2.924-4 5.133-4h20c2.209 0 3.493 1.791 2.867 4z"
18+
/>
19+
<path
20+
fill="#99aab5"
21+
d="M17.336 17.636L4.384 26.949c-.034.028-.054.063-.085.091a2.66 2.66 0 0 0 .992 1.384c.035-.023.073-.033.107-.06L18.35 19.05c.501-.391.681-1.023.401-1.414c-.281-.391-.913-.391-1.415 0m13.81 9.404c-.015-.028-.016-.063-.034-.09l-7.674-9.314c-.281-.391-.913-.391-1.416 0c-.501.391-.68 1.023-.4 1.414l7.676 9.314c.018.026.051.037.072.06a6.04 6.04 0 0 0 1.776-1.384"
22+
/>
23+
<path
24+
fill="#99aab5"
25+
d="M35.699 13c.626-2.209-.658-4-2.867-4h-20c-2.209 0-4.507 1.791-5.133 4l-.021.074l8.806 8.452c1.631 1.584 3.788 1.475 5.725.371l13.227-7.964z"
26+
/>
27+
<path
28+
fill="#e1e8ed"
29+
d="M32.832 9h-20c-1.578 0-3.189.921-4.217 2.248l9.217 8.794c.749.719 2.434.729 3.656 0l14.294-8.768C35.516 9.933 34.42 9 32.832 9"
30+
/>
31+
</svg>
32+
</div>
33+
<div class="text-4xl font-bold font-serif">
34+
{{ $t('unsubscribe.success_header') }}
35+
</div>
36+
</div>
37+
<div>
38+
<p>
39+
{{ $t('unsubscribe.success_message') }}
40+
</p>
41+
</div>
42+
<div v-if="isPreview" class="bg-blue-50 border border-blue-200 rounded p-4">
43+
<p class="text-sm text-blue-800">
44+
{{ $t('unsubscribe.preview_notice') }}
45+
</p>
46+
</div>
47+
</div>
48+
</template>
49+
50+
<script setup lang="ts">
51+
const $route = useRoute();
52+
const isPreview = Boolean($route.query.preview);
53+
</script>

0 commit comments

Comments
 (0)