diff --git a/api/API.md b/api/API.md index 0d107f6..4a67ce0 100644 --- a/api/API.md +++ b/api/API.md @@ -3,7 +3,7 @@ ## GET vs. POST -Some parts of API accepts both GET and POST type requests. We recommend you to prefer second option, when it's possible, just because it is more anonymous, when used with SSL or Tor. However, authentification can be performed **only** with POST. +Some parts of API accepts both GET and POST type requests. We recommend you to prefer second option, when it's possible, just because it is more private, when used with SSL or Tor. However, authentification and authenticated requests can be performed **only** with POST. ## Naming conventions @@ -13,5 +13,25 @@ Files starting from "_" ("_example.php") are intended for internal use only. ## Version 1 -- stats.php (GET/POST): all general, public and private statistics about this instance -- post/create.php (POST): create new post with image \ No newline at end of file +- stats.php (GET/POST): all general statistics about this instance + +- admin/ (POST): private statistics about this instance +- admin/dbview.php (POST): manage databases +- admin/nukelock.php (POST): emergency "red button" to lock all operations to read-only mode + +- user/ (GET/POST): get user information by id +- user/list.php (GET/POST): get list of all users +- user/create.php (POST): create new user account +- user/edit.php (POST): edit user profile +- user/delete.php (POST): delete user account + +- post/ (GET/POST): get single post by id +- post/list.php (GET/POST): get list of posts from range +- post/create.php (POST): create new post with image +- post/edit.php (POST): edit tags of post +- post/delete.php (POST): delete post + +- post/comments/ (GET/POST): show all comments from post by id +- post/comments/create.php (POST): create new comment +- post/comments/edit.php (POST): edit existing comment +- post/comments/delete.php (POST): remove existing comment \ No newline at end of file diff --git a/front/styles/bg_pattern_peace.png b/front/styles/bg_pattern_peace.png new file mode 100644 index 0000000..1ab9550 Binary files /dev/null and b/front/styles/bg_pattern_peace.png differ diff --git a/front/styles/bg_pattern_peace_old.png b/front/styles/bg_pattern_peace_old.png new file mode 100644 index 0000000..9a6c9df Binary files /dev/null and b/front/styles/bg_pattern_peace_old.png differ diff --git a/front/styles/default.css b/front/styles/default.css index 1b33066..082fca8 100644 --- a/front/styles/default.css +++ b/front/styles/default.css @@ -1,47 +1,51 @@ -body,div,h1,h2,h3,h4,h5,h6,p,ul,li,dd,dt { +body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt { font-family: Verdana, Sans-Serif; +} + +body, div, p, a { padding: 0; margin: 0; } +h1, h2, h3, h4, h5, h6, p, a { + color: #00c07c; + text-decoration: none; +} + +a { + color: #009049; +} + body { - background-color: #049e59; - background-repeat: no-repeat; - background-attachment: fixed; - background-position: 50% 0%; + background-color: #094e59; + background-image: url("./bg_pattern_peace.png"); + background-repeat: repeat; } -p, a { - color: #009409; +div.wrapper { + text-align: center; + margin: auto; } -/*#page { - background: none !important; А это на кой??? +/*div.wrapper img { + width: 60%; + height: 60%; }*/ -#links { +h1.title { + font-size: 4em; + padding: 0; + margin: 0; +} + +div.nav { margin-bottom: 0.25rem; } -#links > a { +div.nav > a { padding: 0.25rem 0.25rem; } -div#a-home { - position: absolute; - text-align: center; - top: 28em; - left: 0; - right: 0; -} - -.mascotbox { - z-index: 1; - overflow: hidden; - position: relative; - - background-repeat: no-repeat; - background-attachment: fixed; - background-position: 50% 0; +div.nibbabox { margin: 10px auto; padding: 2px 0; width: 480px; @@ -51,37 +55,16 @@ div#a-home { text-shadow: 0 0 2px black, 0 0 6px black; } -.mascotbox:before { - z-index: -1; - content: ""; - position: absolute; - width: 200vw; - height: 200vh; - top: -100px; - left: -100px; - - background-image: inherit; - background-color: inherit; - background-repeat: inherit; - background-attachment: inherit; - background-position: inherit; - filter: blur(8px); -} - -#searchbox { +div.searchbox { padding-bottom: 5px; } -.news-excerpt { - padding: 5px 1em 0 1em; -} - -#searchbox3, #news-excerpt-box .previous-news-link { +div.notsearchbox { font-size: 80%; } @media only screen and (max-height: 600px) { - div#a-home { + div.wrapper { top: 25vh; } } \ No newline at end of file diff --git a/index.html b/index.html index 5ebe2b1..564064f 100644 --- a/index.html +++ b/index.html @@ -5,66 +5,55 @@ - + + - + -
-
- Serving 3,451,953 posts
- Takedown Policy and Process |
- Contact Us |
- Advertising |
- Terms of Service |
- Privacy
-
+ Serving 3,451,953 posts
+ Takedown Policy and Process |
+ Contact Us |
+ Advertising |
+ Terms of Service |
+ Privacy
+