fraudTech commited on
Commit
8a95086
·
1 Parent(s): ba66a08

Add random logic sayings - displays different quote on each login page load

Browse files
Files changed (1) hide show
  1. web/src/Login.tsx +111 -2
web/src/Login.tsx CHANGED
@@ -1,4 +1,107 @@
1
- import React, { useState } from 'react';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  interface LoginProps {
4
  onLogin: (token: string, user: { username: string; name: string }) => void;
@@ -12,6 +115,12 @@ const Login: React.FC<LoginProps> = ({ onLogin }) => {
12
  const [error, setError] = useState('');
13
  const [loading, setLoading] = useState(false);
14
 
 
 
 
 
 
 
15
  const GATEWAY_URL = import.meta.env.VITE_GATEWAY_URL || 'https://deepthoughtai-evo-gateway.hf.space';
16
  console.log('Gateway URL:', GATEWAY_URL); // Debug log
17
 
@@ -51,7 +160,7 @@ const Login: React.FC<LoginProps> = ({ onLogin }) => {
51
  <div className="login-box">
52
  <div className="login-header">
53
  <h1>EVO</h1>
54
- <p className="login-subtitle">Logical AI</p>
55
  </div>
56
 
57
  <form onSubmit={handleSubmit} className="login-form">
 
1
+ import React, { useState, useMemo } from 'react';
2
+
3
+ const LOGIC_SAYINGS = [
4
+ "Logic is the compass; reason is the journey.",
5
+ "Logic doesn't tell you where to go—only how not to get lost.",
6
+ "Emotion starts the fire; logic builds the fireplace.",
7
+ "Logic is truth with the noise removed.",
8
+ "Where logic ends, belief begins.",
9
+ "Logic is the discipline of refusing to lie to yourself.",
10
+ "A logical mind fears no question.",
11
+ "Logic is patience armed with structure.",
12
+ "Without logic, intelligence is just decoration.",
13
+ "Logic turns confusion into coordinates.",
14
+ "Logic is thinking that survives inspection.",
15
+ "Feelings persuade; logic convinces.",
16
+ "Logic is the skeleton beneath every solid idea.",
17
+ "Logic doesn't shout—it explains.",
18
+ "Logic is humility formalized.",
19
+ "Logic is the courage to follow conclusions you don't like.",
20
+ "Logic is what remains when excuses are removed.",
21
+ "Logic sharpens truth; rhetoric polishes it.",
22
+ "Logic is slow thinking that wins.",
23
+ "Logic is the art of necessary consequences.",
24
+ "Logic is not cold—it's honest.",
25
+ "Logic is curiosity wearing rules.",
26
+ "Logic asks 'must it be so?'",
27
+ "Logic is the bridge between assumptions and reality.",
28
+ "Logic is doubt with a method.",
29
+ "Logic is reason refusing shortcuts.",
30
+ "Logic is the map; wisdom chooses the destination.",
31
+ "Logic doesn't prevent mistakes—it exposes them early.",
32
+ "Logic is clarity earned, not assumed.",
33
+ "Logic is discipline against wishful thinking.",
34
+ "Logic is what makes disagreement productive.",
35
+ "Logic is thinking that scales beyond yourself.",
36
+ "Logic is the grammar of truth.",
37
+ "Logic is consistency under pressure.",
38
+ "Logic is the enemy of convenient nonsense.",
39
+ "Logic doesn't care who you are—only what follows.",
40
+ "Logic is freedom from contradiction.",
41
+ "Logic is order negotiated with reality.",
42
+ "Logic is the courage to say 'I was wrong.'",
43
+ "Logic is thinking that respects consequences.",
44
+ "Logic is precision applied to belief.",
45
+ "Logic is restraint in an impatient world.",
46
+ "Logic is the difference between opinion and argument.",
47
+ "Logic is clarity without charisma.",
48
+ "Logic is trust in structure over impulse.",
49
+ "Logic is reasoning with receipts.",
50
+ "Logic is thought that can be audited.",
51
+ "Logic is the firewall against self-deception.",
52
+ "Logic is patience encoded.",
53
+ "Logic is a promise to be consistent tomorrow.",
54
+ "Logic is the refusal to confuse desire with evidence.",
55
+ "Logic is the backbone of fairness.",
56
+ "Logic is what makes intelligence reliable.",
57
+ "Logic is the art of not contradicting yourself later.",
58
+ "Logic is explanation that survives time.",
59
+ "Logic is truth, step by step.",
60
+ "Logic is the science of 'therefore.'",
61
+ "Logic is clarity that doesn't depend on mood.",
62
+ "Logic is thinking that welcomes scrutiny.",
63
+ "Logic is humility with equations.",
64
+ "Logic is the difference between sounding right and being right.",
65
+ "Logic is reason trained to behave.",
66
+ "Logic is structure applied to curiosity.",
67
+ "Logic is belief with a warranty.",
68
+ "Logic is the discipline of necessary steps.",
69
+ "Logic is calm thinking in loud situations.",
70
+ "Logic is the art of implication.",
71
+ "Logic is skepticism with standards.",
72
+ "Logic is thinking that keeps promises.",
73
+ "Logic is the architecture of understanding.",
74
+ "Logic is what lets truth travel intact.",
75
+ "Logic is order discovered, not imposed.",
76
+ "Logic is reasoning that scales beyond intuition.",
77
+ "Logic is the slow weapon against fast lies.",
78
+ "Logic is consistency made explicit.",
79
+ "Logic is thinking that earns trust.",
80
+ "Logic is precision without arrogance.",
81
+ "Logic is explanation that doesn't flinch.",
82
+ "Logic is thought that survives opposition.",
83
+ "Logic is truth under constraints.",
84
+ "Logic is discipline for the curious.",
85
+ "Logic is evidence wearing syntax.",
86
+ "Logic is the guardrail of intelligence.",
87
+ "Logic is belief forced to grow up.",
88
+ "Logic is the art of unavoidable conclusions.",
89
+ "Logic is patience that pays interest.",
90
+ "Logic is reasoning that respects reality.",
91
+ "Logic is clarity that doesn't need applause.",
92
+ "Logic is the structure beneath insight.",
93
+ "Logic is the courage to follow 'if–then.'",
94
+ "Logic is thinking that refuses special treatment.",
95
+ "Logic is what makes truth transferable.",
96
+ "Logic is the economy of thought.",
97
+ "Logic is understanding without shortcuts.",
98
+ "Logic is precision in motion.",
99
+ "Logic is thought with integrity.",
100
+ "Logic is explanation that doesn't leak.",
101
+ "Logic is the science of consistency.",
102
+ "Logic is freedom from internal contradiction.",
103
+ "Logic is respect—for truth, for thought, and for consequence.",
104
+ ];
105
 
106
  interface LoginProps {
107
  onLogin: (token: string, user: { username: string; name: string }) => void;
 
115
  const [error, setError] = useState('');
116
  const [loading, setLoading] = useState(false);
117
 
118
+ // Select a random logic saying on component mount
119
+ const randomSaying = useMemo(
120
+ () => LOGIC_SAYINGS[Math.floor(Math.random() * LOGIC_SAYINGS.length)],
121
+ []
122
+ );
123
+
124
  const GATEWAY_URL = import.meta.env.VITE_GATEWAY_URL || 'https://deepthoughtai-evo-gateway.hf.space';
125
  console.log('Gateway URL:', GATEWAY_URL); // Debug log
126
 
 
160
  <div className="login-box">
161
  <div className="login-header">
162
  <h1>EVO</h1>
163
+ <p className="login-subtitle">{randomSaying}</p>
164
  </div>
165
 
166
  <form onSubmit={handleSubmit} className="login-form">