{{ post.score }}
- -- r/{{ post.community }} - • - Posted by - u/{{ post.author }} - {{ post.time }} -
-From 7e79a0b71259c08177af93d30e26d7a262a41c7c Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sun, 22 Nov 2020 16:29:05 -0800 Subject: [PATCH] Create Base Template --- static/style.css | 26 ++++++++ templates/base.html | 34 +++++++++++ templates/error.html | 24 ++------ templates/popular.html | 104 +++++++++++++------------------ templates/post.html | 125 +++++++++++++++++-------------------- templates/subreddit.html | 129 ++++++++++++++++++--------------------- templates/user.html | 114 ++++++++++++++++------------------ 7 files changed, 276 insertions(+), 280 deletions(-) create mode 100644 templates/base.html diff --git a/static/style.css b/static/style.css index 96e48dd..bbf2444 100644 --- a/static/style.css +++ b/static/style.css @@ -22,6 +22,10 @@ header { font-size: 20px; } +#lib, #github { + color: white; +} + main { max-width: 750px; margin: 0 auto; @@ -83,6 +87,10 @@ span { padding: 20px; } +#stats { + margin-top: 10px; +} + /* User */ .user { @@ -124,6 +132,11 @@ span { cursor: pointer; } +#sort > div.selected { + background: aqua; + color: black; +} + #sort > div:hover { background: #222; } @@ -136,6 +149,15 @@ span { display: flex; } +.post.highlighted { + border: 2px solid #555; + background: #222; +} + +.post.highlighted > .post_left { + background: #333; +} + .post:hover { background: #222; } @@ -158,6 +180,10 @@ span { padding: 5px; } +.post_right > p > span, .comment_right > p > span { + float: right; +} + .post_title { font-size: 20px; } diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..7e44e79 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,34 @@ + + +
+ {% block head %} +- r/{{ post.community }} - • - Posted by - u/{{ post.author }} - {{ post.time }} -
-+ r/{{ post.community }} + • + Posted by + u/{{ post.author }} + {{ post.time }} +
+- r/{{ post.community }} - • - Posted by - u/{{ post.author }} - {{ post.time }} -
-+ r/{{ post.community }} + • + Posted by + u/{{ post.author }} + {{ post.time }} +
++ Posted by u/{{ comment.author }} + {{ comment.time }} +
+{{ sub.description }}
-{{ sub.description }}
+- r/{{ sub.name }} - • - Posted by - u/{{ post.author }} - {{ post.time }} -
-+ r/{{ sub.name }} + • + Posted by + u/{{ post.author }} + {{ post.time }} +
+Karma: {{ user.karma }} | Description: "{{ user.description }}"
-Karma: {{ user.karma }} | Description: "{{ user.description }}"
- r/{{ post.community }} - • - Posted by - u/{{ post.author }} - {{ post.time }} -
-+ r/{{ post.community }} + • + Posted by + u/{{ post.author }} + {{ post.time }} +
+
{{ comment.score }}
- -- Posted by u/{{ comment.author }} - {{ comment.time }} -
-{{ comment.body }}
-