File size: 3,513 Bytes
26deaac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
  <title>Moodline — read the emotion in your words</title>
  <meta name="description" content="Type a sentence and watch a BiGRU model read the emotion inside it.">
  <meta name="color-scheme" content="light dark">

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500;1,9..144,600&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">

  <link rel="stylesheet" href="/static/style.css">
</head>
<body>
  <a class="skip-link" href="#main">Skip to main content</a>

  <div class="grain" aria-hidden="true"></div>

  <div class="app">

    <header class="topbar" aria-label="Moodline status">
      <div class="brand">
        <span class="brand-mark" id="statusDot" aria-label="Server status indicator" title="checking server..."></span>
        <span class="brand-name">Moodline</span>
      </div>
      <p class="brand-tag">an instrument that reads the mood inside a sentence</p>
    </header>

    <main id="main" aria-label="Moodline analysis area">

      <section class="console" id="console" aria-label="Input console">

        <div class="orb-stage">
          <div class="orb-glow"></div>
          <div class="orb" id="orb" aria-label="Analysis orb">
            <span class="orb-emoji" id="orbEmoji">✎</span>
          </div>
        </div>

        <div class="input-panel">
          <span class="eyebrow">INPUT</span>
          <textarea
            id="textInput"
            maxlength="2000"
            placeholder="Write a sentence and let it speak for itself— e.g. “I can't believe we actually pulled this off.”"
            aria-label="Your sentence for emotion analysis"
            aria-describedby="charCount"
          ></textarea>

          <div class="input-footer">
            <span class="char-count"><span id="charCount">0</span> / 2000</span>
            <button id="analyzeBtn" class="btn-primary" disabled aria-label="Analyze emotion" aria-disabled="true">
              <span class="btn-label">Read the mood</span>
              <span class="btn-arrow">→</span>
            </button>
          </div>

          <p class="error-msg" id="errorMsg" hidden role="alert"></p>
        </div>

      </section>

      <section class="result" id="resultSection" hidden aria-label="Emotion result">

        <div class="reveal">
          <span class="eyebrow">DETECTED</span>
          <div class="reveal-main">
            <span class="reveal-emoji" id="emotionEmoji">😄</span>
            <h1 id="emotionWord">Joy</h1>
          </div>
          <span class="confidence-mono" id="confidenceText">92.4% confidence</span>
          <blockquote class="echoed-text" id="echoedText"></blockquote>
        </div>

        <div class="breakdown">
          <span class="eyebrow">BREAKDOWN</span>
          <div class="bars" id="barsContainer"></div>
        </div>

      </section>

    </main>

    <footer class="footbar" aria-label="Footer">
      <span id="serverStatusText">connecting to model…</span>
      <span class="footbar-hint">⌘ / Ctrl + Enter to analyze</span>
    </footer>

  </div>

  <script src="/static/script.js"></script>
</body>
</html>