cubdavid commited on
Commit
4258c01
·
verified ·
1 Parent(s): f10e467

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +237 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Behavioral First Responder Space
3
- emoji: 🦀
4
- colorFrom: green
5
- colorTo: green
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: behavioral-first-responder-space
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: gray
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,237 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Identity & Mental Health</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
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Poppins', sans-serif;
14
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
15
+ min-height: 100vh;
16
+ }
17
+
18
+ .identity-card {
19
+ transition: all 0.3s ease;
20
+ transform-style: preserve-3d;
21
+ perspective: 1000px;
22
+ cursor: pointer;
23
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
24
+ }
25
+
26
+ .identity-card:hover {
27
+ transform: translateY(-5px) scale(1.03);
28
+ box-shadow: 0 15px 30px rgba(0,0,0,0.2);
29
+ }
30
+
31
+ .card-front, .card-back {
32
+ backface-visibility: hidden;
33
+ transition: all 0.6s ease;
34
+ }
35
+
36
+ .card-back {
37
+ transform: rotateY(180deg);
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ width: 100%;
42
+ height: 100%;
43
+ }
44
+
45
+ .flipped .card-front {
46
+ transform: rotateY(180deg);
47
+ }
48
+
49
+ .flipped .card-back {
50
+ transform: rotateY(0deg);
51
+ }
52
+
53
+ .pulse {
54
+ animation: pulse 2s infinite;
55
+ }
56
+
57
+ @keyframes pulse {
58
+ 0% { transform: scale(1); }
59
+ 50% { transform: scale(1.05); }
60
+ 100% { transform: scale(1); }
61
+ }
62
+
63
+ .rainbow-text {
64
+ background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
65
+ background-size: 400% 400%;
66
+ -webkit-background-clip: text;
67
+ background-clip: text;
68
+ color: transparent;
69
+ animation: rainbow 8s ease infinite;
70
+ }
71
+
72
+ @keyframes rainbow {
73
+ 0% { background-position: 0% 50%; }
74
+ 50% { background-position: 100% 50%; }
75
+ 100% { background-position: 0% 50%; }
76
+ }
77
+ </style>
78
+ </head>
79
+ <body class="py-12 px-4 sm:px-6 lg:px-8">
80
+ <div class="max-w-7xl mx-auto">
81
+ <header class="text-center mb-16">
82
+ <h1 class="text-4xl md:text-5xl font-bold mb-4 rainbow-text">Dimensions of Identity</h1>
83
+ <p class="text-xl text-gray-600 max-w-3xl mx-auto">Exploring how different aspects of identity intersect with mental health and wellbeing</p>
84
+ <div class="mt-8">
85
+ <button id="shuffle-btn" class="px-6 py-3 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition flex items-center mx-auto">
86
+ <i class="fas fa-random mr-2"></i> Shuffle Layout
87
+ </button>
88
+ </div>
89
+ </header>
90
+
91
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" id="identity-grid">
92
+ <!-- Cards will be inserted here by JavaScript -->
93
+ </div>
94
+
95
+ <div class="mt-16 bg-white rounded-xl shadow-lg p-8 max-w-4xl mx-auto">
96
+ <h2 class="text-2xl font-bold text-gray-800 mb-4">Understanding Identity & Mental Health</h2>
97
+ <p class="text-gray-600 mb-4">
98
+ Each aspect of our identity can influence our mental health experiences. Societal attitudes, discrimination,
99
+ and personal acceptance all play roles in how these identities affect wellbeing.
100
+ </p>
101
+ <div class="bg-indigo-50 rounded-lg p-4 border-l-4 border-indigo-500">
102
+ <p class="text-indigo-800">
103
+ <i class="fas fa-info-circle mr-2"></i> Click on any identity card to learn more about its mental health implications.
104
+ </p>
105
+ </div>
106
+ </div>
107
+ </div>
108
+
109
+ <script>
110
+ document.addEventListener('DOMContentLoaded', function() {
111
+ const identities = [
112
+ {
113
+ title: "Race",
114
+ icon: "fas fa-globe",
115
+ color: "bg-blue-500",
116
+ backContent: "Racial discrimination and microaggressions can lead to chronic stress, anxiety, and depression."
117
+ },
118
+ {
119
+ title: "Religion",
120
+ icon: "fas fa-praying-hands",
121
+ color: "bg-purple-500",
122
+ backContent: "Religious identity can provide community support but may also lead to discrimination or internal conflict."
123
+ },
124
+ {
125
+ title: "Gender-Science",
126
+ icon: "fas fa-atom",
127
+ color: "bg-green-500",
128
+ backContent: "Gender stereotypes in STEM fields can create barriers and impact self-esteem and career satisfaction."
129
+ },
130
+ {
131
+ title: "Sexuality",
132
+ icon: "fas fa-rainbow",
133
+ color: "bg-pink-500",
134
+ backContent: "LGBTQ+ individuals face higher rates of mental health challenges due to stigma and minority stress."
135
+ },
136
+ {
137
+ title: "Asian",
138
+ icon: "fas fa-yin-yang",
139
+ color: "bg-red-500",
140
+ backContent: "Model minority myth can create pressure and mask mental health needs in Asian communities."
141
+ },
142
+ {
143
+ title: "Transgender",
144
+ icon: "fas fa-transgender",
145
+ color: "bg-indigo-500",
146
+ backContent: "Gender dysphoria and transphobia contribute to higher rates of depression and anxiety."
147
+ },
148
+ {
149
+ title: "Age",
150
+ icon: "fas fa-hourglass-half",
151
+ color: "bg-yellow-500",
152
+ backContent: "Ageism affects self-worth and can lead to isolation, particularly in older adults."
153
+ },
154
+ {
155
+ title: "Gender-Career",
156
+ icon: "fas fa-briefcase",
157
+ color: "bg-teal-500",
158
+ backContent: "Gender roles in the workplace can create stress, imposter syndrome, and career limitations."
159
+ },
160
+ {
161
+ title: "Weight",
162
+ icon: "fas fa-weight",
163
+ color: "bg-orange-500",
164
+ backContent: "Weight stigma is linked to body dissatisfaction, eating disorders, and depression."
165
+ },
166
+ {
167
+ title: "Arab-Muslim",
168
+ icon: "fas fa-mosque",
169
+ color: "bg-emerald-500",
170
+ backContent: "Islamophobia and stereotyping can lead to anxiety, hypervigilance, and identity conflicts."
171
+ },
172
+ {
173
+ title: "Disability",
174
+ icon: "fas fa-wheelchair",
175
+ color: "bg-amber-500",
176
+ backContent: "Ableism and accessibility barriers contribute to social isolation and mental health challenges."
177
+ }
178
+ ];
179
+
180
+ const grid = document.getElementById('identity-grid');
181
+
182
+ // Create cards
183
+ identities.forEach(identity => {
184
+ const card = document.createElement('div');
185
+ card.className = `identity-card relative rounded-xl overflow-hidden h-48 ${identity.color} text-white`;
186
+ card.innerHTML = `
187
+ <div class="card-front h-full flex flex-col items-center justify-center p-6">
188
+ <i class="${identity.icon} text-4xl mb-4"></i>
189
+ <h3 class="text-2xl font-bold text-center">${identity.title}</h3>
190
+ <p class="mt-2 text-sm opacity-80">Click to learn more</p>
191
+ </div>
192
+ <div class="card-back ${identity.color} h-full flex items-center justify-center p-6">
193
+ <p class="text-center">${identity.backContent}</p>
194
+ </div>
195
+ `;
196
+
197
+ card.addEventListener('click', function() {
198
+ this.classList.toggle('flipped');
199
+ });
200
+
201
+ grid.appendChild(card);
202
+ });
203
+
204
+ // Shuffle button functionality
205
+ document.getElementById('shuffle-btn').addEventListener('click', function() {
206
+ const cards = Array.from(grid.children);
207
+ cards.sort(() => Math.random() - 0.5);
208
+
209
+ // Remove all cards
210
+ while (grid.firstChild) {
211
+ grid.removeChild(grid.firstChild);
212
+ }
213
+
214
+ // Add back shuffled cards
215
+ cards.forEach(card => {
216
+ grid.appendChild(card);
217
+ card.classList.remove('flipped');
218
+ });
219
+
220
+ // Add pulse animation to all cards
221
+ cards.forEach(card => {
222
+ card.classList.add('pulse');
223
+ setTimeout(() => {
224
+ card.classList.remove('pulse');
225
+ }, 2000);
226
+ });
227
+ });
228
+
229
+ // Add animation to header
230
+ const header = document.querySelector('header h1');
231
+ setInterval(() => {
232
+ header.classList.toggle('animate-bounce');
233
+ }, 3000);
234
+ });
235
+ </script>
236
+ <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=cubdavid/behavioral-first-responder-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
237
+ </html>
prompts.txt ADDED
File without changes