Skip to content

Commit b8f24c5

Browse files
Add PWA assets, move JS/CSS, update API page
Reorganize static assets and enable PWA support. Move JS files from src/ to js/ and stylesheet to css/index.css; add favicon.ico, multiple sized icons under src/, and manifest.webmanifest (remove manifest.json). Update api/index.html to register the service worker, update canonical/OG/twitter URLs, switch fonts/styles, add preconnect hints and Material Icons, and inject an SVG background watermark. Also update sitemap/wiki and remove old icon files. Co-Authored-By: M Ramzan Ch <191318204+MegaMind-Solution@users.noreply.github.com>
1 parent 5191e89 commit b8f24c5

25 files changed

Lines changed: 495 additions & 380 deletions

api/index.html

Lines changed: 109 additions & 72 deletions
Large diffs are not rendered by default.

src/style.css renamed to css/index.css

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -122,48 +122,40 @@ body {
122122

123123
.bg-watermark {
124124
position: fixed;
125-
z-index: -1;
125+
z-index: -100;
126+
inset: 0;
126127
pointer-events: none;
127-
opacity: 0.05;
128-
width: 600px;
129-
bottom: -80px;
130-
right: -90px;
128+
opacity: 0.2;
131129
transform: rotate(-15deg);
130+
display: grid;
131+
gap: 7rem;
132+
grid-template-columns: repeat(2, 1fr);
133+
justify-content: space-around;
134+
align-content: center;
132135
}
133136

134-
.bg-watermark.alt {
135-
bottom: auto;
136-
top: -28px;
137-
right: auto;
138-
left: -10px;
139-
}
140-
141-
.bg-watermark.alt.two {
142-
bottom: -220px;
143-
top: auto;
144-
right: auto;
145-
left: -10px;
146-
}
147-
148-
.bg-watermark.alt.three {
149-
bottom: auto;
150-
top: -220px;
151-
right: -90px;
152-
left: auto;
137+
.bg-watermark svg {
138+
width: 512px;
139+
height: 512px;
153140
}
154141

155-
.bg-watermark svg {
156-
width: 100%;
157-
height: auto;
158-
fill: var(--text);
142+
@media (max-width: 850px) {
143+
.bg-watermark {
144+
width: 150%;
145+
gap: 5rem;
146+
}
159147
}
160148

161-
@media (max-width: 600px) {
149+
@media (max-width: 550px) {
162150
.bg-watermark {
163-
width: 90%;
164-
bottom: 40px;
165-
right: -20px;
166-
max-width: 350px;
151+
width: 200%;
152+
gap: 0;
153+
grid-template-columns: repeat(2, 1fr);
154+
}
155+
156+
.bg-watermark svg {
157+
width: 312px;
158+
height: 312px;
167159
}
168160
}
169161

@@ -184,6 +176,11 @@ header {
184176
letter-spacing: -0.5px;
185177
}
186178

179+
.logo svg {
180+
width: 60px;
181+
height: 60px;
182+
}
183+
187184
.logo .material-icons {
188185
color: var(--accent);
189186
font-size: 2.2rem;
@@ -920,6 +917,7 @@ footer {
920917
.wiki-header h1 {
921918
font-size: 1.5rem;
922919
}
920+
923921
.wiki-header p {
924922
display: none;
925923
}
@@ -1058,13 +1056,6 @@ footer {
10581056
font-size: 0.8rem;
10591057
}
10601058

1061-
.bg-watermark {
1062-
width: 80%;
1063-
bottom: 20px;
1064-
right: -10px;
1065-
max-width: 250px;
1066-
}
1067-
10681059
header {
10691060
padding: 0 3.5rem 0 0;
10701061
}
@@ -1118,10 +1109,13 @@ footer {
11181109

11191110
.card {
11201111
background: var(--surface-color);
1121-
padding: 40px;
1112+
padding: 40px 20px;
1113+
margin: auto;
11221114
border-radius: 28px;
11231115
box-shadow: var(--shadow);
1124-
max-width: 380px;
1116+
max-width: 330px;
1117+
width: 100%;
1118+
white-space: nowrap;
11251119
display: flex;
11261120
flex-direction: column;
11271121
align-items: center;

favicon.ico

14.7 KB
Binary file not shown.

index.html

Lines changed: 76 additions & 108 deletions
Large diffs are not rendered by default.
File renamed without changes.

src/script.js renamed to js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const API_BASE = "https://api.github.com/repos",
33
THEME_DEFAULTS = {
44
light: "#923d3dff",
55
dark: "#b46363ff",
6-
amoled: "#81308bff",
6+
amoled: "#e487ef ",
77
dracula: "#bd93f9ff",
88
cyberpunk: "#00f3ff",
99
forest: "#4ade80ff",
File renamed without changes.

manifest.json

Lines changed: 0 additions & 79 deletions
This file was deleted.

manifest.webmanifest

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{
2+
"name": "Git Folder Downloader",
3+
"short_name": "G F D",
4+
"description": "The fastest tool to download specific GitHub folders, sub-directories, or files as ZIP. Supports private repos, custom tokens, and 8+ themes. 100% Client-side.",
5+
"start_url": "./",
6+
"scope": "./",
7+
"id": "./",
8+
"theme_color": "#4ade80",
9+
"background_color": "#1e2820",
10+
"display": "standalone",
11+
"orientation": "any",
12+
"lang": "en",
13+
14+
"categories": [
15+
"technology",
16+
"website",
17+
"github",
18+
"gownloader",
19+
"development"
20+
],
21+
22+
"display_override": ["window-controls-overlay"],
23+
24+
"prefer_related_applications": false,
25+
26+
"protocol_handlers": [
27+
{
28+
"protocol": "mailto",
29+
"url": "/newEmail?to=%s"
30+
}
31+
],
32+
33+
"icons": [
34+
{
35+
"src": "./favicon.ico",
36+
"sizes": "any",
37+
"type": "image/x-icon"
38+
},
39+
{
40+
"src": "./src/16.png",
41+
"sizes": "16x16",
42+
"type": "image/png"
43+
},
44+
{
45+
"src": "./src/32.png",
46+
"sizes": "32x32",
47+
"type": "image/png"
48+
},
49+
{
50+
"src": "./src/144.png",
51+
"sizes": "144x144",
52+
"type": "image/png",
53+
"purpose": "any"
54+
},
55+
{
56+
"src": "./src/144-maskable.png",
57+
"sizes": "144x144",
58+
"type": "image/png",
59+
"purpose": "maskable"
60+
},
61+
{
62+
"src": "./src/192.png",
63+
"sizes": "192x192",
64+
"type": "image/png",
65+
"purpose": "any"
66+
},
67+
{
68+
"src": "./src/192-maskable.png",
69+
"sizes": "192x192",
70+
"type": "image/png",
71+
"purpose": "maskable"
72+
},
73+
{
74+
"src": "./src/512.png",
75+
"sizes": "512x512",
76+
"type": "image/png",
77+
"purpose": "any"
78+
},
79+
{
80+
"src": "./src/512-maskable.png",
81+
"sizes": "512x512",
82+
"type": "image/png",
83+
"purpose": "maskable"
84+
}
85+
],
86+
87+
"screenshots": [
88+
{
89+
"src": "https://iili.io/fNetXhN.png",
90+
"form_factor": "wide",
91+
"type": "image/png",
92+
"description": "A screenshot of the home page"
93+
},
94+
{
95+
"src": "https://iili.io/fNetwBt.png",
96+
"form_factor": "wide",
97+
"type": "image/png",
98+
"description": "A screenshot of the home page with downloaadin"
99+
},
100+
{
101+
"src": "https://iili.io/fNetNEX.png",
102+
"form_factor": "wide",
103+
"type": "image/png",
104+
"description": "A screenshot of the wiki page"
105+
},
106+
{
107+
"src": "https://iili.io/fNetXhN.png",
108+
"type": "image/png",
109+
"description": "A screenshot of the home page"
110+
},
111+
{
112+
"src": "https://iili.io/fNetwBt.png",
113+
"type": "image/png",
114+
"description": "A screenshot of the home page with downloaadin"
115+
},
116+
{
117+
"src": "https://iili.io/fNetNEX.png",
118+
"type": "image/png",
119+
"description": "A screenshot of the wiki page"
120+
}
121+
],
122+
123+
"shortcuts": [
124+
{
125+
"name": "See Wiki",
126+
"url": "./wiki/",
127+
"description": "see wiki page",
128+
"icons": [
129+
{
130+
"src": "./src/144.png",
131+
"sizes": "144x144",
132+
"type": "image/png"
133+
}
134+
]
135+
},
136+
{
137+
"name": "Download Extension",
138+
"url": "/api/?=https://github.com/GitFolderDownloader/GitFolderDownloader.github.io/tree/main/extension&name=Extension",
139+
"description": "download extension for github.com",
140+
"icons": [
141+
{
142+
"src": "./src/144.png",
143+
"sizes": "144x144",
144+
"type": "image/png"
145+
}
146+
]
147+
},
148+
{
149+
"name": "Or Use UserCcrit",
150+
"url": "/script/GitFolderDownloader-download-button-user.js",
151+
"description": "use userscript for github.com in scriptrunner extensions",
152+
"icons": [
153+
{
154+
"src": "./src/144.png",
155+
"sizes": "144x144",
156+
"type": "image/png"
157+
}
158+
]
159+
}
160+
]
161+
}

sitemap.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<loc>https://gitfolderdownloader.github.io/</loc>
55
<lastmod>2026-01-26</lastmod>
66
<priority>1.0</priority>
7+
</url> <url>
8+
<loc>https://gitfolderdownloader.github.io/api/</loc>
9+
<lastmod>2026-01-26</lastmod>
10+
<priority>0.9</priority>
711
</url>
812
<url>
913
<loc>https://gitfolderdownloader.github.io/wiki/</loc>

0 commit comments

Comments
 (0)