From: jxnshi Date: Mon, 6 Jan 2025 12:07:43 +0000 (+0100) Subject: Redesign X-Git-Url: https://jxnshi.xyz/repos?a=commitdiff_plain;h=fc414b26b5033d5d7b01b5d47511b347002b49a4;p=jxnshi.xyz.git Redesign --- diff --git a/public/background.png b/public/background.png new file mode 100644 index 0000000..00fe18a Binary files /dev/null and b/public/background.png differ diff --git a/public/background.webp b/public/background.webp deleted file mode 100644 index 73bc0c7..0000000 Binary files a/public/background.webp and /dev/null differ diff --git a/public/index.html b/public/index.html index ea1d75b..8df775c 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,36 @@ -

- Welcome to my website ! Here I post my projects, you can access them in the - *projects* tab. If you like what I do, you can support me with a Monero - donation. -

+
+

+ Welcome to my website ! Here I post my projects, you can access them in the + *projects* tab. If you like what I do, you can support me with a Monero + donation. +

+
+
+
+
+ + [monero-logo.webp] + +
+

Monero donation

+ [xmr-qr-code.webp] +

8AHjMsMYAdJX8NFjxDecYT6g5w2rNGUkpVtJ367MPpPuFK4c1v1Bqwm2r6wVxkRYrjiUaa53kMyEuZPBPEXGYqbUPipW5PB

+
+
+
+

+ -----BEGIN PGP PUBLIC KEY BLOCK-----
+
+ mDMEZzy33BYJKwYBBAHaRw8BAQdAqiVwQsuChro7Xi0hf9TBgjPX7fb/rIqej1+v
+ KLGMzF+0Bmp4bnNoaYiTBBMWCgA7FiEE5ZFtAKicTqmN2ibwCI6UnD1b2FsFAmc8
+ t9wCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQCI6UnD1b2FsqZgD/
+ RjrmTqRRBUjDyZ+Of+kSpeOBtpqyIvVwD7vl2M8/7rYA/1xib2aWV/l5xgbh2hAP
+ XFXMkaT+U3mQGcYUPBiD2lEFuDgEZzy33BIKKwYBBAGXVQEFAQEHQIlkb35USt8C
+ fKhr0dhiLdnzFnnQCfpwijhxzTJ8K+wuAwEIB4h4BBgWCgAgFiEE5ZFtAKicTqmN
+ 2ibwCI6UnD1b2FsFAmc8t9wCGwwACgkQCI6UnD1b2FtYbgD9Gz2ySaDvhtF3yngw
+ uR4s1wh2fWxXepMcb5S4OBRFkEQBAJ9ZXjrgfEJ/H1rUeRMCbCsGz/MlofS/2qdh
+ ZSLiyWEN
+ =1cWT
+ -----END PGP PUBLIC KEY BLOCK-----
+

+
diff --git a/public/lain.png b/public/lain.png new file mode 100644 index 0000000..4f44dbd Binary files /dev/null and b/public/lain.png differ diff --git a/public/layout.html b/public/layout.html index 9560178..86c5f2a 100644 --- a/public/layout.html +++ b/public/layout.html @@ -8,47 +8,26 @@
-

jxnshi.xyz

-
-
-

Projects

- -
-
-
- {s} -
-
-
-
- - [monero-logo.webp] - +
+
+
+

jxnshi.xyz

+
+
+

Projects

+ +
-

Monero donation

- [xmr-qr-code.webp] -

8AHjMsMYAdJX8NFjxDecYT6g5w2rNGUkpVtJ367MPpPuFK4c1v1Bqwm2r6wVxkRYrjiUaa53kMyEuZPBPEXGYqbUPipW5PB

-
-
-

- -----BEGIN PGP PUBLIC KEY BLOCK-----
-
- mDMEZzy33BYJKwYBBAHaRw8BAQdAqiVwQsuChro7Xi0hf9TBgjPX7fb/rIqej1+v
- KLGMzF+0Bmp4bnNoaYiTBBMWCgA7FiEE5ZFtAKicTqmN2ibwCI6UnD1b2FsFAmc8
- t9wCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQCI6UnD1b2FsqZgD/
- RjrmTqRRBUjDyZ+Of+kSpeOBtpqyIvVwD7vl2M8/7rYA/1xib2aWV/l5xgbh2hAP
- XFXMkaT+U3mQGcYUPBiD2lEFuDgEZzy33BIKKwYBBAGXVQEFAQEHQIlkb35USt8C
- fKhr0dhiLdnzFnnQCfpwijhxzTJ8K+wuAwEIB4h4BBgWCgAgFiEE5ZFtAKicTqmN
- 2ibwCI6UnD1b2FsFAmc8t9wCGwwACgkQCI6UnD1b2FtYbgD9Gz2ySaDvhtF3yngw
- uR4s1wh2fWxXepMcb5S4OBRFkEQBAJ9ZXjrgfEJ/H1rUeRMCbCsGz/MlofS/2qdh
- ZSLiyWEN
- =1cWT
- -----END PGP PUBLIC KEY BLOCK-----
-

+ Lain + +
+
+ {s} +
diff --git a/public/style.css b/public/style.css index 10f57d0..4e4dfa6 100644 --- a/public/style.css +++ b/public/style.css @@ -15,7 +15,15 @@ body { display: flex; justify-content: center; background-color: black; - padding: 30px; + background-image: url("/background.png"); + background-size: 100% 1000px; + padding-bottom: 20px; + padding-top: 20px; +} + +header { + display: grid; + grid-template-columns: 1fr 500px 1fr; } ul, ol { @@ -60,8 +68,27 @@ a:hover { #main-div { display: flex; flex-direction: column; + align-items: center; + gap: 20px; + width: 100%; +} + +#content-div { + display: flex; + flex-direction: column; + align-items: center; + background-color: black; + padding-top: 20px; + padding-bottom: 20px; + width: 100%; +} + +#content-div > div { + display: flex; + flex-direction: column; + align-items: center; + width: 1000px; gap: 20px; - max-width: 800px; } #donation-div { diff --git a/src/main.zig b/src/main.zig index 5e32cd0..aed04cd 100644 --- a/src/main.zig +++ b/src/main.zig @@ -14,7 +14,7 @@ fn parentDirPath(path: []const u8) ?[]const u8 { } fn handleClient(parent_allocator: std.mem.Allocator, connection: std.net.Server.Connection) !void { - const alloc_buffer = try parent_allocator.alloc(u8, 65_536); + const alloc_buffer = try parent_allocator.alloc(u8, 10_000_000); defer parent_allocator.free(alloc_buffer); var fixed_allocator = std.heap.FixedBufferAllocator.init(alloc_buffer);