-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
169 lines (157 loc) · 7.3 KB
/
Copy pathindex.html
File metadata and controls
169 lines (157 loc) · 7.3 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Clearways</title>
<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=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="favicon.ico" sizes="any" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="page">
<!-- Top bar -->
<header class="topbar">
<a class="brand" href="./">Clearway</a>
<nav>
<a class="nav-link" href="https://hackathonapi.github.io/api//docs" target="_blank">Docs</a>
</nav>
</header>
<!-- Hero -->
<section class="hero">
<h1>Understand any source in seconds.</h1>
<ul class="features">
<li>Extract text from articles, websites, and PDFs</li>
<li>AI-powered analysis with a full Clearview report</li>
<li>Download a Clearview PDF of the text or listen to it via audio</li>
</ul>
</section>
<!-- Input -->
<div class="card input-card">
<div class="card-label input-card-label">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/>
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>
</svg>
Analyze Content
</div>
<textarea id="input" placeholder="Paste a URL or text to analyze…" rows="3"></textarea>
<div class="input-footer">
<button id="submit">
<svg class="btn-icon-search" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
<svg class="btn-icon-spin" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12a9 9 0 1 1-6.219-8.56"/>
</svg>
<span id="submit-label">Analyze</span>
</button>
<span id="status" class="status-text" aria-live="polite"></span>
</div>
</div>
<!-- Results -->
<div id="results" class="show">
<div class="results-grid">
<!-- 1. Clearview PDF -->
<div class="card dl-card">
<div class="card-label">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
<polyline points="14 2 14 8 20 8"/>
</svg>
Clearview PDF
</div>
<div class="dl-card-body">
<a id="pdf-download" class="btn-dl-large" href="#" aria-disabled="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7 10 12 15 17 10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Download PDF
</a>
<p class="dl-caption">Clean, structured PDF — ready to read or share.</p>
</div>
</div>
<!-- 2. Audio Summary -->
<div class="card audio-card">
<div class="card-head">
<div class="card-label">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/>
<path d="M15.54 8.46a5 5 0 0 1 0 7.07"/>
<path d="M19.07 4.93a10 10 0 0 1 0 14.14"/>
</svg>
Audio Summary
</div>
<a id="audio-download" class="btn-dl" href="#" download aria-disabled="true">
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7 10 12 15 17 10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Download
</a>
</div>
<p class="audio-empty" id="audio-empty">Not yet generated</p>
<audio id="audio-player" controls hidden></audio>
</div>
<!-- 3. Overview -->
<div class="card stats-card">
<div class="card-label">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/>
</svg>
Overview
</div>
<div class="stats-list">
<div class="stat-row">
<span class="stat-label">Words</span>
<span class="stat-value" id="stat-words">—</span>
</div>
<div class="stat-row">
<span class="stat-label">Source</span>
<span class="stat-value" id="stat-source">—</span>
</div>
</div>
</div>
<!-- 4. Bias -->
<div class="card mc" id="metric-bias">
<div class="mc-dot"></div>
<div class="mc-name">Bias</div>
<div class="mc-info">
<span class="mc-value" id="mc-bias-value">—</span>
<span class="mc-tooltip" id="mc-bias-reason"></span>
</div>
</div>
<!-- 5. Credibility -->
<div class="card mc" id="metric-credibility">
<div class="mc-dot"></div>
<div class="mc-name">Credibility</div>
<div class="mc-info">
<span class="mc-value" id="mc-cred-value">—</span>
<span class="mc-tooltip" id="mc-cred-reason"></span>
</div>
</div>
<!-- 6. Scam Risk -->
<div class="card mc" id="metric-scam">
<div class="mc-dot"></div>
<div class="mc-name">Scam Risk</div>
<div class="mc-info">
<span class="mc-value" id="mc-scam-value">—</span>
<span class="mc-tooltip" id="mc-scam-reason"></span>
</div>
</div>
</div><!-- /results-grid -->
</div><!-- /results -->
</div><!-- /page -->
<script src="app.js"></script>
</body>
</html>