Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- anxiety_app/static/app.css +124 -139
- anxiety_app/templates/base.html +1 -1
- anxiety_app/templates/index.html +20 -12
anxiety_app/static/app.css
CHANGED
|
@@ -1,191 +1,176 @@
|
|
| 1 |
:root {
|
| 2 |
-
--
|
| 3 |
-
--
|
| 4 |
-
--
|
| 5 |
-
--
|
| 6 |
-
--
|
| 7 |
-
--
|
| 8 |
-
--
|
| 9 |
-
--
|
| 10 |
-
--
|
| 11 |
-
--
|
| 12 |
-
--
|
| 13 |
-
--
|
| 14 |
-
--
|
| 15 |
-
--
|
| 16 |
-
--
|
| 17 |
-
--maxw: 1080px;
|
| 18 |
}
|
| 19 |
|
| 20 |
* { box-sizing: border-box; }
|
| 21 |
-
|
| 22 |
html, body { margin: 0; padding: 0; }
|
| 23 |
|
| 24 |
body {
|
| 25 |
-
background:
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
var(--
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
min-height: 100vh;
|
| 33 |
display: flex;
|
| 34 |
flex-direction: column;
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
-
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0
|
| 38 |
|
| 39 |
-
/* ---------- header
|
| 40 |
-
.site-header {
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
border-bottom: 1px solid var(--border);
|
| 47 |
-
}
|
| 48 |
-
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
|
| 49 |
-
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -0.02em; }
|
| 50 |
-
.brand-mark { color: var(--primary-2); margin-right: 4px; }
|
| 51 |
-
.brand-accent { color: var(--muted); font-weight: 600; }
|
| 52 |
-
.nav { display: flex; gap: 4px; }
|
| 53 |
.nav a {
|
| 54 |
-
color: var(--
|
| 55 |
-
text-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
}
|
| 62 |
-
.nav a:hover { color: var(--text); background: var(--surface); }
|
| 63 |
-
.nav a.active { color: var(--text); background: var(--surface-2); }
|
| 64 |
|
| 65 |
/* ---------- layout ---------- */
|
| 66 |
-
.main { flex: 1;
|
| 67 |
-
.page-title { font-
|
| 68 |
-
.page-sub { color: var(--
|
| 69 |
|
| 70 |
/* ---------- hero ---------- */
|
| 71 |
-
.hero {
|
| 72 |
-
.
|
| 73 |
-
.hero h1 .
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
/* ---------- cards ---------- */
|
| 81 |
-
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
|
| 82 |
.card {
|
| 83 |
-
|
| 84 |
-
border: 1px solid var(--
|
| 85 |
-
border-radius: var(--radius);
|
| 86 |
-
padding: 26px;
|
| 87 |
-
text-decoration: none;
|
| 88 |
-
color: var(--text);
|
| 89 |
-
display: block;
|
| 90 |
-
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
|
| 91 |
}
|
| 92 |
-
|
| 93 |
-
.
|
| 94 |
-
.
|
| 95 |
-
.
|
| 96 |
-
.
|
| 97 |
-
.card h3 {
|
| 98 |
-
.card p { margin: 0; color: var(--
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
/* ---------- panel ---------- */
|
| 101 |
-
.panel {
|
| 102 |
-
background: linear-gradient(180deg, var(--surface), var(--bg-soft));
|
| 103 |
-
border: 1px solid var(--border);
|
| 104 |
-
border-radius: var(--radius);
|
| 105 |
-
padding: 28px;
|
| 106 |
-
box-shadow: var(--shadow);
|
| 107 |
-
}
|
| 108 |
.center { text-align: center; }
|
| 109 |
|
| 110 |
/* ---------- buttons ---------- */
|
| 111 |
.btn {
|
| 112 |
display: inline-flex; align-items: center; gap: 8px; justify-content: center;
|
| 113 |
-
font:
|
| 114 |
-
padding:
|
| 115 |
-
|
| 116 |
}
|
| 117 |
-
.btn:disabled { opacity: 0.
|
| 118 |
-
.btn
|
| 119 |
-
.btn-primary
|
| 120 |
-
.btn-
|
| 121 |
-
.btn-
|
| 122 |
-
.btn-
|
| 123 |
-
.btn-
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
/* ---------- media capture ---------- */
|
| 126 |
-
.stage { position: relative; display: inline-block;
|
| 127 |
.stage video { display: block; background: #000; width: 100%; height: auto; max-width: 640px; }
|
| 128 |
.stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
|
| 129 |
-
.controls { display: flex; gap:
|
| 130 |
|
| 131 |
-
.status { color: var(--
|
| 132 |
-
.result {
|
| 133 |
-
font-size: 1.5rem; font-weight: 800; margin: 12px 0 0; letter-spacing: -0.01em;
|
| 134 |
-
}
|
| 135 |
.result:empty { display: none; }
|
| 136 |
|
| 137 |
-
|
| 138 |
-
.
|
| 139 |
-
.chip {
|
| 140 |
-
.chip b { color: var(--text); }
|
| 141 |
|
| 142 |
-
/* mic pulse */
|
| 143 |
.mic-orb {
|
| 144 |
-
width:
|
| 145 |
-
|
| 146 |
-
background: rgba(251, 113, 133, 0.14); border: 1px solid rgba(251, 113, 133, 0.4);
|
| 147 |
}
|
| 148 |
.mic-orb.recording { animation: pulse 1.1s ease-in-out infinite; }
|
| 149 |
@keyframes pulse {
|
| 150 |
-
0% { box-shadow: 0 0 0 0 rgba(
|
| 151 |
-
70% { box-shadow: 0 0 0 20px rgba(
|
| 152 |
-
100% { box-shadow: 0 0 0 0 rgba(
|
| 153 |
}
|
| 154 |
-
audio { width: 100%; max-width: 420px; margin-top:
|
| 155 |
|
| 156 |
/* ---------- PHQ-9 ---------- */
|
| 157 |
-
.q { border: 1px solid var(--
|
| 158 |
-
.q-
|
| 159 |
-
.q-text
|
| 160 |
-
.
|
|
|
|
| 161 |
.opt { position: relative; }
|
| 162 |
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
|
| 163 |
.opt span {
|
| 164 |
-
display: block; text-align: center; padding:
|
| 165 |
-
|
| 166 |
-
font-size: 0.85rem; cursor: pointer; transition: all 0.12s ease;
|
| 167 |
}
|
| 168 |
-
.opt input:checked + span { border-color: var(--
|
| 169 |
-
.opt:hover span { border-color:
|
| 170 |
|
| 171 |
-
.scorecard { margin-top:
|
| 172 |
.scorecard:empty { display: none; }
|
| 173 |
-
.score-num { font-size:
|
| 174 |
-
.sev { display: inline-block; padding:
|
| 175 |
-
.sev-minimal {
|
| 176 |
-
.sev-mild {
|
| 177 |
-
.sev-moderate {
|
| 178 |
-
.sev-modsevere {
|
| 179 |
-
.sev-severe {
|
| 180 |
-
.crisis { margin-top:
|
| 181 |
-
|
| 182 |
-
/* ----------
|
| 183 |
-
.note { color: var(--
|
| 184 |
-
.
|
| 185 |
-
.site-footer
|
| 186 |
-
|
| 187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
.opts { grid-template-columns: repeat(2, 1fr); }
|
| 189 |
-
.
|
| 190 |
-
|
| 191 |
}
|
|
|
|
| 1 |
:root {
|
| 2 |
+
--paper: #f3eee3; /* warm cream */
|
| 3 |
+
--paper-2: #fbf8f1; /* card surface */
|
| 4 |
+
--ink: #211f1a; /* near-black, warm */
|
| 5 |
+
--ink-soft: #5d584d; /* muted */
|
| 6 |
+
--line: #ddd3c1; /* warm hairline */
|
| 7 |
+
--line-strong: #c7bba3;
|
| 8 |
+
--pine: #2c6e54; /* primary accent */
|
| 9 |
+
--pine-deep: #1f5240;
|
| 10 |
+
--clay: #bd5d39; /* secondary accent */
|
| 11 |
+
--ochre: #b9892f; /* tertiary accent */
|
| 12 |
+
--danger: #a3331f;
|
| 13 |
+
--radius: 4px;
|
| 14 |
+
--maxw: 1060px;
|
| 15 |
+
--serif: "Fraunces", Georgia, "Times New Roman", serif;
|
| 16 |
+
--sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
* { box-sizing: border-box; }
|
|
|
|
| 20 |
html, body { margin: 0; padding: 0; }
|
| 21 |
|
| 22 |
body {
|
| 23 |
+
background-color: var(--paper);
|
| 24 |
+
background-image:
|
| 25 |
+
linear-gradient(var(--line) 1px, transparent 1px),
|
| 26 |
+
linear-gradient(90deg, var(--line) 1px, transparent 1px);
|
| 27 |
+
background-size: 100% 100%, 0 0; /* grid hook, kept subtle/off by default */
|
| 28 |
+
color: var(--ink);
|
| 29 |
+
font-family: var(--sans);
|
| 30 |
+
font-size: 17px;
|
| 31 |
+
line-height: 1.65;
|
| 32 |
min-height: 100vh;
|
| 33 |
display: flex;
|
| 34 |
flex-direction: column;
|
| 35 |
+
-webkit-font-smoothing: antialiased;
|
| 36 |
}
|
| 37 |
|
| 38 |
+
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
|
| 39 |
|
| 40 |
+
/* ---------- header ---------- */
|
| 41 |
+
.site-header { border-bottom: 1px solid var(--line-strong); background: var(--paper); }
|
| 42 |
+
.header-inner { display: flex; align-items: baseline; justify-content: space-between; height: 70px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
|
| 43 |
+
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
|
| 44 |
+
.brand-mark { color: var(--pine); margin-right: 2px; }
|
| 45 |
+
.brand-accent { font-style: italic; color: var(--ink-soft); font-weight: 400; }
|
| 46 |
+
.nav { display: flex; gap: 22px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
.nav a {
|
| 48 |
+
position: relative; color: var(--ink-soft); text-decoration: none; font-weight: 500;
|
| 49 |
+
font-size: 0.92rem; letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 0;
|
| 50 |
+
}
|
| 51 |
+
.nav a:hover { color: var(--ink); }
|
| 52 |
+
.nav a.active { color: var(--ink); }
|
| 53 |
+
.nav a.active::after {
|
| 54 |
+
content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--clay);
|
| 55 |
}
|
|
|
|
|
|
|
| 56 |
|
| 57 |
/* ---------- layout ---------- */
|
| 58 |
+
.main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 72px; }
|
| 59 |
+
.page-title { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; }
|
| 60 |
+
.page-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 32px; max-width: 60ch; }
|
| 61 |
|
| 62 |
/* ---------- hero ---------- */
|
| 63 |
+
.hero { padding: 28px 0 8px; border-bottom: 1px solid var(--line-strong); margin-bottom: 8px; }
|
| 64 |
+
.eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin: 0 0 18px; }
|
| 65 |
+
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 22px; max-width: 16ch; }
|
| 66 |
+
.hero h1 .grad { font-style: italic; color: var(--pine); }
|
| 67 |
+
.hero p { color: var(--ink-soft); font-size: 1.2rem; max-width: 56ch; margin: 0 0 30px; }
|
| 68 |
+
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
|
| 69 |
+
|
| 70 |
+
/* ---------- editorial index cards ---------- */
|
| 71 |
+
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: 52px; border-top: 1px solid var(--line-strong); }
|
|
|
|
|
|
|
| 72 |
.card {
|
| 73 |
+
position: relative; padding: 30px 26px 30px 0; text-decoration: none; color: var(--ink);
|
| 74 |
+
border-bottom: 1px solid var(--line); display: block; transition: padding-left 0.2s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
}
|
| 76 |
+
.grid .card { border-right: 1px solid var(--line); padding-left: 22px; }
|
| 77 |
+
.grid .card:last-child { border-right: none; }
|
| 78 |
+
a.card:hover { padding-left: 30px; }
|
| 79 |
+
a.card:hover .card-no { color: var(--clay); }
|
| 80 |
+
.card-no { font-family: var(--serif); font-size: 1.1rem; color: var(--line-strong); font-weight: 600; display: block; margin-bottom: 16px; transition: color 0.2s ease; }
|
| 81 |
+
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -0.01em; }
|
| 82 |
+
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
|
| 83 |
+
.card .arrow { margin-top: 16px; color: var(--pine); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
|
| 84 |
+
|
| 85 |
+
/* keep old emoji-circle hook harmless if present */
|
| 86 |
+
.ic { display: none; }
|
| 87 |
|
| 88 |
/* ---------- panel ---------- */
|
| 89 |
+
.panel { background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
.center { text-align: center; }
|
| 91 |
|
| 92 |
/* ---------- buttons ---------- */
|
| 93 |
.btn {
|
| 94 |
display: inline-flex; align-items: center; gap: 8px; justify-content: center;
|
| 95 |
+
font-family: var(--sans); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
|
| 96 |
+
padding: 13px 26px; border-radius: 2px; border: 1px solid var(--ink); cursor: pointer;
|
| 97 |
+
text-decoration: none; transition: all 0.15s ease; background: var(--ink); color: var(--paper);
|
| 98 |
}
|
| 99 |
+
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
| 100 |
+
.btn:not(:disabled):hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
|
| 101 |
+
.btn-primary { background: var(--pine); border-color: var(--pine-deep); color: #fff; }
|
| 102 |
+
.btn-primary:not(:disabled):hover { box-shadow: 4px 4px 0 var(--pine-deep); }
|
| 103 |
+
.btn-face { background: var(--pine); border-color: var(--pine-deep); color: #fff; }
|
| 104 |
+
.btn-face:not(:disabled):hover { box-shadow: 4px 4px 0 var(--pine-deep); }
|
| 105 |
+
.btn-voice { background: var(--clay); border-color: #8f4225; color: #fff; }
|
| 106 |
+
.btn-voice:not(:disabled):hover { box-shadow: 4px 4px 0 #8f4225; }
|
| 107 |
+
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
|
| 108 |
+
.btn-ghost:not(:disabled):hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--line-strong); }
|
| 109 |
|
| 110 |
/* ---------- media capture ---------- */
|
| 111 |
+
.stage { position: relative; display: inline-block; overflow: hidden; border: 1px solid var(--ink); max-width: 100%; background: #000; }
|
| 112 |
.stage video { display: block; background: #000; width: 100%; height: auto; max-width: 640px; }
|
| 113 |
.stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
|
| 114 |
+
.controls { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
|
| 115 |
|
| 116 |
+
.status { color: var(--ink-soft); min-height: 1.5em; margin: 8px 0; }
|
| 117 |
+
.result { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 14px 0 0; letter-spacing: -0.01em; color: var(--pine); }
|
|
|
|
|
|
|
| 118 |
.result:empty { display: none; }
|
| 119 |
|
| 120 |
+
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
|
| 121 |
+
.chip { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); }
|
| 122 |
+
.chip b { color: var(--ink); font-family: var(--serif); }
|
|
|
|
| 123 |
|
|
|
|
| 124 |
.mic-orb {
|
| 125 |
+
width: 96px; height: 96px; border-radius: 50%; margin: 4px auto 20px; display: grid; place-items: center;
|
| 126 |
+
font-size: 2.1rem; background: var(--paper); border: 1.5px solid var(--clay);
|
|
|
|
| 127 |
}
|
| 128 |
.mic-orb.recording { animation: pulse 1.1s ease-in-out infinite; }
|
| 129 |
@keyframes pulse {
|
| 130 |
+
0% { box-shadow: 0 0 0 0 rgba(189, 93, 57, 0.4); }
|
| 131 |
+
70% { box-shadow: 0 0 0 20px rgba(189, 93, 57, 0); }
|
| 132 |
+
100% { box-shadow: 0 0 0 0 rgba(189, 93, 57, 0); }
|
| 133 |
}
|
| 134 |
+
audio { width: 100%; max-width: 420px; margin-top: 16px; }
|
| 135 |
|
| 136 |
/* ---------- PHQ-9 ---------- */
|
| 137 |
+
.q { border-bottom: 1px solid var(--line); padding: 20px 0; }
|
| 138 |
+
.q:first-child { padding-top: 4px; }
|
| 139 |
+
.q-text { font-weight: 500; font-size: 1.05rem; margin-bottom: 14px; }
|
| 140 |
+
.q-text .num { font-family: var(--serif); color: var(--clay); margin-right: 10px; font-weight: 600; }
|
| 141 |
+
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
|
| 142 |
.opt { position: relative; }
|
| 143 |
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
|
| 144 |
.opt span {
|
| 145 |
+
display: block; text-align: center; padding: 11px 6px; border-radius: 2px; border: 1px solid var(--line-strong);
|
| 146 |
+
background: var(--paper); color: var(--ink-soft); font-size: 0.86rem; cursor: pointer; transition: all 0.12s ease;
|
|
|
|
| 147 |
}
|
| 148 |
+
.opt input:checked + span { border-color: var(--pine); background: var(--pine); color: #fff; font-weight: 600; }
|
| 149 |
+
.opt:hover span { border-color: var(--ink); }
|
| 150 |
|
| 151 |
+
.scorecard { margin-top: 26px; padding: 26px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
|
| 152 |
.scorecard:empty { display: none; }
|
| 153 |
+
.score-num { font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; }
|
| 154 |
+
.sev { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; border: 1px solid currentColor; }
|
| 155 |
+
.sev-minimal { color: var(--pine); }
|
| 156 |
+
.sev-mild { color: var(--ochre); }
|
| 157 |
+
.sev-moderate { color: var(--clay); }
|
| 158 |
+
.sev-modsevere { color: #a83a1e; }
|
| 159 |
+
.sev-severe { color: var(--danger); }
|
| 160 |
+
.crisis { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--danger); background: rgba(163, 51, 31, 0.07); color: var(--danger); font-size: 0.95rem; }
|
| 161 |
+
|
| 162 |
+
/* ---------- misc ---------- */
|
| 163 |
+
.note { color: var(--ink-soft); font-size: 0.92rem; max-width: 64ch; margin: 22px auto 0; }
|
| 164 |
+
.note.center { margin-left: auto; margin-right: auto; }
|
| 165 |
+
.site-footer { border-top: 1px solid var(--line-strong); padding: 26px 0; color: var(--ink-soft); font-size: 0.9rem; background: var(--paper); }
|
| 166 |
+
.site-footer p { margin: 0 auto; text-align: center; max-width: var(--maxw); padding: 0 24px; }
|
| 167 |
+
|
| 168 |
+
@media (max-width: 720px) {
|
| 169 |
+
.grid { grid-template-columns: 1fr; }
|
| 170 |
+
.grid .card { border-right: none; padding-left: 0; }
|
| 171 |
+
}
|
| 172 |
+
@media (max-width: 520px) {
|
| 173 |
.opts { grid-template-columns: repeat(2, 1fr); }
|
| 174 |
+
.nav { gap: 14px; }
|
| 175 |
+
body { font-size: 16px; }
|
| 176 |
}
|
anxiety_app/templates/base.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<title>{% block title %}AffectScreening{% endblock %}</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
-
<link href="https://fonts.googleapis.com/css2?family=
|
| 10 |
<link rel="stylesheet" href="{{ url_for('static', filename='app.css') }}">
|
| 11 |
{% block head %}{% endblock %}
|
| 12 |
</head>
|
|
|
|
| 6 |
<title>{% block title %}AffectScreening{% endblock %}</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,900&family=Work+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
| 10 |
<link rel="stylesheet" href="{{ url_for('static', filename='app.css') }}">
|
| 11 |
{% block head %}{% endblock %}
|
| 12 |
</head>
|
anxiety_app/templates/index.html
CHANGED
|
@@ -3,33 +3,41 @@
|
|
| 3 |
|
| 4 |
{% block content %}
|
| 5 |
<section class="hero">
|
| 6 |
-
<
|
| 7 |
-
<
|
| 8 |
-
|
|
|
|
| 9 |
<div class="hero-cta">
|
| 10 |
-
<a class="btn btn-primary" href="{{ url_for('main.face') }}">Try face detection</a>
|
| 11 |
<a class="btn btn-ghost" href="{{ url_for('main.phq') }}">Take the PHQ-9</a>
|
| 12 |
</div>
|
| 13 |
</section>
|
| 14 |
|
| 15 |
<div class="grid">
|
| 16 |
<a class="card" href="{{ url_for('main.face') }}">
|
| 17 |
-
<
|
| 18 |
<h3>Facial emotion</h3>
|
| 19 |
-
<p>
|
|
|
|
|
|
|
| 20 |
</a>
|
| 21 |
<a class="card" href="{{ url_for('main.voice') }}">
|
| 22 |
-
<
|
| 23 |
<h3>Speech emotion</h3>
|
| 24 |
-
<p>Record a few seconds
|
|
|
|
|
|
|
| 25 |
</a>
|
| 26 |
<a class="card" href="{{ url_for('main.phq') }}">
|
| 27 |
-
<
|
| 28 |
<h3>PHQ-9 screening</h3>
|
| 29 |
-
<p>
|
|
|
|
|
|
|
| 30 |
</a>
|
| 31 |
</div>
|
| 32 |
|
| 33 |
-
<p class="note
|
| 34 |
-
The PHQ-9 is the only clinically validated component
|
|
|
|
| 35 |
{% endblock %}
|
|
|
|
| 3 |
|
| 4 |
{% block content %}
|
| 5 |
<section class="hero">
|
| 6 |
+
<p class="eyebrow">Multimodal emotion recognition · PHQ-9</p>
|
| 7 |
+
<h1>Reading well-being from a <span class="grad">face</span>, a voice, and a questionnaire.</h1>
|
| 8 |
+
<p>A research demo that pairs deep-learning emotion recognition with the clinically
|
| 9 |
+
validated PHQ-9 — all running in your browser, nothing stored.</p>
|
| 10 |
<div class="hero-cta">
|
| 11 |
+
<a class="btn btn-primary" href="{{ url_for('main.face') }}">Try face detection →</a>
|
| 12 |
<a class="btn btn-ghost" href="{{ url_for('main.phq') }}">Take the PHQ-9</a>
|
| 13 |
</div>
|
| 14 |
</section>
|
| 15 |
|
| 16 |
<div class="grid">
|
| 17 |
<a class="card" href="{{ url_for('main.face') }}">
|
| 18 |
+
<span class="card-no">01</span>
|
| 19 |
<h3>Facial emotion</h3>
|
| 20 |
+
<p>Your webcam streams to a convolutional network trained on FER2013, classifying
|
| 21 |
+
expression frame by frame.</p>
|
| 22 |
+
<div class="arrow">Open →</div>
|
| 23 |
</a>
|
| 24 |
<a class="card" href="{{ url_for('main.voice') }}">
|
| 25 |
+
<span class="card-no">02</span>
|
| 26 |
<h3>Speech emotion</h3>
|
| 27 |
+
<p>Record a few seconds; a 1-D CNN trained on RAVDESS predicts a combined gender
|
| 28 |
+
and emotion class from your voice.</p>
|
| 29 |
+
<div class="arrow">Open →</div>
|
| 30 |
</a>
|
| 31 |
<a class="card" href="{{ url_for('main.phq') }}">
|
| 32 |
+
<span class="card-no">03</span>
|
| 33 |
<h3>PHQ-9 screening</h3>
|
| 34 |
+
<p>The standard nine-item depression-screening questionnaire, scored with severity
|
| 35 |
+
bands and guidance.</p>
|
| 36 |
+
<div class="arrow">Open →</div>
|
| 37 |
</a>
|
| 38 |
</div>
|
| 39 |
|
| 40 |
+
<p class="note">Emotion recognition is a supplementary signal, <strong>not a diagnosis</strong>.
|
| 41 |
+
The PHQ-9 is the only clinically validated component, and it is a screening aid — not a substitute
|
| 42 |
+
for a clinician.</p>
|
| 43 |
{% endblock %}
|