364 lines
11 KiB
PHP
364 lines
11 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Password Reset Success - KidGo</title>
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');
|
|
|
|
:root {
|
|
--primary: #FF3B62;
|
|
--primary-light: #FFD6E0;
|
|
--success: #4CAF50;
|
|
--success-light: #E8F5E9;
|
|
--text: #333333;
|
|
--text-light: #666666;
|
|
--background: #f9f9f9;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Nunito', Arial, sans-serif;
|
|
background-color: var(--background);
|
|
color: var(--text);
|
|
height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-image:
|
|
radial-gradient(circle at 10% 20%, rgba(255, 59, 98, 0.1) 0%, transparent 20%),
|
|
radial-gradient(circle at 90% 30%, rgba(76, 175, 80, 0.1) 0%, transparent 20%),
|
|
radial-gradient(circle at 50% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 20%);
|
|
}
|
|
|
|
.container {
|
|
background-color: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
|
|
width: 90%;
|
|
max-width: 450px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
position: relative;
|
|
animation: fadeIn 0.8s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.header {
|
|
background-color: var(--primary);
|
|
position: relative;
|
|
padding: 30px 20px;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: -10px;
|
|
left: -10px;
|
|
right: -10px;
|
|
bottom: -10px;
|
|
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E") center center;
|
|
z-index: 0;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.logo {
|
|
width: 80px;
|
|
height: 80px;
|
|
background-color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 15px;
|
|
position: relative;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.logo i {
|
|
font-size: 40px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
h1 {
|
|
color: white;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
position: relative;
|
|
z-index: 1;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.content {
|
|
padding: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.success-icon {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: var(--success-light);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 25px;
|
|
position: relative;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
|
|
}
|
|
|
|
70% {
|
|
box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
|
|
}
|
|
|
|
100% {
|
|
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
|
|
}
|
|
}
|
|
|
|
.success-icon i {
|
|
font-size: 50px;
|
|
color: var(--success);
|
|
}
|
|
|
|
.message {
|
|
margin: 25px 0;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.message p {
|
|
margin-bottom: 15px;
|
|
color: var(--text-light);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.message strong {
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.confetti {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.confetti-1 {
|
|
background-color: #FFD700;
|
|
top: -10px;
|
|
left: 10%;
|
|
animation: confetti-drop-1 3s ease-out infinite;
|
|
}
|
|
|
|
.confetti-2 {
|
|
background-color: #FF3B62;
|
|
top: -10px;
|
|
left: 30%;
|
|
animation: confetti-drop-2 2.8s ease-out infinite;
|
|
}
|
|
|
|
.confetti-3 {
|
|
background-color: #4CAF50;
|
|
top: -10px;
|
|
left: 50%;
|
|
animation: confetti-drop-3 3.2s ease-out infinite;
|
|
}
|
|
|
|
.confetti-4 {
|
|
background-color: #2196F3;
|
|
top: -10px;
|
|
left: 70%;
|
|
animation: confetti-drop-4 2.5s ease-out infinite;
|
|
}
|
|
|
|
.confetti-5 {
|
|
background-color: #9C27B0;
|
|
top: -10px;
|
|
left: 90%;
|
|
animation: confetti-drop-5 3s ease-out infinite;
|
|
}
|
|
|
|
@keyframes confetti-drop-1 {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0) rotateZ(0);
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(300px) rotateZ(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes confetti-drop-2 {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0) rotateZ(0);
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(300px) rotateZ(-360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes confetti-drop-3 {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0) rotateZ(0);
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(300px) rotateZ(180deg);
|
|
}
|
|
}
|
|
|
|
@keyframes confetti-drop-4 {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0) rotateZ(0);
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(300px) rotateZ(-180deg);
|
|
}
|
|
}
|
|
|
|
@keyframes confetti-drop-5 {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0) rotateZ(0);
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(300px) rotateZ(90deg);
|
|
}
|
|
}
|
|
|
|
.decorative-element {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
opacity: 0.8;
|
|
z-index: -1;
|
|
}
|
|
|
|
.decorative-1 {
|
|
width: 40px;
|
|
height: 40px;
|
|
background-color: var(--primary-light);
|
|
bottom: 40px;
|
|
left: 20px;
|
|
animation: float 6s ease-in-out infinite;
|
|
}
|
|
|
|
.decorative-2 {
|
|
width: 20px;
|
|
height: 20px;
|
|
background-color: rgba(76, 175, 80, 0.3);
|
|
bottom: 80px;
|
|
right: 30px;
|
|
animation: float 4s ease-in-out infinite 1s;
|
|
}
|
|
|
|
@keyframes float {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(-15px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<!-- Confetti animation elements -->
|
|
<div class="confetti confetti-1"></div>
|
|
<div class="confetti confetti-2"></div>
|
|
<div class="confetti confetti-3"></div>
|
|
<div class="confetti confetti-4"></div>
|
|
<div class="confetti confetti-5"></div>
|
|
|
|
<!-- Decorative elements -->
|
|
<div class="decorative-element decorative-1"></div>
|
|
<div class="decorative-element decorative-2"></div>
|
|
|
|
<div class="header">
|
|
<div class="logo">
|
|
<i class="fas fa-child"></i>
|
|
</div>
|
|
<h1>Password Berhasil Direset!</h1>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="success-icon">
|
|
<i class="fas fa-check"></i>
|
|
</div>
|
|
|
|
<div class="message">
|
|
<p><strong>Yeay! Password baru siap digunakan</strong></p>
|
|
<p>Password Anda telah berhasil direset dan dapat langsung digunakan.</p>
|
|
<p>Silakan buka aplikasi KidGo dan login dengan password baru Anda untuk melanjutkan petualangan
|
|
bersama.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Animation for confetti - renew animation
|
|
function renewConfetti() {
|
|
const confettis = document.querySelectorAll('.confetti');
|
|
confettis.forEach(confetti => {
|
|
const delay = Math.random() * 5;
|
|
confetti.style.animation = "none";
|
|
setTimeout(() => {
|
|
const left = Math.random() * 80 + 10; // 10% to 90%
|
|
confetti.style.left = `${left}%`;
|
|
confetti.style.animation = confetti.style.animation.replace('none', '');
|
|
}, delay * 1000);
|
|
});
|
|
}
|
|
|
|
// Run animation on load and periodically
|
|
renewConfetti();
|
|
setInterval(renewConfetti, 3000);
|
|
</script>
|
|
</body>
|
|
|
|
</html> |