-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (110 loc) · 5.18 KB
/
index.html
File metadata and controls
119 lines (110 loc) · 5.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Briefly - Enhanced Writing Analysis</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>✍️ Briefly</h1>
<p class="subtitle">Enhanced Writing Analysis Based on Classic Guides</p>
<div class="sources">
<span>Wes Kao • Casagrande • Minto Pyramid • HBR Guide • Zinsser</span>
</div>
</header>
<main>
<div class="input-section">
<h2>Analyze Your Writing</h2>
<textarea
id="textInput"
placeholder="Paste your text here to analyze it against proven writing principles..."
rows="8"
></textarea>
<div class="controls">
<div class="mode-toggle">
<label class="toggle-switch">
<input type="checkbox" id="aiModeToggle">
<span class="slider"></span>
</label>
<span class="mode-label" id="modeLabel">Analysis Mode</span>
</div>
<button id="analyzeBtn" onclick="analyzeText()">
<span class="btn-text" id="btnText">Analyze Text</span>
<span class="btn-icon" id="btnIcon">📊</span>
</button>
<button id="clearBtn" onclick="clearText()">Clear</button>
</div>
<div id="apiKeySection" class="api-key-section" style="display: none;">
<label for="groqApiKey">Groq API Key:</label>
<input type="password" id="groqApiKey" placeholder="Enter your Groq API key..." />
<small>Your API key is stored locally and never sent to our servers. Get your free key from <a href="https://console.groq.com/" target="_blank">Groq Console</a>.</small>
</div>
<div class="word-count">
<span id="wordCount">0 words</span>
</div>
</div>
<div id="results" class="results-section" style="display: none;">
<h2>Analysis Results</h2>
<div id="analysisContent"></div>
</div>
<div class="info-section">
<h2>What We Analyze</h2>
<div class="principles-grid">
<div class="principle-card">
<h3>🎯 Super Specific How</h3>
<p>Focus on actionable implementation rather than vague concepts</p>
</div>
<div class="principle-card">
<h3>⚡ Cut Backstory</h3>
<p>Start right before you get eaten by the bear</p>
</div>
<div class="principle-card">
<h3>📋 Clear Recommendations</h3>
<p>Be clear about your point of view, avoid surprises</p>
</div>
<div class="principle-card">
<h3>🏗️ Bottom Line First</h3>
<p>Lead with conclusions, then provide context (Minto Pyramid)</p>
</div>
<div class="principle-card">
<h3>📝 Sentence Structure</h3>
<p>Clear, concise sentences with proper structure (Casagrande)</p>
</div>
<div class="principle-card">
<h3>🔊 Active Voice</h3>
<p>Prefer active voice over passive for clarity</p>
</div>
<div class="principle-card">
<h3>🔗 Logical Flow</h3>
<p>Structure arguments logically with clear hierarchy</p>
</div>
<div class="principle-card">
<h3>✂️ Conciseness</h3>
<p>Eliminate unnecessary words and redundant phrases</p>
</div>
<div class="principle-card">
<h3>💡 Clarity & Simplicity</h3>
<p>Write clearly, avoid jargon (Zinsser)</p>
</div>
<div class="principle-card">
<h3>🧹 Eliminate Clutter</h3>
<p>Remove unnecessary qualifiers and complexity</p>
</div>
</div>
</div>
</main>
<footer>
<p>Built based on insights from Wes Kao's interview and classic writing guides</p>
<div class="links">
<a href="https://github.com/morganholland/briefly" target="_blank">GitHub</a>
<span>•</span>
<a href="writing_bot.py">Python Source</a>
</div>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>