From ed82a486c3e5d9c93f7853668e4b768ea3b9fed6 Mon Sep 17 00:00:00 2001 From: David Polakovic Date: Thu, 31 Aug 2023 08:34:42 +0200 Subject: [PATCH] updated index.php, added .htaccess, minor dir update --- .htaccess | 16 ++++++++++++++ Minor-pages/rnd.html | 27 +++++++++++++++++++++++ Styles/styles.css | 47 ++++++++++++++++++++++++++++++++--------- dir.html | 4 ++-- index.html => index.php | 35 ++++++++++++++++++++++++++---- 5 files changed, 113 insertions(+), 16 deletions(-) create mode 100644 .htaccess create mode 100755 Minor-pages/rnd.html mode change 100644 => 100755 Styles/styles.css mode change 100644 => 100755 dir.html rename index.html => index.php (73%) mode change 100644 => 100755 diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..c7b2bf7 --- /dev/null +++ b/.htaccess @@ -0,0 +1,16 @@ +RewriteEngine on +#redirect /file.php to /file +RewriteCond %{THE_REQUEST} \s/([^.]+)\.php [NC] +RewriteRule ^ /%1 [NE,L,R] +# now we will internally map /file to /file.php +RewriteCond %{REQUEST_FILENAME}.php -f +RewriteRule ^(.*)/?$ /$1.php [L] + + RewriteEngine on + #redirect /file.html to /file + RewriteCond %{THE_REQUEST} \s/([^.]+)\.html [NC] + RewriteRule ^ /%1 [NE,L,R] + # now we will internally map /file to/ file.html + RewriteCond %{REQUEST_FILENAME}.html -f + RewriteRule ^(.*)/?$ /$1.html [L] + diff --git a/Minor-pages/rnd.html b/Minor-pages/rnd.html new file mode 100755 index 0000000..8d94bd1 --- /dev/null +++ b/Minor-pages/rnd.html @@ -0,0 +1,27 @@ +my favorite junk food is fish sticks. +my favorite book might just be the Name of the rose. +my favorite dinosaur is pterodactyl. +my favorite drink is White russian (and yes, it happened after I've seen Big Lebowsky). +my favorite color is yellow. +I still write "www" in address bar. +I unironically liked The Phantom Menace. +I am fascinated by honebadgers. +I have one tomcat. +when I need to focus I tend to listen to stoner rock. +I enjoy to play basketball, even when I'am not really good at it. +my favorite part of physics is thermodynamics. +I enjoy hacking board games. +I willingly play healers in D&D. +I prefer Star Trek TNG over the Original Series. +I bn gbo pg dszquphsbgz ;-) . +I still use shortcuts on desktop. +I use pencils more often than pens. +I still use floppy disks for my backups. +I don't drink coffe, but sometimes I drink mate tea. +I love the smell of tobacco, but I hate the cigarette smoke. +I use everything except bookmarks for bookmarking. +I think way too much about time travel. +I own ~200g of meteorites. +I never sit on swivel chairs. +I hate caraway. +I don't use Arch btw. diff --git a/Styles/styles.css b/Styles/styles.css old mode 100644 new mode 100755 index 3744cc3..deab5d7 --- a/Styles/styles.css +++ b/Styles/styles.css @@ -150,21 +150,27 @@ body { these are clases for my blog page - they show small picture and description in small fonts */ +.blog-prev { + display: flex; +} + .blog-prev-img { width: 150px; - height: auto; + height: 95px; + float: left; } -.blog-prev { - display: flex; -} +.blog-prev-img img { + width: 150px; + height: 95px; + object-fit: cover; -.blog-prev-text { - padding-left: 10px; } -.blog-prev-detail { - color: #4d4d4d +.blog-prev-text { + height: 95px; + float: left; + color: #545454; } /* Navigation bar for blog page @@ -206,9 +212,10 @@ body { */ .code-block { - background: #f4f4f4; + background: #efdac3; border: 1px solid #ddd; - /* border-left: 3px solid #f36d33; */ + /*border-left: 3px solid #f36d33; */ + border-left: 3px solid #b38265; color: #666; page-break-inside: avoid; font-family: monospace; @@ -222,6 +229,26 @@ body { word-wrap: break-word; } +.terminal-block { + background: #000; + border: 1px solid #000; + /*border-left: 3px solid #f36d33; */ + border-left: 3px solid #000; + color: #99ffe6; + /*color: #80ffdf; */ + font-weight: bold; + page-break-inside: avoid; + font-family: monospace; + font-size: 15px; + line-height: 1.6; + margin-bottom: 1.6em; + max-width: 100%; + overflow: auto; + padding: 1em 1.5em; + display: block; + word-wrap: break-word; +} + .what-is-this { max-width: 975px; height: auto; diff --git a/dir.html b/dir.html old mode 100644 new mode 100755 index 3e50868..c709ff7 --- a/dir.html +++ b/dir.html @@ -66,8 +66,8 @@

Some of these websites contains "allergens"
- [1] - advertisements
- [2] - unnecessary cookies
+ [1] - advertisements, + [2] - unnecessary cookies, [3] - proprietary javascript


diff --git a/index.html b/index.php old mode 100644 new mode 100755 similarity index 73% rename from index.html rename to index.php index 26cd7b4..863ac80 --- a/index.html +++ b/index.php @@ -41,10 +41,28 @@
My name is David - and I work as software developer. - This is my personal Web space which serves me as substitution for all - (anti)social media. - + and This is my personal Web space which serves me as substitution + for all social media. Feel free to browse here or check out my mostly abandoned git server. My primary communication channel is email, so if you wish to contact me, you can use: @@ -56,6 +74,15 @@ (my public GPG)

+

+ In light of the upcoming actions against the free web (C2PA, Web + Environment Integrity) I might be looking into hosting this site via + other protocols too. If you, random visitor, happen to know + anything about running a gopher or gemini server, please, write + me an email. This prompt is valid until deleted. + +

-- 2.30.2