-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (111 loc) · 4.5 KB
/
index.html
File metadata and controls
123 lines (111 loc) · 4.5 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Debate Buddy - AI Argument Challenger</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<div class="logo">
<div class="logo-icon">DB</div>
<h1>Debate Buddy</h1>
</div>
<p class="tagline">Academic argument analysis & critical thinking development</p>
</header>
<!-- Input Section -->
<section class="input-section">
<div class="form-group">
<label for="topic">Debate Topic</label>
<input
type="text"
id="topic"
placeholder="e.g., Should college education be free?"
class="input-field"
>
</div>
<div class="form-group">
<label for="argument">Your Argument</label>
<textarea
id="argument"
rows="8"
placeholder="Write your argument here... Be specific and include your main points."
class="textarea-field"
></textarea>
<div class="char-count">
<span id="charCount">0</span> characters
</div>
</div>
<button id="analyzeBtn" class="analyze-btn">
<span class="btn-text">Challenge My Argument</span>
<span class="btn-icon">→</span>
</button>
</section>
<!-- Loading State -->
<div id="loadingState" class="loading-state hidden">
<div class="spinner"></div>
<p>AI is analyzing your argument...</p>
</div>
<!-- Results Section -->
<section id="resultsSection" class="results-section hidden">
<!-- Tabs -->
<div class="tabs">
<button class="tab active" data-tab="counter">
Counter-Argument
</button>
<button class="tab" data-tab="fallacies">
Logical Fallacies
</button>
<button class="tab" data-tab="strengthen">
How to Strengthen
</button>
<button class="tab" data-tab="score">
Analysis Score
</button>
</div>
<!-- Tab Content -->
<div class="tab-content">
<div id="counterTab" class="tab-panel active">
<div class="panel-header">
<h3>The Strongest Counter-Argument</h3>
<p>Here's what your opponent might say:</p>
</div>
<div id="counterContent" class="content-box"></div>
</div>
<div id="fallaciesTab" class="tab-panel">
<div class="panel-header">
<h3>Logical Fallacies Detected</h3>
<p>Areas where your logic could be stronger:</p>
</div>
<div id="fallaciesContent" class="content-box"></div>
</div>
<div id="strengthenTab" class="tab-panel">
<div class="panel-header">
<h3>How to Strengthen Your Argument</h3>
<p>Actionable improvements:</p>
</div>
<div id="strengthenContent" class="content-box"></div>
</div>
<div id="scoreTab" class="tab-panel">
<div class="panel-header">
<h3>Argument Strength Analysis</h3>
</div>
<div id="scoreContent" class="score-container"></div>
</div>
</div>
<button id="tryAgainBtn" class="try-again-btn">
Try Another Argument
</button>
</section>
<!-- Footer -->
<footer class="footer">
<p>Built for Student Hackpad 2025</p>
<p class="tip">Tip: The stronger your argument, the stronger the counter will be!</p>
</footer>
</div>
<script type="module" src="js/app.js"></script>
</body>
</html>