undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +350 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: tt-generational-trauma-quiz
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,350 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Do You Carry Generational Trauma? | A Reflection for Transgenerational Women</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 10 |
+
<style>
|
| 11 |
+
.fade-in {
|
| 12 |
+
animation: fadeIn 0.8s ease-in-out;
|
| 13 |
+
}
|
| 14 |
+
@keyframes fadeIn {
|
| 15 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 16 |
+
to { opacity: 1; transform: translateY(0); }
|
| 17 |
+
}
|
| 18 |
+
.option-card {
|
| 19 |
+
transition: all 0.3s ease;
|
| 20 |
+
}
|
| 21 |
+
.option-card:hover {
|
| 22 |
+
transform: translateY(-3px);
|
| 23 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 24 |
+
}
|
| 25 |
+
.progress-bar {
|
| 26 |
+
height: 6px;
|
| 27 |
+
transition: width 0.5s ease;
|
| 28 |
+
}
|
| 29 |
+
.floating-leaves {
|
| 30 |
+
position: absolute;
|
| 31 |
+
opacity: 0.1;
|
| 32 |
+
z-index: -1;
|
| 33 |
+
}
|
| 34 |
+
</style>
|
| 35 |
+
</head>
|
| 36 |
+
<body class="bg-[#FFFFFF] font-[Montserrat] text-[#70511F] min-h-screen">
|
| 37 |
+
<!-- Floating decorative elements -->
|
| 38 |
+
<div class="floating-leaves top-20 left-10 text-[#cba872] text-6xl transform rotate-12"><i class="fas fa-leaf"></i></div>
|
| 39 |
+
<div class="floating-leaves top-1/3 right-5 text-[#cba872] text-5xl transform -rotate-15"><i class="fas fa-seedling"></i></div>
|
| 40 |
+
<div class="floating-leaves bottom-1/4 left-1/4 text-[#cba872] text-7xl transform rotate-45"><i class="fas fa-spa"></i></div>
|
| 41 |
+
|
| 42 |
+
<div class="container mx-auto px-4 py-12 max-w-3xl">
|
| 43 |
+
<!-- Header -->
|
| 44 |
+
<header class="text-center mb-12 fade-in">
|
| 45 |
+
<h1 class="text-3xl md:text-4xl font-mb font-bold text-[#cba872] mb-4">Do You Carry Generational Trauma?</h1>
|
| 46 |
+
<p class="text-lg text-[#cba872] max-w-2xl mx-auto">A compassionate reflection for women bridging past and future</p>
|
| 47 |
+
<div class="w-full bg-[#cba872] h-1 mt-6 rounded-full"></div>
|
| 48 |
+
</header>
|
| 49 |
+
|
| 50 |
+
<!-- Quiz Container -->
|
| 51 |
+
<div id="quiz-container" class="bg-[#FFFFFF] rounded-xl shadow-lg overflow-hidden fade-in">
|
| 52 |
+
<!-- Progress Bar -->
|
| 53 |
+
<div class="bg-[#f5f5f5] h-2 w-full">
|
| 54 |
+
<div id="progress-bar" class="progress-bar bg-[#cba872] rounded-r-full" style="width: 0%"></div>
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
<!-- Welcome Screen -->
|
| 58 |
+
<div id="welcome-screen" class="p-8 md:p-10">
|
| 59 |
+
<div class="flex justify-center mb-8">
|
| 60 |
+
<div class="w-20 h-20 rounded-full bg-[#f5f5f5] flex items-center justify-center text-[#cba872]">
|
| 61 |
+
<i class="fas fa-hands-helping text-3xl"></i>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
<h2 class="text-2xl font-mb font-bold text-center text-[#CBA872] mb-6">Welcome, Sister</h2>
|
| 65 |
+
<p class="text-[#70511F] mb-6 leading-relaxed">
|
| 66 |
+
This isn't just another quiz—it's a mirror held with care, inviting you to reflect on the emotional patterns you may have inherited and the legacy you're creating. There are no right or wrong answers, only truth to discover with kindness.
|
| 67 |
+
</p>
|
| 68 |
+
<p class="text-[#70511F] mb-8 leading-relaxed">
|
| 69 |
+
As a transgenerational woman in Florida's vibrant communities, you carry so much—cultural pride, family expectations, personal dreams. Let's gently explore what might be yours to keep, and what might be ready to transform.
|
| 70 |
+
</p>
|
| 71 |
+
<div class="text-center">
|
| 72 |
+
<button onclick="startQuiz()" class="bg-[#cba872] hover:bg-[#b59762] text-white font-medium py-3 px-8 rounded-full shadow-md transition-all duration-300 transform hover:scale-105">
|
| 73 |
+
Begin Your Reflection <i class="fas fa-chevron-right ml-2"></i>
|
| 74 |
+
</button>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
<!-- Question Screens (initially hidden) -->
|
| 79 |
+
<div id="question-screens" class="hidden">
|
| 80 |
+
<!-- Questions will be inserted here by JavaScript -->
|
| 81 |
+
</div>
|
| 82 |
+
|
| 83 |
+
<!-- Results Screen (initially hidden) -->
|
| 84 |
+
<div id="results-screen" class="hidden p-8 md:p-10">
|
| 85 |
+
<!-- Results will be inserted here by JavaScript -->
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<footer class="text-center mt-12 text-sm text-[#cba872] opacity-80">
|
| 90 |
+
<p>Created with care for transgenerational women in Florida</p>
|
| 91 |
+
<p class="mt-1">Your story matters. Your healing creates ripples.</p>
|
| 92 |
+
</footer>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<script>
|
| 96 |
+
// Quiz questions tailored to the audience
|
| 97 |
+
const questions = [
|
| 98 |
+
{
|
| 99 |
+
question: "When facing challenges, do you often feel you're carrying more than just your own struggles?",
|
| 100 |
+
options: [
|
| 101 |
+
"Yes, like I'm solving problems for my whole lineage",
|
| 102 |
+
"Sometimes, especially with family matters",
|
| 103 |
+
"Not usually—I try to keep boundaries",
|
| 104 |
+
"I'm not sure"
|
| 105 |
+
],
|
| 106 |
+
theme: "burden"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
question: "How often do you suppress your needs to maintain family harmony?",
|
| 110 |
+
options: [
|
| 111 |
+
"Frequently—it feels necessary",
|
| 112 |
+
"Only in major conflicts",
|
| 113 |
+
"Rarely, I prioritize my needs",
|
| 114 |
+
"I'm working on finding balance"
|
| 115 |
+
],
|
| 116 |
+
theme: "self-sacrifice"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
question: "Do certain emotional reactions feel bigger than the current situation warrants?",
|
| 120 |
+
options: [
|
| 121 |
+
"Yes, like echoes from past generations",
|
| 122 |
+
"Sometimes—I wonder where it comes from",
|
| 123 |
+
"Not really, my reactions feel current",
|
| 124 |
+
"I haven't noticed"
|
| 125 |
+
],
|
| 126 |
+
theme: "emotional-patterns"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
question: "How connected do you feel to your cultural roots while living in Florida's diverse environment?",
|
| 130 |
+
options: [
|
| 131 |
+
"Deeply connected but sometimes conflicted",
|
| 132 |
+
"I blend traditions in my own way",
|
| 133 |
+
"More Americanized than my ancestors",
|
| 134 |
+
"I'm still exploring this"
|
| 135 |
+
],
|
| 136 |
+
theme: "cultural-identity"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
question: "When you achieve success, do you ever feel guilt or 'why me?' thoughts?",
|
| 140 |
+
options: [
|
| 141 |
+
"Yes, like I'm surpassing what was possible for ancestors",
|
| 142 |
+
"Sometimes, especially compared to family",
|
| 143 |
+
"No, I see it as my rightful blessing",
|
| 144 |
+
"I feel proud but also pressure"
|
| 145 |
+
],
|
| 146 |
+
theme: "success-guilt"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
question: "How comfortable are you with showing vulnerability in your community?",
|
| 150 |
+
options: [
|
| 151 |
+
"Rarely—there's pressure to be strong",
|
| 152 |
+
"With close friends only",
|
| 153 |
+
"I'm learning to be more open",
|
| 154 |
+
"Quite comfortable"
|
| 155 |
+
],
|
| 156 |
+
theme: "vulnerability"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
question: "Do you notice family patterns around money, relationships, or health repeating?",
|
| 160 |
+
options: [
|
| 161 |
+
"Clearly—I'm working to change them",
|
| 162 |
+
"Some, but I'm not sure why",
|
| 163 |
+
"Not particularly",
|
| 164 |
+
"I see both patterns and breaks"
|
| 165 |
+
],
|
| 166 |
+
theme: "behavioral-patterns"
|
| 167 |
+
}
|
| 168 |
+
];
|
| 169 |
+
|
| 170 |
+
// Possible results based on score ranges
|
| 171 |
+
const results = [
|
| 172 |
+
{
|
| 173 |
+
title: "You Carry Light Threads",
|
| 174 |
+
range: [0, 10],
|
| 175 |
+
description: "You've done remarkable work identifying and transforming inherited patterns. While you honor your roots, you've claimed agency over your emotional legacy. Continue nurturing this conscious relationship with your history as you write new chapters.",
|
| 176 |
+
action: "Consider mentoring others in your community who are earlier in this journey. Your wisdom is valuable.",
|
| 177 |
+
icon: "fas fa-feather-alt",
|
| 178 |
+
color: "#CBA872"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
title: "A Tapestry in Transformation",
|
| 182 |
+
range: [11, 18],
|
| 183 |
+
description: "You're actively aware of generational patterns and courageously working to change what no longer serves you. Some threads still feel tangled—this is normal. Your awareness is the first powerful step toward healing.",
|
| 184 |
+
action: "Explore intergenerational healing practices that resonate with your culture. Even small rituals can create meaningful shifts.",
|
| 185 |
+
icon: "fas fa-hands",
|
| 186 |
+
color: "#CBA872"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
title: "Honoring the Weight You Carry",
|
| 190 |
+
range: [19, 28],
|
| 191 |
+
description: "You're carrying significant emotional inheritance, perhaps more than you realize. The good news? Your awareness is growing. Many transgenerational women in Florida's intense cultural mix feel this way. You're not alone, and this weight isn't yours to carry forever.",
|
| 192 |
+
action: "Begin with small acts of reparenting yourself. What would the child version of you need to hear? Start there.",
|
| 193 |
+
icon: "fas fa-hand-holding-heart",
|
| 194 |
+
color: "#CBA872"
|
| 195 |
+
}
|
| 196 |
+
];
|
| 197 |
+
|
| 198 |
+
// Quiz state variables
|
| 199 |
+
let currentQuestion = 0;
|
| 200 |
+
let score = 0;
|
| 201 |
+
const scoreValues = [3, 2, 1, 0]; // Points for each answer option
|
| 202 |
+
|
| 203 |
+
// DOM elements
|
| 204 |
+
const quizContainer = document.getElementById('quiz-container');
|
| 205 |
+
const welcomeScreen = document.getElementById('welcome-screen');
|
| 206 |
+
const questionScreens = document.getElementById('question-screens');
|
| 207 |
+
const resultsScreen = document.getElementById('results-screen');
|
| 208 |
+
const progressBar = document.getElementById('progress-bar');
|
| 209 |
+
|
| 210 |
+
// Start the quiz
|
| 211 |
+
function startQuiz() {
|
| 212 |
+
welcomeScreen.classList.add('hidden');
|
| 213 |
+
questionScreens.classList.remove('hidden');
|
| 214 |
+
renderQuestion();
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
// Render the current question
|
| 218 |
+
function renderQuestion() {
|
| 219 |
+
updateProgressBar();
|
| 220 |
+
|
| 221 |
+
const question = questions[currentQuestion];
|
| 222 |
+
let optionsHtml = '';
|
| 223 |
+
|
| 224 |
+
question.options.forEach((option, index) => {
|
| 225 |
+
optionsHtml += `
|
| 226 |
+
<div class="option-card cursor-pointer bg-[#f5f5f5] border border-[#e0e0e0] rounded-lg p-4 mb-3 hover:bg-[#e8e8e8] transition-colors"
|
| 227 |
+
onclick="selectOption(${index})">
|
| 228 |
+
<div class="flex items-center">
|
| 229 |
+
<div class="w-8 h-8 rounded-full bg-white border border-[#e0e0e0] mr-3 flex items-center justify-center text-[#cba872]">
|
| 230 |
+
${index + 1}
|
| 231 |
+
</div>
|
| 232 |
+
<div class="text-[#70511F]">${option}</div>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
`;
|
| 236 |
+
});
|
| 237 |
+
|
| 238 |
+
questionScreens.innerHTML = `
|
| 239 |
+
<div class="p-8 md:p-10 fade-in">
|
| 240 |
+
<div class="flex items-center mb-6">
|
| 241 |
+
<div class="w-12 h-12 rounded-full bg-${getThemeColor(question.theme)} bg-opacity-20 flex items-center justify-center text-${getThemeColor(question.theme)} mr-4">
|
| 242 |
+
<i class="${getThemeIcon(question.theme)}"></i>
|
| 243 |
+
</div>
|
| 244 |
+
<span class="text-sm font-medium text-${getThemeColor(question.theme)}">Question ${currentQuestion + 1} of ${questions.length}</span>
|
| 245 |
+
</div>
|
| 246 |
+
<h3 class="text-xl font-bold text-[#cba872] mb-6 leading-tight">${question.question}</h3>
|
| 247 |
+
<div class="space-y-3">
|
| 248 |
+
${optionsHtml}
|
| 249 |
+
</div>
|
| 250 |
+
</div>
|
| 251 |
+
`;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
// Get icon based on question theme
|
| 255 |
+
function getThemeIcon(theme) {
|
| 256 |
+
const icons = {
|
| 257 |
+
"burden": "fas fa-mountain",
|
| 258 |
+
"self-sacrifice": "fas fa-heart",
|
| 259 |
+
"emotional-patterns": "fas fa-brain",
|
| 260 |
+
"cultural-identity": "fas fa-globe-americas",
|
| 261 |
+
"success-guilt": "fas fa-trophy",
|
| 262 |
+
"vulnerability": "fas fa-hand-holding-heart",
|
| 263 |
+
"behavioral-patterns": "fas fa-redo"
|
| 264 |
+
};
|
| 265 |
+
return icons[theme] || "fas fa-question";
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
// Get color based on question theme
|
| 269 |
+
function getThemeColor(theme) {
|
| 270 |
+
const colors = {
|
| 271 |
+
"burden": "amber",
|
| 272 |
+
"self-sacrifice": "rose",
|
| 273 |
+
"emotional-patterns": "violet",
|
| 274 |
+
"cultural-identity": "emerald",
|
| 275 |
+
"success-guilt": "amber",
|
| 276 |
+
"vulnerability": "rose",
|
| 277 |
+
"behavioral-patterns": "indigo"
|
| 278 |
+
};
|
| 279 |
+
return colors[theme] || "amber";
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
// Handle option selection
|
| 283 |
+
function selectOption(optionIndex) {
|
| 284 |
+
score += scoreValues[optionIndex];
|
| 285 |
+
currentQuestion++;
|
| 286 |
+
|
| 287 |
+
if (currentQuestion < questions.length) {
|
| 288 |
+
renderQuestion();
|
| 289 |
+
} else {
|
| 290 |
+
showResults();
|
| 291 |
+
}
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
// Update progress bar
|
| 295 |
+
function updateProgressBar() {
|
| 296 |
+
const progress = ((currentQuestion) / questions.length) * 100;
|
| 297 |
+
progressBar.style.width = `${progress}%`;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
// Show results
|
| 301 |
+
function showResults() {
|
| 302 |
+
questionScreens.classList.add('hidden');
|
| 303 |
+
resultsScreen.classList.remove('hidden');
|
| 304 |
+
|
| 305 |
+
let result;
|
| 306 |
+
for (const r of results) {
|
| 307 |
+
if (score >= r.range[0] && score <= r.range[1]) {
|
| 308 |
+
result = r;
|
| 309 |
+
break;
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
resultsScreen.innerHTML = `
|
| 314 |
+
<div class="text-center fade-in">
|
| 315 |
+
<div class="w-24 h-24 rounded-full bg-${result.color.split('-')[1]}-100 mx-auto flex items-center justify-center text-4xl ${result.color} mb-6">
|
| 316 |
+
<i class="${result.icon}"></i>
|
| 317 |
+
</div>
|
| 318 |
+
<h2 class="text-2xl font-mb font-semibold text-[#CBA872] mb-4">${result.title}</h2>
|
| 319 |
+
|
| 320 |
+
<div class="bg-[#f5f5f5] rounded-lg p-6 mb-8 text-left">
|
| 321 |
+
<p class="text-[#70511F] mb-6 leading-relaxed">${result.description}</p>
|
| 322 |
+
<div class="bg-white p-4 rounded border-l-4 border-[#cba872]">
|
| 323 |
+
<h4 class="font-medium text-${result.color.split('-')[1]}-700 mb-2">Your Next Step</h4>
|
| 324 |
+
<p class="text-[#70511F]">${result.action}</p>
|
| 325 |
+
</div>
|
| 326 |
+
</div>
|
| 327 |
+
|
| 328 |
+
<div class="flex flex-col sm:flex-row justify-center gap-4 mt-8">
|
| 329 |
+
<button onclick="restartQuiz()" class="bg-[#CBA872] hover:bg-[#b59762] text-[#FFFFFF] font-medium py-2 px-6 rounded-full transition-colors">
|
| 330 |
+
Reflect Again
|
| 331 |
+
</button>
|
| 332 |
+
<a href="https://www.gentogentherapy.com/book-now" target="_blank" class="bg-gradient-to-r from-[#cba872] to-[#70511F] hover:from-[#b59762] hover:to-[#5a4018] text-white font-medium py-2 px-6 rounded-full shadow-md transition-all">
|
| 333 |
+
Start Healing <i class="fas fa-external-link-alt ml-2"></i>
|
| 334 |
+
</a>
|
| 335 |
+
</div>
|
| 336 |
+
</div>
|
| 337 |
+
`;
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
// Restart the quiz
|
| 341 |
+
function restartQuiz() {
|
| 342 |
+
currentQuestion = 0;
|
| 343 |
+
score = 0;
|
| 344 |
+
progressBar.style.width = '0%';
|
| 345 |
+
resultsScreen.classList.add('hidden');
|
| 346 |
+
welcomeScreen.classList.remove('hidden');
|
| 347 |
+
}
|
| 348 |
+
</script>
|
| 349 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Transgenerational/tt-generational-trauma-quiz" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 350 |
+
</html>
|