forked from interlinksite/interlinksite.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
productivity.html
217 lines (195 loc) · 7.6 KB
/
productivity.html
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Productivity Resources</title>
<link rel="stylesheet" href="https://interlinkcvhs.org/styles.css">
<link rel="icon" href="https://interlinkcvhs.org/favicon.png" type="image/png">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Orbitron', sans-serif;
}
.search-container {
margin: 20px auto;
max-width: 600px;
text-align: center;
}
.search-input {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
border: 2px solid #ddd;
border-radius: 25px;
font-size: 16px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
color: white;
font-family: 'Orbitron', sans-serif;
}
.search-input::placeholder {
color: rgba(255, 255, 255, 0.7);
font-family: 'Orbitron', sans-serif;
}
.search-input:focus {
outline: none;
border-color: #4a90e2;
}
.no-results {
text-align: center;
padding: 20px;
color: white;
font-size: 18px;
margin-top: 20px;
font-family: 'Orbitron', sans-serif;
}
.resources-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin: 20px auto;
max-width: 1200px;
padding: 0 20px;
}
.resource-card {
cursor: pointer;
transition: transform 0.2s;
text-decoration: none;
color: inherit;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 10px;
margin: 0;
}
.resource-card:hover {
transform: scale(1.05);
}
.resource-title {
margin: 0;
font-size: 1.2em;
font-weight: 500;
}
.hidden {
display: none !important;
}
@media (max-width: 768px) {
.resources-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.resources-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8W81FT4M1N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8W81FT4M1N');
</script>
<body>
<div id="banner-container"></div>
<header class="glass-header">
<div class="logo-container">
<h1 class="glow-text">Productivity Tools</h1>
</div>
<div id="nav-container"></div>
</header>
<main class="fade-in">
<div class="games-container">
<div class="search-container">
<input type="text" class="search-input" placeholder="Search tools..." id="courseSearch">
</div>
<div class="resources-grid" id="resourcesContainer">
<a href="https://sejda.com/" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">Sejda PDF Editor</h3>
</a>
<a href="https://clipchamp.com/" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">Clipchamp Video Editor</h3>
</a>
<a href="https://www.desmos.com/calculator" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">Desmos Graphic Calculator</h3>
</a>
<a href="https://www.imagetotext.io/" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">Image-to-Text Online OCR</h3>
</a>
<a href="https://www.remove.bg/" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">Image Background Remover</h3>
</a>
<a href="https://www.bandlab.com/" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">BandLab Music Software</h3>
</a>
<a href="https://cloudconvert.com/" class="resource-card glass-effect" target="_blank">
<h3 class="resource-title">File Type Converter</h3>
</a>
</div>
</div>
</main>
<script>
async function loadNav() {
try {
const response = await fetch('https://interlinkcvhs.org/navnav.html');
const nav = await response.text();
document.getElementById('nav-container').innerHTML = nav;
} catch (error) {
console.error('Error loading navigation:', error);
document.getElementById('nav-container').innerHTML = '<p>Error loading navigation. Please try again later.</p>';
}
}
async function loadBanner() {
try {
const response = await fetch('https://interlinkcvhs.org/banner.html');
const bannerContent = await response.text();
document.getElementById('banner-container').innerHTML = bannerContent;
} catch (error) {
console.error('Error loading banner:', error);
document.getElementById('banner-container').innerHTML = '<p>Error loading banner. Please try again later.</p>';
}
}
document.addEventListener('DOMContentLoaded', () => {
loadNav();
loadBanner();
const searchInput = document.getElementById('courseSearch');
const resourceCards = document.getElementsByClassName('resource-card');
const container = document.getElementById('resourcesContainer');
searchInput.addEventListener('input', function() {
const searchTerm = this.value.toLowerCase();
let hasResults = false;
Array.from(resourceCards).forEach(card => {
const title = card.querySelector('.resource-title').textContent.toLowerCase();
if (title.includes(searchTerm)) {
card.classList.remove('hidden');
hasResults = true;
} else {
card.classList.add('hidden');
}
});
// Show/hide no results message
let noResultsMsg = document.querySelector('.no-results');
if (!hasResults) {
if (!noResultsMsg) {
noResultsMsg = document.createElement('div');
noResultsMsg.className = 'no-results';
noResultsMsg.textContent = 'No search results.';
container.appendChild(noResultsMsg);
}
} else if (noResultsMsg) {
noResultsMsg.remove();
}
});
});
</script>
</body>
</html>