diff --git a/default.css b/default.css new file mode 100644 index 0000000..0a39f32 --- /dev/null +++ b/default.css @@ -0,0 +1,490 @@ +/* +This file could be used under both CC-BY-SA 4.0 or at your chosing GNU GPLv3 or any later version +*/ + +html {background-color: #353849; + background-image: url("/pictures/new_pattern.jpg"); + background-size: cover; + background-attachment: fixed; + } +} + + + +* { + + font-size: 15px; + list-style-type: none; + +} + +body{ + color: #FFFFFF; + font-family:"Sans"; + + margin-top: 5%; + margin-bottom: 5%; + margin-right: 5%; + margin-left: 5%; +} + +/* @font-face { */ +/* font-family: "Open-Sans-Extrabold" Open Sans; */ +/* /\*src: url(/font);*\/ */ +/* } */ + +pre { + /*background: #a89984;*/ + border: 10px solid #928374; + border-radius: 10px; + /*padding: 1em;*/ + /*margin: 1em;*/ + white-space: pre-wrap; +} + +table td { + border-style:hidden; + padding: 50 50; +} + +h1 { + font-size: 30px; + color: #ffb800; + text-shadow: 2px 2px 4px rgba(0,0,0, 0.3); +} + +h2 { + font-size: 25px; + color: #FFFFFF; +} + +h3 { + font-size: 15px; + color: #dda800; +} + +code { + background-color: #000000; + /*border: 5px solid #928374;*/ + border-radius: 5px; + word-wrap: break-word; + overflow-wrap: break-word; +} + +ul li { + list-style: inside circle; + display:list-item; +} + +table { + border-collapse: collapse; + border: 2px solid #7c6f64; +} + +th,td { + border: 2px solid #7c6f64; +} + +a { + color: #ffb800; + text-decoration: none; + + +} + +a:hover { + color: #FFFFFF; + text-decoration: none; +} + + + +img { + max-width: 70%; + height: auto; + border-radius:14px; +} + +.video_frame { + + + border-radius:30px; + border: 10px solid #ffb800; +} +video { + border-radius:20px;} + + + +input[type=text] { + padding: 12px 20px; + margin: 8px 0; + box-sizing: border-box; + border: 0px solid black; + background-color: #b058c6; + color: #311a46; + font-weight: bold; + box-shadow: 2px 2px 4px rgba(0,0,0, 0.3); +} +button, .button, select { + color: #ffb800; + padding: 5px 20; + margin: 8px 5px; + /* box-sizing: border-box; */ + /* border: 0px solid black; */ + + + + word-break: break-all; + display: inline-block; + + /* background-color: rgba(18, 83,140, 0.7); */ + + background-color: #353849; + border: 0px solid #ffb800; + color: #FFFFFF; + font-weight: bold; + border-radius: 25px; + box-shadow: 2px 2px 4px rgba(0,0,0, 0.3); +} + +.flexity { + + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + margin: 0; + padding: 0; + + +} + +.login_fixed { + position: fixed; + right:10; + top:10; +} + +sup { + background-color: #FF6600; + border-radius: 12px; + padding: 3px 3px 3px 3px; + margin: 5px; + +} + +.graph_line { + position: absolute; + background-color: #ffb800; + height: 80%; + margin-top: 20%; + width: 30px; + border-radius: 25px; +} + +.graph_line:hover { + background-color: white; +} + +.article_box { + color: #ffb800; + padding: 5px 20; + margin: 8px 5px; + /* box-sizing: border-box; */ + /* border: 0px solid black; */ + + max-width:300px; + vertical-align: top; + + word-break: break-word; + display: inline-block; + + /* background-color: rgba(18, 83,140, 0.7); */ + background-color: rgba(53,56,73, 0.95); + backdrop-filter: blur(10px); + color: #FFFFFF; + border-radius: 25px; + box-shadow: 2px 2px 4px rgba(0,0,0, 0.3);} + +.quote { + background-color: rgba(53,56,73, 0.99); + backdrop-filter: blur(10px); + padding: 10px 20px; + margin: 8px 0; + border-radius: 25px; + box-shadow: 2px 2px 4px rgba(0,0,0, 0.3); +} + +.toot { + color: #ffb800; + padding: 5px 20; + margin: 8px 5px; + /* box-sizing: border-box; */ + /* border: 0px solid black; */ + + + word-wrap: break-word; + overflow-wrap: break-word; + + display: inline-block; + + /* background-color: rgba(18, 83,140, 0.7); */ + background-color: rgba(53,56,73, 0.95); + backdrop-filter: blur(30px); + border: 0px solid #ffb800; + color: #FFFFFF; + box-shadow: 2px 2px 4px rgba(0,0,0, 0.3); + + border-radius: 25px; + } +.button > img {background-color: rgba(53,56,73, 0);} +.button { line-height: 3 } +/* summary { */ + +/* color: #ffb800; */ +/* padding: 5px 20; */ +/* margin: 8px 5px; */ +/* /\* box-sizing: border-box; *\/ */ +/* /\* border: 0px solid black; *\/ */ + +/* word-break: break-all; */ +/* display: inline-block; */ + +/* /\* background-color: rgba(18, 83,140, 0.7); *\/ */ +/* background-color: #353849; */ +/* border: 5px solid #ffb800; */ +/* color: #FFFFFF; */ +/* font-weight: bold; */ +/* border-radius: 25px; */ +/* background-image: url("/icon/closed"); */ +/* background-repeat: no-repeat; */ +/* background-position: center left; */ +/* padding-left: 40px; */ + + +/* } */ + +.in_scene_link { + background-color: rgba(18, 83,140, 0.7); + color: #FFFFFF; + border-radius: 25px; + padding-left: 5px; + padding-right: 5px; + font-weight: bold; +} + + +.vcschekbox_checked { + padding: 5px 12px; + margin: 8px 0; + /* box-sizing: border-box; */ + border: 0px solid black; + + word-break: break-all; + display: inline-block; + + background-color: rgba(18, 83,140, 0.7); + color: #FFFFFF; + font-weight: bold; + background-image: url("/icon/checked"); + background-repeat: no-repeat; + background-position: center left; + padding-left: 40px; + border-radius: 25px; +} + +.vcschekbox_unchecked { + padding: 5px 12px; + margin: 8px 0; + /* box-sizing: border-box; */ + border: 0px solid black; + + word-break: break-all; + display: inline-block; + + background-color: rgba(18, 83,140, 0.7); + color: #FFFFFF; + font-weight: bold; + background-image: url("/icon/unchecked"); + background-repeat: no-repeat; + background-position: center left; + padding-left: 40px; + border-radius: 25px; +} + +.vcschekbox_comment { + padding: 5px 12px; + margin: 8px 0; + /* box-sizing: border-box; */ + border: 0px solid black; + + word-break: break-all; + display: inline-block; + + background-color: rgba(0, 0,0, 0.5); + color: #FFFFFF; + font-weight: bold; + border-radius: 25px; +} + +/* details[open] summary { */ + +/* color: #FFFFFF; */ +/* font-weight: bold; */ +/* background-image: url("/icon/open"); */ +/* background-repeat: no-repeat; */ +/* background-position: center left; */ +/* padding-left: 40px; */ +} +summary:hover, summary:hover > h1 { + color: white; + cursor: pointer; + background-color: #4e526b; +} +button:hover, input:hover, button:focus, input:focus, .button:hover, .button:focus { + /**background-color: #4e526b;**/ + color: white; + box-shadow: 4px 4px 4px rgba(0,0,0, 0.5); +} + +hr { + border-top: 1px solid #b058c6; +} + +p { + margin-right: 5%; + margin-left: 5%; +} + +.searchbar { + width: 90%; + height: 70; + position: fixed; + top: 0; + margin-top: 1%; + left: 5%; +} + +.side_found { margin-top: 100} + + + + +/* +If a screen is at least 1024 pixels wide, we do some more things. +*/ + +@media screen and (min-width: 950px) { + + .column {width:50%} + .searchbar { + width: 35%;} + + + .scenes_section { + position: absolute; + left:20%; + top:1550; + width:15%; + } + .middle_section { + position: absolute; + left:20%; + top:1550; + width:39%; + } + .checklist_section { + position: absolute; + left:60%; + top:1550; + width:20%; + } + + .middle_section_article { + position: absolute; + left:20%; + top:750; + width:39%; + } + .checklist_section_article { + position: absolute; + left:60%; + top:750; + width:20%; + } + + body{ + color: #FFFFFF; + font-family:"Sans"; + + /* margin-top: 5%; */ + /* margin-bottom: 5%; */ + /* margin-right: 20%; */ + /* margin-left: 20%; */ + } + + +} + + + +.shot_1, .shot_2, .shot_3, .shot_4, .shot_5 { + color: #FFFFFF; + font-weight: bold; + border-radius: 25px; +} + +.shot_1 {background-color: #ff783a;} +.shot_2 {background-color: #abbf28;} +.shot_3 {background-color: #de80d1;} +.shot_4 {background-color: #638fff;} +.shot_5 {background-color: #00bd73;} + +#background_video { + position: fixed; + object-fit: cover; + right: 0; + bottom: 0; + min-width: 100%; + min-height: 100%; + z-index:-1; +} + +.dark_box { + background-color: rgba(53,56,73, 0.95); + backdrop-filter: blur(10px); + padding: 10px 20px; + margin: 8px 0; + border-radius: 25px; + box-shadow: 2px 2px 4px rgba(0,0,0, 0.2); +} + +.frase { + background-color: rgba(0, 0,0, 0.5); + padding: 1%; + position: static; + margin-top: 5px; + margin-left:30%; + width: 40%; + color: #FFFFFF; + font-weight: bold; + border-radius: 25px;} + +/* prgoress bar theme */ + +.back_progress {background-color: #45b3d1; + width: 100%; + height: 14; + border-radius: 7px} +.front_progress {background-color: #FFFFFF; + height: 14; + border-radius:7px} +.middle_progress {background-color: #000000; + height: 14; + border-radius:7px} +.moriasrace_banner {position: static; + top: 100; + left: 20%;} + +} diff --git a/icons/analytics.png b/icons/analytics.png new file mode 100644 index 0000000..bbdaedf Binary files /dev/null and b/icons/analytics.png differ diff --git a/icons/asset_new.png b/icons/asset_new.png new file mode 100644 index 0000000..7e7b1dc Binary files /dev/null and b/icons/asset_new.png differ diff --git a/icons/blender.png b/icons/blender.png new file mode 100644 index 0000000..9563c31 Binary files /dev/null and b/icons/blender.png differ diff --git a/icons/blenderartists.png b/icons/blenderartists.png new file mode 100644 index 0000000..ac43d70 Binary files /dev/null and b/icons/blenderartists.png differ diff --git a/icons/bug.png b/icons/bug.png new file mode 100644 index 0000000..4dfe6f2 Binary files /dev/null and b/icons/bug.png differ diff --git a/icons/call.png b/icons/call.png new file mode 100644 index 0000000..83fd9a6 Binary files /dev/null and b/icons/call.png differ diff --git a/icons/cancel.png b/icons/cancel.png new file mode 100644 index 0000000..950083e Binary files /dev/null and b/icons/cancel.png differ diff --git a/icons/checked.png b/icons/checked.png new file mode 100644 index 0000000..1b4c380 Binary files /dev/null and b/icons/checked.png differ diff --git a/icons/checklist.png b/icons/checklist.png new file mode 100644 index 0000000..0eb0b5c Binary files /dev/null and b/icons/checklist.png differ diff --git a/icons/checklist_new.png b/icons/checklist_new.png new file mode 100644 index 0000000..03591e9 Binary files /dev/null and b/icons/checklist_new.png differ diff --git a/icons/chr.png b/icons/chr.png new file mode 100644 index 0000000..bf37999 Binary files /dev/null and b/icons/chr.png differ diff --git a/icons/clean.png b/icons/clean.png new file mode 100644 index 0000000..bcf3081 Binary files /dev/null and b/icons/clean.png differ diff --git a/icons/closed.png b/icons/closed.png new file mode 100644 index 0000000..51c9110 Binary files /dev/null and b/icons/closed.png differ diff --git a/icons/codeberg.png b/icons/codeberg.png new file mode 100644 index 0000000..2f6c043 Binary files /dev/null and b/icons/codeberg.png differ diff --git a/icons/collection.png b/icons/collection.png new file mode 100644 index 0000000..18b51c1 Binary files /dev/null and b/icons/collection.png differ diff --git a/icons/configure_file.png b/icons/configure_file.png new file mode 100644 index 0000000..746beec Binary files /dev/null and b/icons/configure_file.png differ diff --git a/icons/copy_file.png b/icons/copy_file.png new file mode 100644 index 0000000..003e784 Binary files /dev/null and b/icons/copy_file.png differ diff --git a/icons/discord.png b/icons/discord.png new file mode 100644 index 0000000..c1165bf Binary files /dev/null and b/icons/discord.png differ diff --git a/icons/edit.png b/icons/edit.png new file mode 100644 index 0000000..6a514e1 Binary files /dev/null and b/icons/edit.png differ diff --git a/icons/edit_mode.png b/icons/edit_mode.png new file mode 100644 index 0000000..f4cb329 Binary files /dev/null and b/icons/edit_mode.png differ diff --git a/icons/element.png b/icons/element.png new file mode 100644 index 0000000..a7ef500 Binary files /dev/null and b/icons/element.png differ diff --git a/icons/event.png b/icons/event.png new file mode 100644 index 0000000..9eedef7 Binary files /dev/null and b/icons/event.png differ diff --git a/icons/export.png b/icons/export.png new file mode 100644 index 0000000..b62615d Binary files /dev/null and b/icons/export.png differ diff --git a/icons/file.png b/icons/file.png new file mode 100644 index 0000000..9e8b663 Binary files /dev/null and b/icons/file.png differ diff --git a/icons/file_link.png b/icons/file_link.png new file mode 100644 index 0000000..e2c0652 Binary files /dev/null and b/icons/file_link.png differ diff --git a/icons/folder.png b/icons/folder.png new file mode 100644 index 0000000..d0d7934 Binary files /dev/null and b/icons/folder.png differ diff --git a/icons/font.png b/icons/font.png new file mode 100644 index 0000000..f9bcbcf Binary files /dev/null and b/icons/font.png differ diff --git a/icons/frase.png b/icons/frase.png new file mode 100644 index 0000000..029f403 Binary files /dev/null and b/icons/frase.png differ diff --git a/icons/frase_new.png b/icons/frase_new.png new file mode 100644 index 0000000..e26177b Binary files /dev/null and b/icons/frase_new.png differ diff --git a/icons/github.png b/icons/github.png new file mode 100644 index 0000000..ca83769 Binary files /dev/null and b/icons/github.png differ diff --git a/icons/gitlab.png b/icons/gitlab.png new file mode 100644 index 0000000..ac88269 Binary files /dev/null and b/icons/gitlab.png differ diff --git a/icons/heart.png b/icons/heart.png new file mode 100644 index 0000000..8182b54 Binary files /dev/null and b/icons/heart.png differ diff --git a/icons/history.png b/icons/history.png new file mode 100644 index 0000000..645772f Binary files /dev/null and b/icons/history.png differ diff --git a/icons/idea.png b/icons/idea.png new file mode 100644 index 0000000..055ecb8 Binary files /dev/null and b/icons/idea.png differ diff --git a/icons/image.png b/icons/image.png new file mode 100644 index 0000000..cfb06ee Binary files /dev/null and b/icons/image.png differ diff --git a/icons/image_link.png b/icons/image_link.png new file mode 100644 index 0000000..f1a98a9 Binary files /dev/null and b/icons/image_link.png differ diff --git a/icons/image_new.png b/icons/image_new.png new file mode 100644 index 0000000..fa17084 Binary files /dev/null and b/icons/image_new.png differ diff --git a/icons/imdb.png b/icons/imdb.png new file mode 100644 index 0000000..a635838 Binary files /dev/null and b/icons/imdb.png differ diff --git a/icons/internet.png b/icons/internet.png new file mode 100644 index 0000000..ea9b6f6 Binary files /dev/null and b/icons/internet.png differ diff --git a/icons/internetarchive.png b/icons/internetarchive.png new file mode 100644 index 0000000..f524dbd Binary files /dev/null and b/icons/internetarchive.png differ diff --git a/icons/invidious.png b/icons/invidious.png new file mode 100644 index 0000000..30bd161 Binary files /dev/null and b/icons/invidious.png differ diff --git a/icons/lbc.png b/icons/lbc.png new file mode 100644 index 0000000..81167d9 Binary files /dev/null and b/icons/lbc.png differ diff --git a/icons/lbry.png b/icons/lbry.png new file mode 100644 index 0000000..2261ef6 Binary files /dev/null and b/icons/lbry.png differ diff --git a/icons/left.png b/icons/left.png new file mode 100644 index 0000000..9f7e831 Binary files /dev/null and b/icons/left.png differ diff --git a/icons/lemmy.png b/icons/lemmy.png new file mode 100644 index 0000000..9492d96 Binary files /dev/null and b/icons/lemmy.png differ diff --git a/icons/librapay.png b/icons/librapay.png new file mode 100644 index 0000000..898b0dd Binary files /dev/null and b/icons/librapay.png differ diff --git a/icons/linear.png b/icons/linear.png new file mode 100644 index 0000000..7effeec Binary files /dev/null and b/icons/linear.png differ diff --git a/icons/link.png b/icons/link.png new file mode 100644 index 0000000..24390db Binary files /dev/null and b/icons/link.png differ diff --git a/icons/link_configure.png b/icons/link_configure.png new file mode 100644 index 0000000..033e718 Binary files /dev/null and b/icons/link_configure.png differ diff --git a/icons/loc.png b/icons/loc.png new file mode 100644 index 0000000..538bbd2 Binary files /dev/null and b/icons/loc.png differ diff --git a/icons/mastodon.png b/icons/mastodon.png new file mode 100644 index 0000000..17126c3 Binary files /dev/null and b/icons/mastodon.png differ diff --git a/icons/mesh.png b/icons/mesh.png new file mode 100644 index 0000000..2919718 Binary files /dev/null and b/icons/mesh.png differ diff --git a/icons/moriasrace.png b/icons/moriasrace.png new file mode 100644 index 0000000..9ee1a71 Binary files /dev/null and b/icons/moriasrace.png differ diff --git a/icons/multiuser.png b/icons/multiuser.png new file mode 100644 index 0000000..63da5d4 Binary files /dev/null and b/icons/multiuser.png differ diff --git a/icons/mus.png b/icons/mus.png new file mode 100644 index 0000000..a13e46b Binary files /dev/null and b/icons/mus.png differ diff --git a/icons/new.png b/icons/new.png new file mode 100644 index 0000000..69dbfc7 Binary files /dev/null and b/icons/new.png differ diff --git a/icons/new_file.png b/icons/new_file.png new file mode 100644 index 0000000..791445f Binary files /dev/null and b/icons/new_file.png differ diff --git a/icons/node.png b/icons/node.png new file mode 100644 index 0000000..0d7bb66 Binary files /dev/null and b/icons/node.png differ diff --git a/icons/notabug.png b/icons/notabug.png new file mode 100644 index 0000000..930bf56 Binary files /dev/null and b/icons/notabug.png differ diff --git a/icons/obj.png b/icons/obj.png new file mode 100644 index 0000000..060c639 Binary files /dev/null and b/icons/obj.png differ diff --git a/icons/obj_link.png b/icons/obj_link.png new file mode 100644 index 0000000..6380f9b Binary files /dev/null and b/icons/obj_link.png differ diff --git a/icons/odysee.png b/icons/odysee.png new file mode 100644 index 0000000..a33b005 Binary files /dev/null and b/icons/odysee.png differ diff --git a/icons/ok.png b/icons/ok.png new file mode 100644 index 0000000..e753161 Binary files /dev/null and b/icons/ok.png differ diff --git a/icons/open.png b/icons/open.png new file mode 100644 index 0000000..ec67df6 Binary files /dev/null and b/icons/open.png differ diff --git a/icons/opengl.png b/icons/opengl.png new file mode 100644 index 0000000..54effcc Binary files /dev/null and b/icons/opengl.png differ diff --git a/icons/override.png b/icons/override.png new file mode 100644 index 0000000..2778417 Binary files /dev/null and b/icons/override.png differ diff --git a/icons/patreon.png b/icons/patreon.png new file mode 100644 index 0000000..6f57238 Binary files /dev/null and b/icons/patreon.png differ diff --git a/icons/peertube.png b/icons/peertube.png new file mode 100644 index 0000000..8257cdf Binary files /dev/null and b/icons/peertube.png differ diff --git a/icons/pin.png b/icons/pin.png new file mode 100644 index 0000000..7723091 Binary files /dev/null and b/icons/pin.png differ diff --git a/icons/pixelfed.png b/icons/pixelfed.png new file mode 100644 index 0000000..f3e87bd Binary files /dev/null and b/icons/pixelfed.png differ diff --git a/icons/proxy.png b/icons/proxy.png new file mode 100644 index 0000000..16c40cd Binary files /dev/null and b/icons/proxy.png differ diff --git a/icons/pulse.png b/icons/pulse.png new file mode 100644 index 0000000..2b993f7 Binary files /dev/null and b/icons/pulse.png differ diff --git a/icons/question.png b/icons/question.png new file mode 100644 index 0000000..b5409a9 Binary files /dev/null and b/icons/question.png differ diff --git a/icons/render.png b/icons/render.png new file mode 100644 index 0000000..6274bcc Binary files /dev/null and b/icons/render.png differ diff --git a/icons/rendered.png b/icons/rendered.png new file mode 100644 index 0000000..b570303 Binary files /dev/null and b/icons/rendered.png differ diff --git a/icons/rig.png b/icons/rig.png new file mode 100644 index 0000000..9a93528 Binary files /dev/null and b/icons/rig.png differ diff --git a/icons/right.png b/icons/right.png new file mode 100644 index 0000000..bf81655 Binary files /dev/null and b/icons/right.png differ diff --git a/icons/rocketchat.png b/icons/rocketchat.png new file mode 100644 index 0000000..9564110 Binary files /dev/null and b/icons/rocketchat.png differ diff --git a/icons/rss.png b/icons/rss.png new file mode 100644 index 0000000..efc671d Binary files /dev/null and b/icons/rss.png differ diff --git a/icons/scene.png b/icons/scene.png new file mode 100644 index 0000000..b6b8d67 Binary files /dev/null and b/icons/scene.png differ diff --git a/icons/scene_new.png b/icons/scene_new.png new file mode 100644 index 0000000..360d0a2 Binary files /dev/null and b/icons/scene_new.png differ diff --git a/icons/schedule.png b/icons/schedule.png new file mode 100644 index 0000000..8df6a55 Binary files /dev/null and b/icons/schedule.png differ diff --git a/icons/search.png b/icons/search.png new file mode 100644 index 0000000..84188ec Binary files /dev/null and b/icons/search.png differ diff --git a/icons/search_file.png b/icons/search_file.png new file mode 100644 index 0000000..bc2ee39 Binary files /dev/null and b/icons/search_file.png differ diff --git a/icons/send.png b/icons/send.png new file mode 100644 index 0000000..af7b762 Binary files /dev/null and b/icons/send.png differ diff --git a/icons/server.png b/icons/server.png new file mode 100644 index 0000000..e068468 Binary files /dev/null and b/icons/server.png differ diff --git a/icons/server_close.png b/icons/server_close.png new file mode 100644 index 0000000..eb73d4a Binary files /dev/null and b/icons/server_close.png differ diff --git a/icons/server_new.png b/icons/server_new.png new file mode 100644 index 0000000..425e283 Binary files /dev/null and b/icons/server_new.png differ diff --git a/icons/settings.png b/icons/settings.png new file mode 100644 index 0000000..12624e2 Binary files /dev/null and b/icons/settings.png differ diff --git a/icons/shot.png b/icons/shot.png new file mode 100644 index 0000000..e953e1e Binary files /dev/null and b/icons/shot.png differ diff --git a/icons/shot_new.png b/icons/shot_new.png new file mode 100644 index 0000000..afa8c8e Binary files /dev/null and b/icons/shot_new.png differ diff --git a/icons/star.png b/icons/star.png new file mode 100644 index 0000000..126d3eb Binary files /dev/null and b/icons/star.png differ diff --git a/icons/stkaddons.png b/icons/stkaddons.png new file mode 100644 index 0000000..bfbf526 Binary files /dev/null and b/icons/stkaddons.png differ diff --git a/icons/stop.png b/icons/stop.png new file mode 100644 index 0000000..25d9c5c Binary files /dev/null and b/icons/stop.png differ diff --git a/icons/storyboard.png b/icons/storyboard.png new file mode 100644 index 0000000..154a6ab Binary files /dev/null and b/icons/storyboard.png differ diff --git a/icons/test_rnd.png b/icons/test_rnd.png new file mode 100644 index 0000000..462dcc5 Binary files /dev/null and b/icons/test_rnd.png differ diff --git a/icons/texture.png b/icons/texture.png new file mode 100644 index 0000000..bbd294c Binary files /dev/null and b/icons/texture.png differ diff --git a/icons/theme.png b/icons/theme.png new file mode 100644 index 0000000..5fad39c Binary files /dev/null and b/icons/theme.png differ diff --git a/icons/unchecked.png b/icons/unchecked.png new file mode 100644 index 0000000..79070ba Binary files /dev/null and b/icons/unchecked.png differ diff --git a/icons/update.png b/icons/update.png new file mode 100644 index 0000000..f5d3867 Binary files /dev/null and b/icons/update.png differ diff --git a/icons/user.png b/icons/user.png new file mode 100644 index 0000000..53c3437 Binary files /dev/null and b/icons/user.png differ diff --git a/icons/veh.png b/icons/veh.png new file mode 100644 index 0000000..61f6f55 Binary files /dev/null and b/icons/veh.png differ diff --git a/icons/video.png b/icons/video.png new file mode 100644 index 0000000..b6389bf Binary files /dev/null and b/icons/video.png differ diff --git a/icons/vse.png b/icons/vse.png new file mode 100644 index 0000000..6059ca8 Binary files /dev/null and b/icons/vse.png differ diff --git a/icons/youtube.png b/icons/youtube.png new file mode 100644 index 0000000..672958d Binary files /dev/null and b/icons/youtube.png differ diff --git a/modules/Common.py b/modules/Common.py new file mode 100644 index 0000000..9321e78 --- /dev/null +++ b/modules/Common.py @@ -0,0 +1,63 @@ +# AGPL 3 or any later version +# (C) J.Y.Amihud ( Blender Dumbass ) + +import random + +clr = { + "norm":"\033[00m", # Reset to normal + "bold":"\033[01m", # Bold Text + "ital":"\033[03m", # Italic Text + "undr":"\033[04m", # Underlined + "blnk":"\033[05m", # Blinking + + # Text + "tdbl":"\033[30m", # Dark Black + "tdrd":"\033[31m", # Dark Red + "tdgr":"\033[32m", # Dark Green + "tdyl":"\033[33m", # Dark Yellow + "tdbu":"\033[34m", # Dark Blue + "tdma":"\033[35m", # Dark Magenta + "tdcy":"\033[36m", # Dark Cyan + "tdwh":"\033[37m", # Dark White + + "tbbl":"\033[90m", # Bright Black + "tbrd":"\033[91m", # Bright Red + "tbgr":"\033[92m", # Bright Green + "tbyl":"\033[93m", # Bright Yellow + "tbbu":"\033[94m", # Bright Blue + "tbma":"\033[95m", # Bright Magenta + "tbcy":"\033[96m", # Bright Cyan + "tbwh":"\033[97m", # Bright White + # Background + "bdbl":"\033[40m", # Dark Black + "bdrd":"\033[41m", # Dark Red + "bdgr":"\033[42m", # Dark Green + "bdyl":"\033[43m", # Dark Yellow + "bdbu":"\033[44m", # Dark Blue + "bdma":"\033[45m", # Dark Magenta + "bdcy":"\033[46m", # Dark Cyan + "bdwh":"\033[47m", # Dark White + + "bbbl":"\033[100m", # Bright Black + "bbrd":"\033[101m", # Bright Red + "bbgr":"\033[102m", # Bright Green + "bbyl":"\033[103m", # Bright Yellow + "bbbu":"\033[104m", # Bright Blue + "bbma":"\033[105m", # Bright Magenta + "bbcy":"\033[106m", # Bright Cyan + "bbwh":"\033[108m" # Bright White +} + +def Simplify(text): + + good = "qwertyuiopasdfghjklzxcvbnm.1234567890-_:" + + text = text.lower() + ntext = "" + for i in text: + if i in good: + ntext = ntext + i + else: + ntext = ntext + "_" + + return ntext diff --git a/modules/Help.py b/modules/Help.py new file mode 100644 index 0000000..bd5cea9 --- /dev/null +++ b/modules/Help.py @@ -0,0 +1,22 @@ +# AGPL 3 or any later version +# (C) J.Y.Amihud ( Blender Dumbass ) + +from modules.Common import * + +def Help(): + print(clr["bold"]+" BDServer Help Page"+clr["norm"]) + print() + print(clr["tdyl"]+"--help"+clr["norm"]+" - Prints this Help Page.") + print(clr["tdyl"]+"--run"+clr["norm"]+ " - Run the server.") + print(clr["tdyl"]+"--set"+clr["norm"]+ " - Use for changing settings.") + +def Set(): + + print(clr["bold"]+" BDServer --set Help Page"+clr["norm"]) + print() + print(" --set is used for setting up server configurations.") + print() + print(clr["tdyl"]+"--title"+clr["norm"]+" - Set title of the website.") + print(clr["tdyl"]+"--port"+clr["norm"]+" - Set port where to run the website.") + print(clr["tdyl"]+"--add_tab"+clr["norm"]+" - Adds a category of articles.") + print(clr["tdyl"]+"--edit_tab"+clr["norm"]+" - Edit the config of a category.") diff --git a/modules/Render.py b/modules/Render.py new file mode 100644 index 0000000..ff13c5d --- /dev/null +++ b/modules/Render.py @@ -0,0 +1,80 @@ +# AGPL 3 or any later version +# (C) J.Y.Amihud ( Blender Dumbass ) + +from modules import Set + +def guess_type(path): + + if "/json/" in path or ".json" in path: + return "application/json" + if "/css" in path or ".css" in path: + return "text/css" + if "/icon" in path or path.endswith(".png"): + return "image/png" + if path.endswith("jpg"): + return "image/jpg" + + return "text/html" + +def headers(server, code): + + server.send_response(code) + server.send_header("Content-type", guess_type(server.path)) + server.end_headers() + +def head(title="", description="", image="", config={}): + + if image.startswith("/"): image = config.get("url","")+image + + html = """ + + + + + + + """+title+""" + + + + + + + + + + + + + + """ + + return html + +def send(server, html, code): + + # Add headers + headers(server, code) + server.wfile.write(html.encode("utf-8")) + + +def MainPage(server): + + # Reading config + config = Set.Load() + + # Generating + html = head(title = config.get("title", "Website"), + description = config.get("description", "Description"), + config = config + ) + + + html = html + "hello world" + + send(server, html, 200) + + + diff --git a/modules/Run.py b/modules/Run.py new file mode 100644 index 0000000..8211f82 --- /dev/null +++ b/modules/Run.py @@ -0,0 +1,52 @@ +# AGPL 3 or any later version +# (C) J.Y.Amihud ( Blender Dumbass ) + +from http.server import BaseHTTPRequestHandler, HTTPServer +from subprocess import * +import json +import os +import time +import random +import datetime +import hashlib +import urllib.request +import urllib.parse +import subprocess +import os + +from modules import Set +from modules import Render +from modules.Common import * + +class handler(BaseHTTPRequestHandler): + + def do_GET(self): + + self.path = self.path.replace("/..", "/") + self.path = self.path.replace("%27", "'") + + if self.path == "/": + Render.MainPage(self) + + elif self.path.startswith("/pictures/"): + + folder = Set.Folder() + f = open(folder+self.path, "rb") + f = f.read() + Render.headers(self, 200) + self.wfile.write(f) + + elif self.path == "/css": + + cssfile = open("default.css", "rb") + cssfile = cssfile.read() + Render.headers(self, 200) + self.wfile.write(cssfile) + +config = Set.Load() +PORT = config.get("port", 8080) +serve = HTTPServer(("", PORT), handler) +try: + serve.serve_forever() +except KeyboardInterrupt: + print("\nServer Stopped!") diff --git a/modules/Set.py b/modules/Set.py new file mode 100644 index 0000000..4cc1250 --- /dev/null +++ b/modules/Set.py @@ -0,0 +1,137 @@ +# AGPL 3 or any later version +# (C) J.Y.Amihud ( Blender Dumbass ) + +from modules.Common import * + +import os +import sys +import json + +def Folder(): + + conf = "BDServer" + + try: + data_dir = os.environ["XDG_DATA_HOME"] + "/" + conf + except: + data_dir = os.path.expanduser("~/.local/share/"+ conf) + + try: + os.makedirs(data_dir) + except: + pass + + return data_dir + +def Load(): + + try: + with open(Folder()+"/config.json") as o: + data = json.load(o) + except Exception as e: + data = {} + print(clr["bold"]+clr["tdyl"]+"Error:"+clr["norm"]+" Config doesn't exist! Making new config.") + + return data + +def Save(data): + + try: + with open(Folder()+"/config.json", "w") as save: + json.dump(data, save, indent=4, sort_keys=True) + + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Cannot save config!", e) + +def Set(): + + if len(sys.argv) < 3: + from modules import Help + Help.Set() + + if "--title" in sys.argv: + try: + title = sys.argv[ sys.argv.index("--title") + 1] + if "--" in title: 1/0 # Failing this for the error message. + Title(title) + + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Title Wasn't Specified!") + + if "--port" in sys.argv: + try: + port = int(sys.argv[ sys.argv.index("--port") + 1]) + Port(port) + + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Port Wasn't Specified Correctly!", e) + + + if "--add_tab" in sys.argv: + try: + tab = sys.argv[ sys.argv.index("--add_tab") + 1] + if "--" in tab: 1/0 # Failing this for the error message. + AddTab(tab) + + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Tab Name Wasn't Specified!") + + if "--edit_tab" in sys.argv: + try: + tab = sys.argv[ sys.argv.index("--edit_tab") + 1] + if "--" in tab: 1/0 # Failing this for the error message. + EditTab(tab) + + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Tab Name Wasn't Specified!") + +def Title(title): + + data = Load() + data["title"] = title + + Save(data) + + print(clr["bold"]+clr["tbyl"]+title+clr["norm"]+" is set as title.") + +def Port(port): + + data = Load() + data["port"] = port + + Save(data) + + print(clr["bold"]+clr["tbyl"]+str(port)+clr["norm"]+" is set as the website's port.") + +def AddTab(tab): + + # Tab's Folder + + tabsFolder = Folder()+"/tabs/"+Simplify(tab) + try: os.makedirs(tabsFolder) + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Could not add tab!", e) + return + + # Tab's Config File + data = {"title":tab, + "icon":"folder"} + try: + with open(tabsFolder+"/config.json", "w") as save: + json.dump(data, save, indent=4, sort_keys=True) + + except Exception as e: + print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Cannot save tab's config!", e) + return + + print(clr["bold"]+clr["tbyl"]+tab+clr["norm"]+" tab is added as "+clr["bold"]+"/"+Simplify(tab)+clr["norm"]) + +def EditTab(tab): + + tabsFolder = Folder()+"/tabs/"+Simplify(tab) + os.system("nano "+tabsFolder+"/config.json") + + + + + diff --git a/run.py b/run.py new file mode 100644 index 0000000..f9d6161 --- /dev/null +++ b/run.py @@ -0,0 +1,15 @@ +# AGPL 3 or any later version +# (C) J.Y.Amihud ( Blender Dumbass ) + +# Basic sys to get through to different modules +import sys +if len(sys.argv) < 2 or "--help" in sys.argv: + from modules import Help + Help.Help() + +elif "--set" in sys.argv: + from modules import Set + Set.Set() + +elif "--run" in sys.argv: + from modules import Run