FunWith commited on
Commit
d30c8ef
·
verified ·
1 Parent(s): 4e3ac7f

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. static/index.html +36 -2
  2. static/styles.css +29 -0
static/index.html CHANGED
@@ -12,7 +12,22 @@
12
  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"></script>
13
  </head>
14
  <body>
15
- <!-- ── Welcome Screen ─────────────────────────────────────────── -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  <div id="welcomeScreen" class="welcome-screen">
17
  <div class="welcome-content">
18
  <div class="welcome-hero">
@@ -117,6 +132,25 @@
117
  </div>
118
  </div>
119
 
120
- <script src="/static/app.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  </body>
122
  </html>
 
12
  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"></script>
13
  </head>
14
  <body>
15
+
16
+ <!-- ── PIN Auth Overlay ─────────────────────────────────────────── -->
17
+ <div id="pinOverlay" class="pin-overlay">
18
+ <div class="pin-card">
19
+ <div class="pin-icon">🔒</div>
20
+ <h2>Enter Access Code</h2>
21
+ <p>This app is currently in private preview.</p>
22
+ <div class="pin-input-row">
23
+ <input type="text" id="pinInput" maxlength="4" placeholder="····" autocomplete="off" autofocus>
24
+ </div>
25
+ <button class="pin-submit" onclick="checkPin()">Unlock</button>
26
+ <p id="pinError" class="pin-error"></p>
27
+ </div>
28
+ </div>
29
+
30
+ <!-- ── Welcome Screen ─────────────────────────────────────────── -->
31
  <div id="welcomeScreen" class="welcome-screen">
32
  <div class="welcome-content">
33
  <div class="welcome-hero">
 
132
  </div>
133
  </div>
134
 
135
+ <script>
136
+ function checkPin() {
137
+ var pin = document.getElementById('pinInput').value.trim();
138
+ if (pin === 'AP19') {
139
+ document.getElementById('pinOverlay').style.display = 'none';
140
+ sessionStorage.setItem('nf_pin_ok', '1');
141
+ } else {
142
+ document.getElementById('pinError').textContent = 'Incorrect code. Try again.';
143
+ document.getElementById('pinInput').value = '';
144
+ document.getElementById('pinInput').focus();
145
+ }
146
+ }
147
+ document.getElementById('pinInput').addEventListener('keydown', function(e) {
148
+ if (e.key === 'Enter') checkPin();
149
+ });
150
+ if (sessionStorage.getItem('nf_pin_ok') === '1') {
151
+ document.getElementById('pinOverlay').style.display = 'none';
152
+ }
153
+ </script>
154
+ <script src="/static/app.js"></script>
155
  </body>
156
  </html>
static/styles.css CHANGED
@@ -1,5 +1,34 @@
1
  /* ── Irish Maths AI — Mathaí Styles ─────────────────────────────────── */
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  :root {
4
  --bg: #fafbfc;
5
  --bg-white: #ffffff;
 
1
  /* ── Irish Maths AI — Mathaí Styles ─────────────────────────────────── */
2
 
3
+ /* PIN Overlay */
4
+ .pin-overlay {
5
+ position: fixed; inset: 0; z-index: 9999;
6
+ background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
7
+ display: flex; align-items: center; justify-content: center;
8
+ }
9
+ .pin-card {
10
+ background: #fff; border-radius: 20px; padding: 48px 36px;
11
+ text-align: center; max-width: 340px; width: 90%;
12
+ box-shadow: 0 20px 60px rgba(0,0,0,0.3);
13
+ }
14
+ .pin-icon { font-size: 48px; margin-bottom: 12px; }
15
+ .pin-card h2 { font-size: 22px; color: #1e293b; margin-bottom: 6px; }
16
+ .pin-card p { color: #64748b; font-size: 14px; margin-bottom: 24px; }
17
+ .pin-input-row { margin-bottom: 20px; }
18
+ #pinInput {
19
+ width: 140px; text-align: center; font-size: 28px; letter-spacing: 12px;
20
+ padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 12px;
21
+ outline: none; font-family: 'Inter', monospace;
22
+ }
23
+ #pinInput:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
24
+ .pin-submit {
25
+ background: #4f46e5; color: #fff; border: none; border-radius: 12px;
26
+ padding: 12px 40px; font-size: 16px; font-weight: 600; cursor: pointer;
27
+ font-family: 'Inter', sans-serif;
28
+ }
29
+ .pin-submit:hover { background: #4338ca; }
30
+ .pin-error { color: #dc2626; font-size: 13px; margin-top: 12px; min-height: 18px; }
31
+
32
  :root {
33
  --bg: #fafbfc;
34
  --bg-white: #ffffff;