Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
150 lines (131 loc) · 6.03 KB
/
Copy pathindex.html
File metadata and controls
150 lines (131 loc) · 6.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crescent - Calm Search for Students</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=Cormorant+Garamond:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/features.css">
<link rel="icon" href="assets/favicon.ico">
</head>
<body>
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="orb orb-3"></div>
<nav>
<a href="#" class="logo">
<div class="logo-icon">
<img src="assets/icon.svg" alt="Crescent Logo" width="32" height="32">
</div>
<span class="logo-text">CRESCENT</span>
</a>
<div class="nav-center">
<div class="clock" id="clock">--:--</div>
</div>
<ul class="nav-links">
<li><a href="#search">Search</a></li>
<li><a href="https://github.com" target="_blank">GitHub</a></li>
<li><a href="#about">About</a></li>
</ul>
<button class="dark-mode-toggle" id="darkModeToggle">🌙</button>
</nav>
<div class="spotify-tab">
<button class="spotify-toggle" id="spotifyToggle">
<svg class="spotify-icon" viewBox="0 0 24 24">
<path d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"/>
</svg>
<span>MUSIC</span>
</button>
</div>
<div class="notes-panel" id="notesPanel">
<h3>Notes</h3>
<textarea id="notesTextarea" placeholder="Take notes while you study..."></textarea>
<div class="notes-actions">
<button onclick="saveNotes()">Save</button>
<button onclick="clearNotes()">Clear</button>
</div>
</div>
<div class="timer-widget" id="timerWidget">
<h3>Study Timer</h3>
<div class="timer-display" id="timerDisplay">25:00</div>
<div class="timer-controls">
<button id="startTimer">Start</button>
<button id="stopTimer">Stop</button>
<button id="resetTimer">Reset</button>
</div>
</div>
<div class="history-panel" id="historyPanel">
<h3>Search History</h3>
<div id="historyList"></div>
<button class="clear-history-btn" onclick="clearHistory()">Clear History</button>
</div>
<div class="bookmarks-panel" id="bookmarksPanel">
<h3>Bookmarks</h3>
<div id="bookmarksList"></div>
<button class="clear-bookmarks-btn" onclick="clearBookmarks()">Clear Bookmarks</button>
</div>
<div class="spotify-panel" id="spotifyPanel">
<button class="close-spotify" id="closeSpotify">×</button>
<h3>Now Playing</h3>
<div class="spotify-placeholder">
<svg width="48" height="48" viewBox="0 0 24 24" fill="#1db954">
<path d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"/>
</svg>
<p>Connect your Spotify account to see what's playing</p>
<button class="spotify-connect">Connect Spotify</button>
</div>
</div>
<main>
<section class="hero" id="search">
<h1>Crescent</h1>
<p>A calm space for mindful discovery</p>
</section>
<div class="search-container">
<div class="search-box">
<input type="text" class="search-input" id="searchInput" placeholder="What would you like to explore?" autocomplete="off">
<button class="search-btn" id="searchBtn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<path d="m21 21-4.35-4.35"/>
</svg>
</button>
</div>
<div class="api-categories">
<button class="api-chip active" data-api="all">All</button>
<button class="api-chip" data-api="wikipedia">Wikipedia</button>
<button class="api-chip" data-api="openlib">Books</button>
<button class="api-chip" data-api="dictionary">Dictionary</button>
<button class="api-chip" data-api="nasa">NASA</button>
</div>
</div>
<section class="results-section" id="resultsSection">
<div class="results-header">
<h2>Results</h2>
<span class="results-count" id="resultsCount">0 results</span>
</div>
<div class="loading" id="loading">
<div class="loader"></div>
</div>
<div class="results-grid" id="resultsGrid"></div>
</section>
<div class="empty-state" id="emptyState">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1">
<circle cx="12" cy="12" r="10"/>
<path d="M12 6v6l4 2"/>
</svg>
<p>Begin your search to discover knowledge across multiple sources</p>
</div>
<footer>
<p>Crescent — Built with calm intention</p>
<p>
<a href="#">Privacy</a> · <a href="#">Terms</a> · <a href="https://github.com" target="_blank">View on GitHub</a>
</p>
</footer>
</main>
<script type="module" src="js/app.js"></script>
</body>
</html>