diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ba520cc --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +db.sqlite3 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1edcd94..5da5a64 100755 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,9 @@ db.sqlite3 media migrations/ +### TS +node_modules/ + ### Testing ### .coverage htmlcov/ diff --git a/personalWebpage/__init__.py b/DOCKERFILE similarity index 100% rename from personalWebpage/__init__.py rename to DOCKERFILE diff --git a/README.md b/README.md new file mode 100644 index 0000000..9dcd8f0 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# website + +To install dependencies: + +```bash +bun install +``` + +To run: + +```bash +bun run index.ts +``` + +This project was created using `bun init` in bun v1.0.20. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..218536a Binary files /dev/null and b/bun.lockb differ diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 8937f23..0000000 --- a/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -rsync -rv webpage django:/home/django/personalWebpage/ -ssh django "bash -s" < ({ + name: image, + url: this.remove_extension(image), + folder: req.url, + })); + res.render("ad.njk", { image_list }); + } + + index(req: Request, res: Response) { + res.render("index.njk", { + page: "index", + title: "THE INDEX", + }); + } + + about(req: Request, res: Response) { + res.render("about.njk", { + page: "about", + title: "About Me", + }); + } +} + +export default new App(); diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..10fb0af --- /dev/null +++ b/src/index.ts @@ -0,0 +1,22 @@ +import express from "express"; +import nunjucks from "nunjucks"; +import app from "src/app"; + +const site = express(); + +nunjucks.configure( "templates", { + autoescape: true, + express: site, +}); + +site.use(express.static(".")); + +site.get("/", app.index); +site.get("/about", app.about); +site.get("/ads", app.ad); +site.get("/8811", app.image); +site.get("/banner", app.image); +site.get("/gif", app.image); +site.get("/signbook", app.index); + +site.listen(8080, () => console.log("app listening on 8080")); diff --git a/static/ads/ads b/static/ads/ads new file mode 100755 index 0000000..ac97b27 --- /dev/null +++ b/static/ads/ads @@ -0,0 +1,6 @@ +Silly ad of engarging your orb +Silly ad of internet explorer 3.0 +Download more RAM +Insert lies here! +Cute trans girls in my CS class? +Little gay people on my machine? \ No newline at end of file diff --git a/static/ads/hor/buynow.gif b/static/ads/hor/buynow.gif new file mode 100755 index 0000000..71eae59 Binary files /dev/null and b/static/ads/hor/buynow.gif differ diff --git a/static/ads/hor/catgirl.png b/static/ads/hor/catgirl.png new file mode 100755 index 0000000..e697171 Binary files /dev/null and b/static/ads/hor/catgirl.png differ diff --git a/static/ads/hor/gay.jpg b/static/ads/hor/gay.jpg new file mode 100755 index 0000000..95bce69 Binary files /dev/null and b/static/ads/hor/gay.jpg differ diff --git a/static/ads/hor/ie.png b/static/ads/hor/ie.png new file mode 100755 index 0000000..726de91 Binary files /dev/null and b/static/ads/hor/ie.png differ diff --git a/static/ads/hor/lies.jpg b/static/ads/hor/lies.jpg new file mode 100755 index 0000000..8f73d46 Binary files /dev/null and b/static/ads/hor/lies.jpg differ diff --git a/static/ads/hor/orb.gif b/static/ads/hor/orb.gif new file mode 100755 index 0000000..d6cdfc2 Binary files /dev/null and b/static/ads/hor/orb.gif differ diff --git a/static/ads/hor/ram.png b/static/ads/hor/ram.png new file mode 100755 index 0000000..9a376a0 Binary files /dev/null and b/static/ads/hor/ram.png differ diff --git a/static/background/about.png b/static/background/about.png new file mode 100755 index 0000000..d54e168 Binary files /dev/null and b/static/background/about.png differ diff --git a/static/background/index.png b/static/background/index.png new file mode 100755 index 0000000..64eab64 Binary files /dev/null and b/static/background/index.png differ diff --git a/static/icon.png b/static/icon.png new file mode 100755 index 0000000..aa08def Binary files /dev/null and b/static/icon.png differ diff --git a/static/icons/8831/cronut.cafe.gif b/static/icons/8831/cronut.cafe.gif new file mode 100755 index 0000000..989d890 Binary files /dev/null and b/static/icons/8831/cronut.cafe.gif differ diff --git a/static/icons/8831/dendy.cat.png b/static/icons/8831/dendy.cat.png new file mode 100755 index 0000000..0f50a49 Binary files /dev/null and b/static/icons/8831/dendy.cat.png differ diff --git a/static/icons/8831/lustli.online.png b/static/icons/8831/lustli.online.png new file mode 100644 index 0000000..64381be Binary files /dev/null and b/static/icons/8831/lustli.online.png differ diff --git a/static/icons/8831/moth.monster.png b/static/icons/8831/moth.monster.png new file mode 100755 index 0000000..2c3ab9e Binary files /dev/null and b/static/icons/8831/moth.monster.png differ diff --git a/static/icons/8831/remiiiiii.online.png b/static/icons/8831/remiiiiii.online.png new file mode 100755 index 0000000..49f7969 Binary files /dev/null and b/static/icons/8831/remiiiiii.online.png differ diff --git a/static/icons/banner/discord.gif b/static/icons/banner/discord.gif new file mode 100755 index 0000000..4ee8d64 Binary files /dev/null and b/static/icons/banner/discord.gif differ diff --git a/static/icons/banner/gay.png b/static/icons/banner/gay.png new file mode 100755 index 0000000..a47a015 Binary files /dev/null and b/static/icons/banner/gay.png differ diff --git a/static/icons/banner/html.gif b/static/icons/banner/html.gif new file mode 100755 index 0000000..dd832a0 Binary files /dev/null and b/static/icons/banner/html.gif differ diff --git a/static/icons/banner/ie.gif b/static/icons/banner/ie.gif new file mode 100755 index 0000000..0a2a038 Binary files /dev/null and b/static/icons/banner/ie.gif differ diff --git a/static/icons/banner/linux.png b/static/icons/banner/linux.png new file mode 100755 index 0000000..c316e4d Binary files /dev/null and b/static/icons/banner/linux.png differ diff --git a/static/icons/banner/nft.gif b/static/icons/banner/nft.gif new file mode 100644 index 0000000..1a4caf0 Binary files /dev/null and b/static/icons/banner/nft.gif differ diff --git a/static/icons/banner/showbroslove.jpg b/static/icons/banner/showbroslove.jpg new file mode 100755 index 0000000..c7ac476 Binary files /dev/null and b/static/icons/banner/showbroslove.jpg differ diff --git a/static/icons/banner/thiswebsiteisgay.gif b/static/icons/banner/thiswebsiteisgay.gif new file mode 100644 index 0000000..4546ff3 Binary files /dev/null and b/static/icons/banner/thiswebsiteisgay.gif differ diff --git a/static/icons/banner/transgender.png b/static/icons/banner/transgender.png new file mode 100644 index 0000000..b27d303 Binary files /dev/null and b/static/icons/banner/transgender.png differ diff --git a/static/icons/banner/www.gif b/static/icons/banner/www.gif new file mode 100755 index 0000000..48fbd13 Binary files /dev/null and b/static/icons/banner/www.gif differ diff --git a/static/icons/banner/xenia.gif b/static/icons/banner/xenia.gif new file mode 100644 index 0000000..aa37d52 Binary files /dev/null and b/static/icons/banner/xenia.gif differ diff --git a/static/icons/bizcochito.gif b/static/icons/bizcochito.gif new file mode 100755 index 0000000..e9a168a Binary files /dev/null and b/static/icons/bizcochito.gif differ diff --git a/static/icons/coconut.png b/static/icons/coconut.png new file mode 100755 index 0000000..3a37c65 Binary files /dev/null and b/static/icons/coconut.png differ diff --git a/static/icons/fediring.png b/static/icons/fediring.png new file mode 100755 index 0000000..72cca9e Binary files /dev/null and b/static/icons/fediring.png differ diff --git a/static/icons/gif/I‘m-not-a-robot.gif b/static/icons/gif/I‘m-not-a-robot.gif new file mode 100755 index 0000000..c0af564 Binary files /dev/null and b/static/icons/gif/I‘m-not-a-robot.gif differ diff --git a/static/icons/gif/banana.gif b/static/icons/gif/banana.gif new file mode 100755 index 0000000..981da58 Binary files /dev/null and b/static/icons/gif/banana.gif differ diff --git a/static/icons/gif/blobcat.gif b/static/icons/gif/blobcat.gif new file mode 100755 index 0000000..bdd9b53 Binary files /dev/null and b/static/icons/gif/blobcat.gif differ diff --git a/static/icons/gif/cassette.gif b/static/icons/gif/cassette.gif new file mode 100755 index 0000000..8fe6c9b Binary files /dev/null and b/static/icons/gif/cassette.gif differ diff --git a/static/icons/gif/deviantart_321712895_Catgirls Stamp-web.jpg b/static/icons/gif/deviantart_321712895_Catgirls Stamp-web.jpg new file mode 100644 index 0000000..38f4088 Binary files /dev/null and b/static/icons/gif/deviantart_321712895_Catgirls Stamp-web.jpg differ diff --git a/static/icons/gif/drancingmoe.gif b/static/icons/gif/drancingmoe.gif new file mode 100755 index 0000000..bd00129 Binary files /dev/null and b/static/icons/gif/drancingmoe.gif differ diff --git a/static/icons/gif/enby.gif b/static/icons/gif/enby.gif new file mode 100755 index 0000000..886017f Binary files /dev/null and b/static/icons/gif/enby.gif differ diff --git a/static/icons/gif/hatkid.gif b/static/icons/gif/hatkid.gif new file mode 100755 index 0000000..b85c88d Binary files /dev/null and b/static/icons/gif/hatkid.gif differ diff --git a/static/icons/gif/milk.png b/static/icons/gif/milk.png new file mode 100755 index 0000000..3841e34 Binary files /dev/null and b/static/icons/gif/milk.png differ diff --git a/static/icons/gif/parrot.gif b/static/icons/gif/parrot.gif new file mode 100755 index 0000000..bf5e4b8 Binary files /dev/null and b/static/icons/gif/parrot.gif differ diff --git a/static/icons/gif/pumpum.gif b/static/icons/gif/pumpum.gif new file mode 100755 index 0000000..c46a190 Binary files /dev/null and b/static/icons/gif/pumpum.gif differ diff --git a/static/icons/gif/yippee-flip.gif b/static/icons/gif/yippee-flip.gif new file mode 100644 index 0000000..1f76477 Binary files /dev/null and b/static/icons/gif/yippee-flip.gif differ diff --git a/static/icons/last.png b/static/icons/last.png new file mode 100755 index 0000000..590c3da Binary files /dev/null and b/static/icons/last.png differ diff --git a/static/icons/next.png b/static/icons/next.png new file mode 100755 index 0000000..d61590b Binary files /dev/null and b/static/icons/next.png differ diff --git a/static/stats/index.cgi b/static/stats/index.cgi new file mode 100755 index 0000000..8dda320 --- /dev/null +++ b/static/stats/index.cgi @@ -0,0 +1,15 @@ +#!/bin/sh + +echo "Content-Type: text/plain" +echo +echo "This is \"`hostname`\" server running `uname -srm` on `lscpu -J | jq -r '.lscpu[2].data'` * `lscpu -J | jq -r '.lscpu[7].data'` `lscpu -J | jq -r '.lscpu[9].data'` CPU @ `lscpu -J | jq -r '.lscpu[11].data'` MHz." +echo +uptime +echo "System stats" +echo "==================================" +echo "Processes:\t RUN: `ps -r | wc -l`, TOTAL: `ps -A | wc -l`" +head -n 2 /proc/meminfo +echo +echo "Generated on `date -R`." +echo +echo "https://yari.fai.st" diff --git a/static/style.css b/static/style.css new file mode 100755 index 0000000..b967e5e --- /dev/null +++ b/static/style.css @@ -0,0 +1,91 @@ +@media screen and (min-aspect-ratio: 2) { + .centercubeplease { + width: 50%; + } +} + +body { + background-color: #ffffff; + color: #000000; + font-size: 16px; +} + +#index { + background-image: url("background/index.png"); + background-size: cover; + background-attachment: fixed; +} + +#index .centercubeplease { + background-color: #5f8e76; + border: 3px solid #527c46; + margin: auto; + padding: 10px; +} + +#index a { + color: #f0f0f0; +} + +.centercubeplease img { + max-width: 95%; +} + +#about { + background-image: url("background/about.png"); + background-size: cover; + background-attachment: fixed; +} + +#about a { + color: #fff0f0; +} + +#about .centercubeplease { + color: #fff0f0; + background-color: #990033; + border: 3px solid #cc0066; + margin: auto; + padding: 10px; +} + +h1 { + text-align: center; +} + +ul { + text-align: left; +} + +h1, +h2, +h3 { + margin-bottom: 0; +} + +.centerade { + width: 50%; + margin: auto; + margin-top: 10px; + text-align: center; +} + +.centerade img { + width: 99%; +} + +.centercubeplease a { + color: #449494; +} + +.disclosure-closed { + list-style: disclosure-closed; +} + +.error { + color: red; +} + +table { + margin: auto; +} diff --git a/templates/about.njk b/templates/about.njk new file mode 100755 index 0000000..1caa787 --- /dev/null +++ b/templates/about.njk @@ -0,0 +1,109 @@ +{% extends "base.njk" %} +
+

+ So hey, you want to know more about me. Here u have! +

+
+

+ A thing i need to say is that this page one day could be deprecated bc + of me just not remembering to change anything. +

+

+ Index +

+ +

+ How to adress me +

+

+ So first of all if you are not gonna adress me directly or you don't + know me yet just call me Bizcochito! +
+

+

+ You can call me: +

+
    +
  • + Yari +
  • +
  • + Alicia +
  • +
  • + Maria +
  • +
  • + Bizcochito +
  • +
+

+ Also if you are gonna "pronoun" me, please think before if u can just + use the name "Yari" that is literaly like "They" long. +

+

+ If you insist in using pronouns you can use this + (in order of preference) : +

+
    +
  • + My names +
  • +
  • + Literally anything but he +
  • +
+

+ Who i am +

+

+ Existential question i have yet not answered +

+

+ What i am +

+

+ A silly colection of bytes +

+

+ Where to contact me +

+
+ {# djlint: ignore D018 #} + XMPP + + + Personal Mail + + + Pleroma + +
+
+IDK return back +
diff --git a/templates/ad.njk b/templates/ad.njk new file mode 100644 index 0000000..ab0090a --- /dev/null +++ b/templates/ad.njk @@ -0,0 +1,5 @@ +
+ + ad + +
diff --git a/templates/base.njk b/templates/base.njk new file mode 100644 index 0000000..a67f0c6 --- /dev/null +++ b/templates/base.njk @@ -0,0 +1,12 @@ + + + + + + {{ title }} + + + {% block body %} + {% endblock body %} + + diff --git a/templates/imagelist.njk b/templates/imagelist.njk new file mode 100644 index 0000000..05cb8e0 --- /dev/null +++ b/templates/imagelist.njk @@ -0,0 +1,10 @@ +
+ {% for image in image_list %} + + {{ image.url }} + + {% endfor %} +
diff --git a/templates/index.njk b/templates/index.njk new file mode 100755 index 0000000..83792e7 --- /dev/null +++ b/templates/index.njk @@ -0,0 +1,52 @@ +{% extends "base.njk" %} +{% block body %} +
+

+ I'm bizcochito, hey! +

+

+ Pages +

+ +

+ Banners +

+ +

+ Funni gifs +

+ +

+ Frens +

+ +

+ Another banner that is unused +

+
+ + cronut.cafe/~bizcochito + +
+

+ BANNER +

+
+ + yari.fai.st + +
+
+ +{% endblock body %} \ No newline at end of file diff --git a/templates/signbook.njk b/templates/signbook.njk new file mode 100755 index 0000000..354446c --- /dev/null +++ b/templates/signbook.njk @@ -0,0 +1,53 @@ +{% extends "base.njk" %} +
+

+ Cool signers: +

+ {% if signer_list %} +

+

+

+ {% else %} +

+ No one signed here :( +

+ {% endif %} +
+
+

+ Be part of this cuties! +

+

+

+

+ {% csrf_token %} + {% if error_message %} +

+ {{ error_message }} +

+ {% endif %} + + {{ form.as_table }} +
+ +
+

+

+
diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..9621e5e --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "lib": ["ESNext"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, + + /* Linting */ + "skipLibCheck": true, + "strict": true, + "noFallthroughCasesInSwitch": true, + "forceConsistentCasingInFileNames": true, + + "baseUrl": "./" + } +} diff --git a/webpage/__init__.py b/webpage/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/webpage/admin.py b/webpage/admin.py deleted file mode 100644 index 6bbd798..0000000 --- a/webpage/admin.py +++ /dev/null @@ -1,7 +0,0 @@ -from django.contrib import admin - -from .models import Booksigner - -# Register your models here. - -admin.site.register(Booksigner) \ No newline at end of file diff --git a/webpage/apps.py b/webpage/apps.py deleted file mode 100644 index 36259cb..0000000 --- a/webpage/apps.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.apps import AppConfig - -class ConfigWebpage(AppConfig): - name = 'webpage' diff --git a/webpage/tests.py b/webpage/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/webpage/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/webpage/urls.py b/webpage/urls.py deleted file mode 100644 index 813079b..0000000 --- a/webpage/urls.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.urls import path - -from . import views - -app_name = "webpage" -urlpatterns = [ - path("signbook/", views.signbook, name="signbook"), - path("about/", views.about, name="about"), - path("", views.index, name="index"), -] \ No newline at end of file