commit bb712cd891b504ce7e4b60733ef1dc2ed8fe48d9 Author: Ubuntu Date: Wed Oct 29 15:39:55 2025 +0000 first commit diff --git a/automodpack_fingerprint.txt b/automodpack_fingerprint.txt new file mode 100755 index 0000000..4f49096 --- /dev/null +++ b/automodpack_fingerprint.txt @@ -0,0 +1 @@ +3b180a41fe913487c1c86ad79c6dc085d01a272ac2da556f4bf7379ee3a535f8 diff --git a/back.py b/back.py new file mode 100755 index 0000000..28e590a --- /dev/null +++ b/back.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python3 +""" +Generate a top-to-bottom linear gradient PNG from three hex colors. + +Matches: linear-gradient(#2a1a5e, #8b4789, #f4a261) + +Usage: + python gradient_to_png.py --width 1920 --height 1080 --out bg.png +""" + +import argparse +from PIL import Image + +def hex_to_rgb(h: str): + """Convert #rrggbb or rrggbb to (r,g,b).""" + h = h.strip() + if h.startswith("#"): + h = h[1:] + if len(h) != 6: + raise ValueError("Hex color must be 6 hex digits, got: " + h) + return tuple(int(h[i:i+2], 16) for i in (0, 2, 4)) + +def lerp(a: int, b: int, t: float) -> int: + """Linear interpolation between integers a and b, t in [0,1].""" + return int(round(a + (b - a) * t)) + +def mix_color(c1, c2, t: float): + """Interpolate between two RGB colors (tuple of 3 ints).""" + return (lerp(c1[0], c2[0], t), + lerp(c1[1], c2[1], t), + lerp(c1[2], c2[2], t)) + +def make_three_stop_vertical_gradient(width: int, height: int, hex1: str, hex2: str, hex3: str) -> Image.Image: + """ + Create a Pillow Image with a vertical gradient going through three colors evenly: + - color1 at top (0%) + - color2 at 50% + - color3 at bottom (100%) + This mirrors `linear-gradient(color1, color2, color3)` in CSS with no explicit stops. + """ + c1 = hex_to_rgb(hex1) + c2 = hex_to_rgb(hex2) + c3 = hex_to_rgb(hex3) + + img = Image.new("RGB", (width, height)) + pixels = img.load() + + # For each row compute color: + for y in range(height): + t = y / float(max(1, height - 1)) # 0.0..1.0 + if t <= 0.5: + # interpolate between c1 and c2 (0.0..0.5 -> 0.0..1.0) + local_t = t / 0.5 + color = mix_color(c1, c2, local_t) + else: + # interpolate between c2 and c3 (0.5..1.0 -> 0.0..1.0) + local_t = (t - 0.5) / 0.5 + color = mix_color(c2, c3, local_t) + + # fill the row with the computed color + for x in range(width): + pixels[x, y] = color + + return img + +def main(): + parser = argparse.ArgumentParser(description="Render a 3-stop vertical CSS-like gradient to PNG") + parser.add_argument("--width", "-W", type=int, default=1920, help="Output image width in pixels") + parser.add_argument("--height", "-H", type=int, default=1080, help="Output image height in pixels") + parser.add_argument("--out", "-o", default="gradient.png", help="Output PNG filename") + parser.add_argument("--c1", default="#2a1a5e", help="Top color (hex)") + parser.add_argument("--c2", default="#8b4789", help="Middle color (hex)") + parser.add_argument("--c3", default="#f4a261", help="Bottom color (hex)") + args = parser.parse_args() + + img = make_three_stop_vertical_gradient(args.width, args.height, args.c1, args.c2, args.c3) + img.save(args.out, "PNG") + print(f"Saved {args.out} ({args.width}x{args.height})") + +if __name__ == "__main__": + main() diff --git a/favicon.ico b/favicon.ico new file mode 100755 index 0000000..4fea839 Binary files /dev/null and b/favicon.ico differ diff --git a/favicons/favicon-128x128.png b/favicons/favicon-128x128.png new file mode 100755 index 0000000..0282639 Binary files /dev/null and b/favicons/favicon-128x128.png differ diff --git a/favicons/favicon-16x16.png b/favicons/favicon-16x16.png new file mode 100755 index 0000000..76716fe Binary files /dev/null and b/favicons/favicon-16x16.png differ diff --git a/favicons/favicon-180x180.png b/favicons/favicon-180x180.png new file mode 100755 index 0000000..885d3f6 Binary files /dev/null and b/favicons/favicon-180x180.png differ diff --git a/favicons/favicon-192x192.png b/favicons/favicon-192x192.png new file mode 100755 index 0000000..674437a Binary files /dev/null and b/favicons/favicon-192x192.png differ diff --git a/favicons/favicon-256x256.png b/favicons/favicon-256x256.png new file mode 100755 index 0000000..d50690f Binary files /dev/null and b/favicons/favicon-256x256.png differ diff --git a/favicons/favicon-32x32.png b/favicons/favicon-32x32.png new file mode 100755 index 0000000..205eeb2 Binary files /dev/null and b/favicons/favicon-32x32.png differ diff --git a/favicons/favicon-384x384.png b/favicons/favicon-384x384.png new file mode 100755 index 0000000..7222f5c Binary files /dev/null and b/favicons/favicon-384x384.png differ diff --git a/favicons/favicon-48x48.png b/favicons/favicon-48x48.png new file mode 100755 index 0000000..425c5ef Binary files /dev/null and b/favicons/favicon-48x48.png differ diff --git a/favicons/favicon-512x512.png b/favicons/favicon-512x512.png new file mode 100755 index 0000000..f36afc9 Binary files /dev/null and b/favicons/favicon-512x512.png differ diff --git a/favicons/favicon-64x64.png b/favicons/favicon-64x64.png new file mode 100755 index 0000000..8cf6a47 Binary files /dev/null and b/favicons/favicon-64x64.png differ diff --git a/favicons/favicon-96x96.png b/favicons/favicon-96x96.png new file mode 100755 index 0000000..7c2fbe3 Binary files /dev/null and b/favicons/favicon-96x96.png differ diff --git a/favicons/favicon.ico b/favicons/favicon.ico new file mode 100755 index 0000000..4fea839 Binary files /dev/null and b/favicons/favicon.ico differ diff --git a/favicons/favicon.svg b/favicons/favicon.svg new file mode 100755 index 0000000..5df6e06 --- /dev/null +++ b/favicons/favicon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100755 index 0000000..40a579d --- /dev/null +++ b/index.html @@ -0,0 +1,228 @@ + + + + Krzak.org + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ + + + + + + + + + Krzak.org +

+

Hi, welcome to krzak.org

+

We host:

+ +
+ + diff --git a/krzak-icon.png b/krzak-icon.png new file mode 100755 index 0000000..a68c13f Binary files /dev/null and b/krzak-icon.png differ diff --git a/manifest.json b/manifest.json new file mode 100755 index 0000000..a2ba498 --- /dev/null +++ b/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "Krzak.org", + "short_name": "Krzak", + "icons": [ + { + "src": "/favicons/favicon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicons/favicon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#2a1a5e", + "background_color": "#2a1a5e", + "display": "standalone" +} diff --git a/n.png b/n.png new file mode 100755 index 0000000..ef001cc Binary files /dev/null and b/n.png differ