-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmake-html-hires
More file actions
executable file
·188 lines (175 loc) · 6.51 KB
/
make-html-hires
File metadata and controls
executable file
·188 lines (175 loc) · 6.51 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
#!/usr/bin/env bash
#shellcheck disable=SC2089
#
# Make hires.html file
#
# Author: zenobit <zen@duck.com>
# Date: February 14, 2026
# License: MIT
#
_g "Creating hires.html"
file=hires
title="Hi-Res Wallpapers - Void Linux Artwork"
# Count hires
hiresPNG=$(find "assets/$file/" -type f -name "*.png" | wc -l)
hiresJPG=$(find "assets/$file/" -type f -name "*.jpg" | wc -l)
hiresJPGstart=$(( hiresPNG + 1 ))
hiresCount=$(find "assets/$file/" -type f -name "*" | wc -l)
export hiresPNG hiresJPG hiresJPGstart hiresCount
navbar=$(cat << EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="High resolution wallpapers for Void Linux">
<title>${title}</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<div class="nav-brand">
<h1>Void Artwork</h1>
</div>
<button class="nav-toggle" aria-label="Toggle navigation">
<span></span>
<span></span>
<span></span>
</button>
<ul class="nav-menu">
<li><a href="https://osowoso.org">oSoWoSo</a></li>
<li><a href="index.html">Home</a></li>
<li><a href="hires.html" class="active">Hi-Res Wallpapers</a></li>
<li><a href="lowres.html">Low-Res Wallpapers</a></li>
<li><a href="logos.html">Logos</a></li>
<li><a href="grub.html">Grub Themes</a></li>
<li>
<button class="theme-toggle" aria-label="Toggle theme">
<span class="icon light-icon active">☀️</span>
<span class="icon dark-icon">🌙</span>
</button>
</li>
</ul>
</div>
</nav>
EOF
)
header=$(cat << EOF
<!-- Page Header -->
<header class="page-header">
<div class="logo-container">
<img src="assets/logos/001.png" alt="Void Logo" class="logo">
</div>
<div class="container">
<h2>High Resolution Wallpapers</h2>
<p>Premium quality wallpapers for your desktop</p>
<div class="gallery-count">
<!-- // Change numbers if you add -->
<span class="count-badge">${hiresCount} wallpapers</span>
</div>
</div>
</header>
EOF
)
gallery=$(cat << 'EOF'
<!-- Gallery -->
<main class="container">
<div class="gallery" id="gallery">
<!-- Images will be loaded here by JavaScript -->
</div>
</main>
<!-- Lightbox -->
<div id="lightbox" class="lightbox">
<button class="lightbox-close" aria-label="Close">×</button>
<button class="lightbox-prev" aria-label="Previous">‹</button>
<button class="lightbox-next" aria-label="Next">›</button>
<div class="lightbox-content">
<img src="" alt="" id="lightbox-img">
<div class="lightbox-info">
<span id="lightbox-counter"></span>
<a id="lightbox-download" href="" download class="btn btn-small">Download</a>
</div>
</div>
</div>
EOF
)
about=' <!-- About Section -->
<section class="about">
<h2>About This Collection</h2>
<p>This repository contains a curated collection of artwork for Void Linux, including wallpapers, logos, and grub themes created by talented community members.</p>
<h3>Credits</h3>
<ul class="credits-list">
<li><a href="https://github.com/siduck76" target="_blank">siduck76</a></li>
<li><a href="https://github.com/mahmoudk1000" target="_blank">mahmoudk1000</a></li>
<li><a href="https://github.com/Mangeshrex" target="_blank">Mangeshrex</a></li>
<li><a href="https://alkusin.net/" target="_blank">alkusin.net</a></li>
<li><a href="https://www.pixiv.net/en/users/60562229" target="_blank">raviolimavioli008</a></li>
<li><a href="https://gitlab.com/Irkiosan" target="_blank">Irkiosan</a></li>
<li><a href="https://github.com/gabriel-russo" target="_blank">gabriel-russo</a></li>
</ul>
<h3>Contributing</h3>
<p>We welcome contributions! Please check our <a href="https://github.com/oSoWoSo/void-artwork" target="_blank">GitHub repository</a> for contribution guidelines.</p>
</section>
</main>
'
giscus=' <!-- Giscus -->
<script src="https://giscus.app/client.js"
data-repo="osowoso/void-artwork"
data-repo-id="R_kgDOGLPAbA"
data-category="General"
data-category-id="DIC_kwDOGLPAbM4CAHM_"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="noborder_dark"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
'
footer=$(cat << EOF
<!-- Footer -->
<footer class="footer">
<div class="container">
<p>© 2026 Void Linux Artwork Collection | Licensed under <a href="https://github.com/oSoWoSo/void-artwork/blob/main/LICENSE" target="_blank">CC-BY-4.0</a></p>
</div>
</footer>
<script src="js/main.js"></script>
<script src="js/gallery.js"></script>
<script>
// Change numbers if you add
initGallery('assets/hires/', [
{ count: ${hiresPNG}, ext: 'png' },
{ count: ${hiresJPG}, ext: 'jpg', startFrom: ${hiresJPGstart} }
]);
</script>
</body>
</html>
EOF
)
cat << EOF> "${file}.html"
${navbar}
${header}
${gallery}
${about}
${giscus}
${footer}
EOF
categories=$(cat << EOF >> index.html
<div class="category-card">
<div class="category-icon">🖼️</div>
<h3>Hi-Res Wallpapers</h3>
<p>High resolution wallpapers for your desktop</p>
<!-- Change this numbers if you add theme -->
<div class="category-count" data-path="assets/hires/" data-counts='[{"count":${hiresPNG},"ext":"png"},{"count":${hiresJPG},"ext":"jpg","startFrom":${hiresJPGstart}}]'>
<span class="count-number">${hiresCount}</span> images
</div>
<a href="hires.html" class="category-link">View Collection →</a>
</div>
EOF
)