-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
634 lines (545 loc) · 19.7 KB
/
index.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
<!DOCTYPE html>
<html lang="en">
<head>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "GodSVG",
"description": "GodSVG is a free, open-source, low-level vector graphics editor available on all major desktop platforms.",
"operatingSystem": ["Windows", "Linux", "MacOS"],
"applicationCategory": "GraphicsApplication",
"downloadUrl": "https://github.com/MewPurPur/GodSVG/releases/",
"softwareVersion": "1.0-alpha4",
"author": {
"@type": "Person",
"name": "MewPurPur"
}
}
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="assets/normalize.css">
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<!-- I don't know what this does. An LLM gave it to me and it seems to remove the stutter when loading the font. Or maybe this is the first step to taking over the world. -->
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Asap:wght@400;500;700&family=Noto+Sans:wght@400;700&display=swap" as="style" onload="this.rel='stylesheet'">
<noscript>
<link href="https://fonts.googleapis.com/css2?family=Asap:wght@400;500;700&family=Noto+Sans:wght@400;700&display=swap" rel="stylesheet">
</noscript>
<title>GodSVG – SVG editor</title>
<meta name="description" content="GodSVG, a free, open-source, low-level vector graphics editor, available on all major desktop platforms" />
<meta property="og:title" content="GodSVG - Free and Open Source SVG editor" />
<meta property="og:url" content="https://godsvg.com/" />
<meta property="og:image" content="https://godsvg.com/assets/favicon.ico" />
<meta property="og:description" content="GodSVG is a free, open-source, low-level vector graphics editor, available on all major desktop platforms" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="GodSVG" />
<style>
html {
color: white;
font-size: min(9vw, 30px);
font-family: "Noto Sans";
}
body {
background-color: #212427;
margin: 0 auto;
max-width: 1200px;
}
a {
color: #489ae0;
text-decoration: underline;
text-decoration-color: #489ae080;
}
a:hover {
color: #64b8f7;
text-decoration: underline;
}
br {
margin-bottom: 0.25rem;
}
.content {
width: 90%;
max-width: 960px;
margin: 0 auto;
}
#top-section {
display: flex;
align-items: center;
justify-content: center;
}
.faq-question {
color: white;
font-size: 1rem;
font-family: 'Asap';
margin-bottom: 0.1rem;
margin-top: 1rem;
margin-bottom: 0.25rem;
}
.dim-text {
font-size: 0.65rem;
line-height: 1rem;
font-family: "Noto Sans";
color: #acacac;
margin-top: 0rem;
margin-bottom: 0.25rem;
}
.dim-text li {
margin-bottom: 0.25rem;
list-style-type: none;
}
.social-icon {
width: 1rem;
height: 1rem;
margin-bottom: -0.2rem;
margin-right: 0.2rem;
}
#download-section {
display: flex;
justify-content: center;
align-items: stretch;
margin-top: 20px;
}
#main-download {
margin-right: 10px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropbtn {
background-color: #333;
color: #e0e0e0;
padding: 10px;
font-size: 0.65rem;
border: none;
cursor: pointer;
border-radius: 5px;
height: 100%;
display: flex;
align-items: center;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #333;
width: 100%;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
right: 0;
overflow: hidden;
border-radius: 5px;
}
.dropdown-content a {
color: white;
padding: 10px 16px;
text-decoration: none;
display: flex;
align-items: center;
}
.dropdown-content a:hover {
background-color: #ffffff1a;
}
.dropdown-content a:active {
background-color: #ffffff40;
}
.dropdown-content a .platform-icon {
margin-right: 10px;
height: 1.5rem;
width: 1.5rem;
}
.dropdown-content a .text-container {
display: flex;
flex-direction: column;
}
.dropdown-content a .small-text {
font-size: 0.45rem;
}
.dropdown-content a .big-text {
font-size: 0.75rem;
font-weight: 600;
}
.dropdown.active .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #444;
}
.download-option .platform-icon {
margin-right: 10px;
height: 1.5rem;
width: 1.5rem;
}
.download-button {
display: flex;
align-items: center;
justify-content: center;
background-color: #2e6cb8;
color: white;
border-radius: 5px;
padding: 10px;
text-decoration: none;
}
.download-button:hover {
color: white;
background-color: #2860a0;
text-decoration: none;
}
.download-button:active {
background-color: #1e4a7c;
}
.download-button .platform-icon {
margin-right: 10px;
height: 1.5rem;
width: 1.5rem;
}
.download-button .small-text {
font-size: 0.45rem;
white-space: nowrap;
}
.download-button .big-text {
font-size: 0.75rem;
font-weight: 600;
}
.download-buttons-container {
display: flex;
align-items: stretch;
gap: 20px;
margin: 4px;
}
.dropdown .dropbtn {
display: flex;
align-items: center;
justify-content: center;
}
#footer {
font-size: 0.5rem;
text-align: center;
color: #686b70;
}
.tab-container {
display: flex;
justify-content: center;
margin: 20px 0;
gap: 20px;
}
.tab {
flex: 1; /* Ensure tabs are equal width */
display: inline-block;
background-color: #333;
color: #e0e0e0;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
text-align: center; /* Center the text inside the tabs */
}
.tab:hover {
color: #f4f4f4;
background-color: #444;
}
.tab.selected {
color: white;
background-color: #666;
cursor: default;
font-weight: bold;
}
.donate-tab {
background-color: #3e2931;
color: white;
}
.donate-tab:hover {
background-color: #533742;
}
.donate-tab.selected {
background-color: #c8a;
cursor: default;
}
.list-pro {
color: #9e9;
}
.list-pro::before {
content: "+";
font-weight: bold;
display: inline-block;
width: 0.85em;
}
.list-con {
color: #e99;
}
.list-con::before {
content: "–";
font-weight: bold;
display: inline-block;
width: 0.85em;
}
@media (max-width: 600px) {
html {
font-size: min(12vw, 24px);
}
.tab {
padding: 5px;
font-size: 75%;
}
.tab-container {
gap: 10px;
}
</style>
</head>
<body>
<div style="height:1rem;"></div>
<div class="content" id="top-section">
<img src="assets/favicon.ico" alt="GodSVG logo" style="width: min(210px, 21vw)">
<div>
<span style="font-family: 'Asap'; font-weight: 700; font-size: min(100px, 10vw); color: #def">GodSVG</span><br>
<span style="font-family: 'Asap'; font-weight: 500; font-size: min(69px, 6.9vw); color: #def; margin-left: min(6px, 0.6vw)">SVG editor</span>
</div>
</div>
<div style="height:0.5rem;"></div>
<div class="content" id="download-section">
<div class="download-buttons-container">
<div id="main-download">
<!-- Main download button will be populated dynamically -->
</div>
<div class="dropdown">
<button class="dropbtn"></button>
<div class="dropdown-content">
<!-- Dropdown content will be populated dynamically -->
</div>
</div>
</div>
</div>
<div style="height:0.25rem;"></div>
<div class="dim-text" style="text-align: center;">Current version: <b>1.0-alpha6</b>. You can find older releases <a href="https://github.com/MewPurPur/GodSVG/releases/">on Github</a>.</div>
<div class="content">
<div style="height:0.5rem;"></div>
<div class="dim-text">Don't want to download anything? You can <a href="https://godsvg.com/editor">run GodSVG directly in your web browser</a>.</div>
</div>
<div style="height:0.5rem;"></div>
<div class="content">
<div class="tab-container">
<div class="tab selected" onclick="toggle_content(0)">Features</div>
<div class="tab" onclick="toggle_content(1)">FAQ</div>
<div class="tab donate-tab" onclick="toggle_content(2)">Donate</div>
</div>
<div id="features-content" style="display: block;">
<div style="margin-top: 1rem;"></div>
<p class="dim-text">
<b>GodSVG is an editor for Scalable Vector Graphics (SVG) files in early development.</b> Unlike other editors, it represents the SVG code directly, doesn't add any metadata, and even lets you edit the SVG code in real time. GodSVG aims to be an editor for SVG code with low abstraction, producing clean and optimized files.</p>
<div style="height:0.5rem;"></div>
<img src="assets/usage.webp" width="100%" alt="Screenshot of using GodSVG to create a confetti graphic" />
<div style="height:0.5rem;"></div>
<p class="dim-text">
<b>• Interactive SVG editing:</b> Modify individual elements of an SVG file using a user-friendly interface.<br />
<b>• Real-time code:</b> As you manipulate elements in the UI, code is instantly generated and can be edited.<br />
<b>• Optimized SVGs:</b> The generated SVG files are small and efficient, and there are many options to assist with optimization.<br />
</p>
</div>
<div id="faq-content" style="display: none;">
<h2 class="faq-question">Who is making GodSVG?</h2>
<p class="dim-text">
GodSVG was started in May 2023 by me (MewPurPur) and open-sourced in June 2023. Since the open-sourcing, other people have joined in to help, but I still do the vast majority of the work. Everyone who has made major contributions is listed inside GodSVG's "About" dialog.</p>
<h2 class="faq-question">GodSVG has been in alpha for so long... Will it ever release?</h2>
<p class="dim-text">
GodSVG <b>1.0-alpha1</b> released in December 2023. It needs a lot more work, so it won't release until at least 2025.<br />
GodSVG is a hobby project that I dedicate a lot of effort and time to try and push to the finish line. But of course, I still need to work 8h a day and spend time on things like sleeping, chores, staying healthy. How long the release will take largely depends on how much support I get.<br />
Donations are the best way to help, without them, GodSVG would be way behind where it is now. So if you're able to <a onclick="toggle_content(2)" style="cursor: pointer">donate</a>, I would be very grateful!<br />
You can also help by spreading the word, and if you can, implementing features, enhancements, bugfixes, or discussing suggestions.</p>
<h2 class="faq-question">I tried GodSVG and found bugs and shortcomings.</h2>
<p class="dim-text">
GodSVG is not even in beta yet, so this is to be expected. Report any issues you have <a href="https://github.com/MewPurPur/GodSVG/issues">on Github</a>.</p>
<h2 class="faq-question">What's so great about this "free and open source" thing?</h2>
<div class="dim-text">GodSVG is Free and Open Source, all of its development happens in the open, developers are in the same communities as everyone else. You can see what's being developed and be sure that nothing shady is happening behind the scenes - because if I do something shady, people would find out in the source code and my project would suffer heavily.
GodSVG's source code can be found <a href="https://github.com/MewPurPur/GodSVG">on Github</a>. This website's source code can also be found <a href="https://github.com/MewPurPur/godsvg-website">on Github</a>.</div>
<h2 class="faq-question">Do you have the social media?</h2>
<p class="dim-text">
I have accounts on some social media. All of them are owned by multi-billion tech companies! The unofficial ones won't always be on topic.</p>
<p class="dim-text">
<b>Official:</b>
</p>
<ul class="dim-text">
<li>
<img class="social-icon" src="assets/socials_github.png" alt="Github icon" loading="lazy">
<a href="https://github.com/MewPurPur/GodSVG">Github repository</a> for general surveillance of the developers.
</li>
<li>
<img class="social-icon" src="assets/socials_discord.png" alt="Discord icon" loading="lazy">
<a href="https://discord.gg/R8pM6vXWTY">Discord server</a> for development and casual chat.
</li>
</ul>
<p class="dim-text">
<b>Unofficial (personal):</b>
</p>
<ul class="dim-text">
<li>
<img class="social-icon" src="assets/socials_twitter.png" alt="Twitter icon" loading="lazy">
<a href="https://twitter.com/MewPurPur">tweeter account</a> for hot takes I'll regret later.
</li>
<!-- YouTube is way too irrelevant, there's nothing GodSVG-related on it right now. I was thinking about tool tutorials, but not at the moment.
<li>
<img class="social-icon" src="assets/socials_youtube.png" alt="YouTube icon" loading="lazy">
<a href="https://www.youtube.com/@MewPurPur">yuutub channel</a> for Like, comment, and subscribe!
</li>
-->
</ul>
<h2 class="faq-question">What are your plans for GodSVG?</h2>
<p class="dim-text">
GodSVG is currently meant to be only an assisted SVG code editor - it doesn't save anything unnecessary to the SVGs, but this also means it can't store things like layers. Also, there are no plans for animation.<br />
In my opinion, GodSVG is most useful for teaching the SVG format, creating simple iconography, optimizing existing SVGs, and creating SVGs with code. If your use cases are different, consider using a more artistically-inclined SVG editor.
Making GodSVG better as an assisted SVG code editor is what I'm going for at the moment.</p>
<h2 class="faq-question">
I speak one of Earth's many languages! Do you need help with translation?</h2>
<p class="dim-text">
Bonjour! GodSVG is community-translated and you can read how to do it <a href="https://github.com/MewPurPur/GodSVG/tree/main/translations">here</a>. Hit me up on Discord if you need help.</p>
<p class="dim-text">I hope this gave you all the answers you wanted – even the ones you didn't know you needed! Hit me up on Discord if you want to ask anything else.</p>
</div>
<div id="donate-content" style="display: none;">
<div style="margin-top: 1rem;"></div>
<p class="dim-text">
Donations will help me push GodSVG through to a stable release. Right now, I have to balance out development with my regular job as I don't get enough from donations.<br />
I have a few donation platforms set up, so you can choose the one you prefer:</p>
<div style="margin-top: 0.5rem;"></div>
<ul class="dim-text">
<li>
<img class="social-icon" src="assets/donate_github_sponsors.svg" alt="Github logo">
<a href="https://github.com/sponsors/MewPurPur" style="font-size:0.75rem">Github Sponsors</a>
<ul>
<li class="list-pro">Low extra fees</li>
<li class="list-pro">Includes all perks</li>
<li class="list-pro">Can donate an arbitrary amount</li>
</ul>
</li>
<li>
<img class="social-icon" src="assets/donate_ko_fi.svg" alt="Ko-Fi logo">
<a href="https://ko-fi.com/mewpurpur" style="font-size:0.75rem">Ko-Fi</a>
<ul>
<li class="list-pro">Low extra fees</li>
<li class="list-pro">Can donate an arbitrary amount</li>
<li class="list-con">No perks</li>
</ul>
</li>
<li>
<img class="social-icon" src="assets/donate_patreon.svg" alt="Patreon logo">
<a href="https://www.patreon.com/GodSVG" style="font-size:0.75rem">Patreon</a>
<ul>
<li class="list-pro">Includes all perks</li>
<li class="list-con">Higher extra fees</li>
<li class="list-con">Can only donate fixed amounts</li>
</ul>
</li>
<br />
<p class="dim-text">Thank you so much for considering helping out!<br /></p>
</ul>
</div>
</div>
<div style="height:1rem;"></div>
<div class="content">
<p id="footer">
© 2024 MewPurPur. All rights reserved.</p>
</div>
<div style="height:0.5rem;"></div>
<script>
function toggle_content(tab_idx) {
var featuresContent = document.getElementById("features-content");
var faqContent = document.getElementById("faq-content");
var donateContent = document.getElementById("donate-content");
var tabs = document.querySelectorAll(".tab");
if (tab_idx === 0) {
featuresContent.style.display = "block";
faqContent.style.display = "none";
donateContent.style.display = "none";
} else if (tab_idx === 1) {
featuresContent.style.display = "none";
faqContent.style.display = "block";
donateContent.style.display = "none";
} else if (tab_idx === 2) {
featuresContent.style.display = "none";
faqContent.style.display = "none";
donateContent.style.display = "block";
}
tabs.forEach(function(tab, index) {
if (index === tab_idx) {
tab.classList.add("selected");
tab.classList.remove("hover");
tab.style.cursor = "default";
} else {
tab.classList.remove("selected");
tab.style.cursor = "pointer";
}
});
}
function getOS() {
var userAgent = window.navigator.userAgent,
platform = window.navigator.platform,
macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
iosPlatforms = ['iPhone', 'iPad', 'iPod'],
os = null;
if (macosPlatforms.indexOf(platform) !== -1) {
os = 'MacOS';
} else if (iosPlatforms.indexOf(platform) !== -1) {
os = 'iOS';
} else if (windowsPlatforms.indexOf(platform) !== -1) {
os = 'Windows';
} else if (/Android/.test(userAgent)) {
os = 'Android';
} else if (/Linux/.test(platform)) {
os = 'Linux';
}
return os;
}
function setDownloadButtons() {
var os = getOS();
var mainDownloadDiv = document.getElementById('main-download');
var dropdownContent = document.querySelector('.dropdown-content');
var buttonContent = '';
var dropdownOptions = '';
var platforms = [
{name: 'Windows', icon: 'assets/platforms_windows.svg', link: 'downloads/GodSVG.Windows.zip'},
{name: 'Linux', icon: 'assets/platforms_linux.svg', link: 'downloads/GodSVG.Linux.zip'},
{name: 'MacOS', icon: 'assets/platforms_macos.svg', link: 'downloads/GodSVG.MacOS.zip'}
];
platforms.forEach(platform => {
if (platform.name === os) {
buttonContent = `
<a href="${platform.link}" class="download-button">
<img src="${platform.icon}" class="platform-icon" alt="${platform.name} logo">
<div>
<div class="small-text">Download for</div>
<div class="big-text">${platform.name}</div>
</div>
</a>`;
} else {
dropdownOptions += `
<a href="${platform.link}" class="download-option">
<img src="${platform.icon}" class="platform-icon" alt="${platform.name} logo">
<div class="text-container">
<span class="small-text">Download for</span>
<span class="big-text">${platform.name}</span>
</div>
</a>`;
}
});
if (!buttonContent) {
mainDownloadDiv.style.display = 'none';
document.querySelector('.dropbtn').innerHTML = `View downloads<img style="margin-left: 8px" alt="" src="assets/chevron.svg"/>`;
} else {
mainDownloadDiv.innerHTML = buttonContent;
document.querySelector('.dropbtn').innerHTML = `Other platforms<img style="margin-left: 8px" alt="" src="assets/chevron.svg"/>`;
}
dropdownContent.innerHTML = dropdownOptions;
// Add click event for dropdown.
var dropdownBtn = document.querySelector('.dropbtn');
var dropdown = document.querySelector('.dropdown');
dropdownBtn.addEventListener('click', function(event) {
event.stopPropagation();
dropdown.classList.toggle('active');
});
// Close dropdown when clicking outside.
document.addEventListener('click', function() {
dropdown.classList.remove('active');
});
}
document.addEventListener('DOMContentLoaded', setDownloadButtons);
</script>
</body>
</html>