Skip to content

Commit 11dda6e

Browse files
authored
v2.18.5 (#265)
2 parents b04073b + a5f5f6a commit 11dda6e

13 files changed

Lines changed: 333 additions & 649 deletions

File tree

app/confirm/Status/BackToHome/BackToHome.module.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import { useRouter } from "next/navigation";
1+
"use client";
22

3-
import styles from "./BackToHome.module.scss";
3+
import { useRouter } from "next/navigation";
44

55
export default function BackToHome() {
6-
const route = useRouter();
6+
const router = useRouter();
77

88
return (
9-
<div
10-
onClick={() => route.replace("/")} // prevent user from going back to confirm page
11-
className={styles.backToHome}
9+
<button
10+
onClick={() => router.replace("/")}
11+
className="px-6 py-4 rounded-2xl text-white font-semibold cursor-pointer select-none hover:opacity-90 transition-opacity"
12+
style={{ backgroundColor: "rgb(0, 145, 189)" }}
1213
>
1314
Back To Home
14-
</div>
15+
</button>
1516
);
16-
}
17+
}

app/confirm/Status/Failed/Failed.module.scss

Lines changed: 0 additions & 72 deletions
This file was deleted.

app/confirm/Status/Failed/Failed.tsx

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,42 @@
1-
import styles from "./Failed.module.scss";
2-
31
export default function Failed({ message }: { message: string }) {
42
return (
53
<>
64
<svg
7-
className={styles.status_svg}
5+
className="w-24 h-24 block"
86
version="1.1"
97
xmlns="http://www.w3.org/2000/svg"
108
viewBox="0 0 130.2 130.2"
119
>
10+
<style>{`
11+
@keyframes dash {
12+
0% {
13+
stroke-dashoffset: 1000;
14+
}
15+
100% {
16+
stroke-dashoffset: 0;
17+
}
18+
}
19+
@keyframes dash-line {
20+
0% {
21+
stroke-dashoffset: 1000;
22+
}
23+
100% {
24+
stroke-dashoffset: 0;
25+
}
26+
}
27+
.status-circle-error {
28+
stroke-dasharray: 1000;
29+
stroke-dashoffset: 0;
30+
animation: dash 0.9s ease-in-out;
31+
}
32+
.status-line {
33+
stroke-dasharray: 1000;
34+
stroke-dashoffset: 1000;
35+
animation: dash-line 0.9s 0.35s ease-in-out forwards;
36+
}
37+
`}</style>
1238
<circle
13-
className={styles.status_path + " " + styles.circle}
39+
className="status-circle-error"
1440
fill="none"
1541
stroke="#D06079"
1642
strokeWidth="6"
@@ -20,7 +46,7 @@ export default function Failed({ message }: { message: string }) {
2046
r="62.1"
2147
/>
2248
<line
23-
className={styles.path + " " + styles.line}
49+
className="status-line"
2450
fill="none"
2551
stroke="#D06079"
2652
strokeWidth="6"
@@ -32,7 +58,7 @@ export default function Failed({ message }: { message: string }) {
3258
y2="92.3"
3359
/>
3460
<line
35-
className={styles.path + " " + styles.line}
61+
className="status-line"
3662
fill="none"
3763
stroke="#D06079"
3864
strokeWidth="6"
@@ -44,7 +70,9 @@ export default function Failed({ message }: { message: string }) {
4470
y2="92.2"
4571
/>
4672
</svg>
47-
<h1 className={styles.status_text + " " + styles.error}>{message}</h1>
73+
<h1 className="text-2xl text-center font-semibold" style={{ color: "#D06079" }}>
74+
{message}
75+
</h1>
4876
</>
4977
);
50-
}
78+
}

app/confirm/Status/Success/Success.module.scss

Lines changed: 0 additions & 81 deletions
This file was deleted.
Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,42 @@
1-
import styles from "./Success.module.scss";
2-
31
export default function Success({ message }: { message: string }) {
42
return (
53
<>
64
<svg
7-
className={styles.status_svg}
5+
className="w-24 h-24 block"
86
version="1.1"
97
xmlns="http://www.w3.org/2000/svg"
108
viewBox="0 0 130.2 130.2"
119
>
10+
<style>{`
11+
@keyframes dash {
12+
0% {
13+
stroke-dashoffset: 1000;
14+
}
15+
100% {
16+
stroke-dashoffset: 0;
17+
}
18+
}
19+
@keyframes dash-check {
20+
0% {
21+
stroke-dashoffset: -100;
22+
}
23+
100% {
24+
stroke-dashoffset: 900;
25+
}
26+
}
27+
.status-circle {
28+
stroke-dasharray: 1000;
29+
stroke-dashoffset: 0;
30+
animation: dash 0.9s ease-in-out;
31+
}
32+
.status-check {
33+
stroke-dashoffset: -100;
34+
stroke-dasharray: 1000;
35+
animation: dash-check 0.9s 0.35s ease-in-out forwards;
36+
}
37+
`}</style>
1238
<circle
13-
className={styles.status_path + " " + styles.circle}
39+
className="status-circle"
1440
fill="none"
1541
stroke="#73AF55"
1642
strokeWidth="6"
@@ -20,7 +46,7 @@ export default function Success({ message }: { message: string }) {
2046
r="62.1"
2147
/>
2248
<polyline
23-
className={styles.status_path + " " + styles.check}
49+
className="status-check"
2450
fill="none"
2551
stroke="#73AF55"
2652
strokeWidth="6"
@@ -29,7 +55,9 @@ export default function Success({ message }: { message: string }) {
2955
points="100.2,40.2 51.5,88.8 29.8,67.5 "
3056
/>
3157
</svg>
32-
<h1 className={styles.status_text + " " + styles.success}>{message}</h1>
58+
<h1 className="text-2xl text-center font-semibold" style={{ color: "#73AF55" }}>
59+
{message}
60+
</h1>
3361
</>
3462
);
3563
}

0 commit comments

Comments
 (0)