-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
203 lines (173 loc) · 5.46 KB
/
index.html
File metadata and controls
203 lines (173 loc) · 5.46 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="Generate beautiful color palettes from images with ease. Perfect for designers, developers, and creatives looking for unique color inspiration." />
<meta name="theme-color" content="#4F46E5" />
<meta property="og:title" content="Visual Chromatics - AI-Powered Color Extraction" />
<meta property="og:description"
content="Extract beautiful color palettes from any image. Free tool for designers and developers." />
<meta property="og:type" content="website" />
<meta property="og:image" content="/icons/og-image.jpg" />
<meta property="og:url" content="https://visual-chromatics.vercel.app/" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Visual Chromatics - AI-Powered Color Extraction" />
<meta name="twitter:description"
content="Extract beautiful color palettes from any image. Free tool for designers and developers." />
<meta name="twitter:image" content="/icons/og-image.jpg" />
<meta name="keywords"
content="color palette, color extraction, image colors, color scheme, design tools, web colors, color palette generator" />
<meta name="author" content="Peter Benoit" />
<meta name="author:url" content="https://www.peterbenoit.com" />
<meta name="robots" content="index, follow" />
<!-- Favicon/App Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png" />
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#4F46E5" />
<!-- Preconnect to required origins -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin />
<link rel="preconnect" href="https://api.unsplash.com" crossorigin />
<!-- Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;400;500;700;800&family=Inter:wght@300;400;600&display=swap"
rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap"
rel="stylesheet" />
<title>Visual Chromatics - AI-Powered Color Extraction</title>
<script src="https://peterbenoit.com/js/badge.js" data-mode="tracker" defer></script>
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GQEC09BG5Z"></script>
<script>window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-GQEC09BG5Z');</script>
<!-- Add page prerender hint -->
<link rel="prerender" href="https://visual-chromatics.vercel.app/" />
<style>
/* Critical CSS for initial page load */
body {
font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
sans-serif;
background-color: #0e0e0e;
color: #e7e5e4;
opacity: 0;
animation: fadeIn 0.5s ease-in-out forwards;
animation-delay: 0.1s;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#app {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Custom loading animation */
.app-loading {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
z-index: 9999;
opacity: 1;
transition: opacity 0.5s ease-in-out;
}
.app-loading.hide {
opacity: 0;
pointer-events: none;
}
.loader {
width: 60px;
height: 60px;
position: relative;
}
.loader div {
position: absolute;
border-radius: 50%;
animation: loading 2s ease-in-out infinite;
}
.loader div:nth-child(1) {
background: #3b82f6;
width: 12px;
height: 12px;
top: 0;
left: 24px;
animation-delay: 0s;
}
.loader div:nth-child(2) {
background: #8b5cf6;
width: 12px;
height: 12px;
top: 24px;
right: 0;
animation-delay: 0.2s;
}
.loader div:nth-child(3) {
background: #ec4899;
width: 12px;
height: 12px;
bottom: 0;
left: 24px;
animation-delay: 0.4s;
}
.loader div:nth-child(4) {
background: #10b981;
width: 12px;
height: 12px;
top: 24px;
left: 0;
animation-delay: 0.6s;
}
@keyframes loading {
0% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
}
</style>
</head>
<body class="min-h-screen text-gray-800 transition-all duration-1000 ease-in-out">
<!-- Initial loading animation -->
<div class="app-loading" id="appLoading">
<div class="loader">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script>
// Remove loader after page loads
window.addEventListener('load', function () {
setTimeout(function () {
document.getElementById('appLoading').classList.add('hide');
setTimeout(function () {
document.getElementById('appLoading').remove();
}, 500);
}, 300);
});
</script>
</body>
</html>