diff --git a/authenticate/templates/account.html b/authenticate/templates/account.html index af9e784..cd8c6b6 100644 --- a/authenticate/templates/account.html +++ b/authenticate/templates/account.html @@ -3,12 +3,16 @@ {% block content %}
-

@{{ profileUser.username }}'s Profile

+

User's Profile

-
+
-

Email: +

Username: + {{ profileUser.username }} +

+ +

Email: {% if profileUser.email %} {{ profileUser.email }} {% else %} @@ -16,6 +20,8 @@

@{{ profileUser.username }}'s Profile

{% endif %}

+
+

Joined on: {{ profileUser.date_joined|date:"F j, Y" }}

{% if user == profileUser %} @@ -27,146 +33,68 @@

@{{ profileUser.username }}'s Profile

-

{{ profileUser.username }}'s Posts

- {% if posts %} -
- {% for post in posts %} -
- - - - {% if request.user == post.author or request.user.is_staff %} -
- {% csrf_token %} - - -
- {% endif %} - -
{{ post.title }}
- - Posted by @{{ post.author }} on {{ post.date|date:"F j, Y, g:i a" }} - -
- {{ post.body }} -
- See more... - - -
- - - -
- -
- {% endfor %} -
- {% else %} -
- {% if user == profileUser %} - You haven't posted anything yet. - {% else %} - {{ profileUser.username }} hasn't posted anything yet. - {% endif %} +

User's Details

+
+
+
+

Posts

+ 0 +
+
+

Votes

+ 0 +
+
+

Bookmarks

+ 0 +
+
+

Comments

+ 0 +
- {% endif %} +
+
{% endblock %} {% block extra_scripts %} {% endblock %} \ No newline at end of file diff --git a/authenticate/templates/accountsList.html b/authenticate/templates/accountsList.html index ac1db7c..cbfb5c9 100644 --- a/authenticate/templates/accountsList.html +++ b/authenticate/templates/accountsList.html @@ -110,12 +110,28 @@

Users

{% for user in page_obj %}
-
@{{ user.username }}
- Joined on {{ user.date_joined|date:"M d, Y" }} - {% if user.is_staff %}- Administrator{% endif %} +
+

+ Joined on {{ user.date_joined|date:"M d, Y" }} + {% if user.is_staff %}- Administrator{% endif %} +

+ +
+ +
+ +
+
{% if user.profile.bio %}
{{ user.profile.bio }}
@@ -224,10 +240,16 @@
@{{ user.username }}
{% endif %}
@@ -245,6 +232,58 @@ white-space: nowrap; margin-left: 0.3rem; } + + .mt-p-p-1 { + margin-top: .2rem; + margin-bottom: .2rem; + } + + .post-card-item-1 { + padding: .67rem; + border: 1px solid rgba(159, 159, 159, 0.692); + border-radius: .7rem; + margin-bottom: 1.3rem; + } + + .gla-p-p-1 { + display: none; + position: fixed; + align-items: center; + justify-content: center; + text-align: center; + top: 5rem; + left: 50%; + transform: translateX(-50%); + margin-right: .15rem; + margin-left: .15rem; + box-shadow: 0 0 15px rgba(255, 177, 74, 0.799); + z-index: 999999999999; + /* animation: notificationShow .5s ease forwards; */ + } + + @keyframes notificationShow { + 0% { + transform: translate(-50%, -10rem); + } + 46% { + transform: translate(-50%, 2rem); + } + 100% { + transform: translate(-50%, 0rem); + } + } + + @keyframes notificationHide { + 0% { + transform: translate(-50%, 0rem); + } + 46% { + transform: translate(-50%, 2rem); + } + 100% { + transform: translate(-50%, -15rem); + } + } .nav-item-link { position: relative; @@ -287,6 +326,39 @@ transform: translateY(0rem) scale(0.99); backdrop-filter: blur(var(--blur-link-all)); } + + .info-div-p-1 { + display: flex; + align-items: center; + justify-content: center; + text-align: center; + word-break: break-word; + overflow-wrap: break-word; + position: relative; + font-size: 1.15rem; + color: rgba(160, 160, 160, 0.662); + width: 100%; + margin-bottom: 1.7rem; + } + + .showall-p-1 { + border: 2px dashed rgba(137, 137, 137, 0.566); + border-radius: 10px !important; + box-shadow: 0 0 20px rgba(154, 154, 154, 0.13); + padding-left: .5rem; + padding-top: .13rem; + padding-bottom: .13rem; + padding-right: .1rem; + transition: all .3s ease; + } + + .showall-p-1:hover { + box-shadow: .15rem .15rem 9px rgba(171, 171, 171, 0.598); + } + + .showall-p-1:active { + box-shadow: .1rem .1rem 3px rgba(171, 171, 171, 0.598); + } .background-filter-1 { display: block; @@ -321,23 +393,6 @@ z-index: -1; } - .background-filter-3 { - display: block; - position: fixed; - inset: 0; - width: 100%; - height: 100%; - border: none; - filter: blur(6px); - border-radius: none; - background-image: url("{% static 'lightTKB.jpg' %}"); - background-position: center; - background-size: cover; - background-repeat: no-repeat; - transition: all .57s ease; - z-index: -1; - } - .rsplit-1 { margin-right: 10rem; margin-bottom: .1rem; @@ -523,10 +578,41 @@ } .aa-1 { + white-space: nowrap; + word-wrap: none; border-radius: 9px !important; align-items: center; justify-content: center; overflow: hidden; + margin-bottom: .3rem; + } + + .ab-1 { + display: flex; + flex-direction: row; + position: relative; + white-space: nowrap; + word-wrap: none; + border-radius: 9px !important; + align-items: center; + justify-content: start; + overflow: hidden; + margin-bottom: .3rem; + padding-right: 1rem; + } + + .dv-svg-p-p-1 { + display: flex; + flex-direction: row; + position: absolute; + inset: 0; + align-items: center; + justify-content: center; + text-align: center; + border-right: 1.46px dashed rgba(164, 164, 164, 0.594); + width: 1.4rem; + height: 100%; + margin-right: .2rem; } .show { @@ -887,6 +973,12 @@ transition: all .23s ease; } + .flex-start-g-1 { + display: flex; + align-items: center; + justify-content: space-between; + } + .hover-anim-1 { box-shadow: 0 0 .123rem rgba(147, 147, 147, 0.219); transition: all .23s ease; @@ -926,6 +1018,110 @@ height: 3rem; } + .card-usr-deltail { + display: flex !important; + flex-wrap: wrap; + overflow: hidden; + gap: 4rem; + justify-content: center; + align-items: center; + box-shadow: 0 0 1rem rgba(156, 156, 156, .2); + } + + .h2-p-p-1-v { + font-size: 1.6rem; + white-space: nowrap; + } + + .no-wrap-p-1 { + font-family: cursive; + white-space: nowrap; + word-break: keep-all; + } + + .h2-post { + color: rgb(10, 137, 227); + } + + .h2-vote { + color: rgb(137, 227, 10); + } + + .h2-dislike { + color: rgb(227, 108, 10); + } + + .h2-bookmark { + color: rgb(227, 209, 10); + } + + .h2-comment { + color: rgb(126, 10, 227); + } + + .card-p-p-1 { + display: flex; + flex-direction: column; + position: relative; + align-items: center; + justify-content: center; + text-align: center; + border: 1px solid rgba(156, 156, 156, 0.629); + border-radius: 10px; + overflow: hidden; + background-color: rgba(255, 255, 255, 0.1); + width: 10rem; + height: 10rem; + box-shadow: 0 0 10px rgba(156, 156, 156, .2); + transition: all .35s ease; + } + + .card-p-p-1:hover { + transform: scale(1.03); + box-shadow: 0 0 20px rgba(156, 156, 156, .7); + } + + .close-notify-btn { + display: flex; + position: absolute; + align-items: center; + justify-content: center; + text-align: center; + border-radius: 50%; + } + + /* nút đóng */ + #notifyDiv .notify-close { + display: flex; + align-items: center; + justify-content: center; + text-align: center; + position: absolute; + top: -1.2rem; + right: -.9rem; + border: none; + background: rgba(255, 204, 0, 0.29); + color: #fff; + font-size: 1.5rem; + width: 32px !important; + height: 32px !important; + cursor: pointer; + border-radius: 50%; + box-shadow: 0 0 .2rem rgba(158, 92, 0, 0.615); + transition: all .3s ease; + } + + /* hover */ + #notifyDiv .notify-close:hover { + background: rgba(160, 77, 0, 0.403); + } + + /* active (khi bấm giữ) */ + #notifyDiv .notify-close:active { + background: rgba(171, 97, 0, 0.555); + transform: scale(0.97); + } + @keyframes slideIn2 { from { transform: translateY(-3rem); } to { transform: translateY(0rem); } @@ -941,7 +1137,7 @@ #title-tkb { font-size: 2rem; - color: rgba(35, 35, 35, 0.874); + /* color: rgba(35, 35, 35, 0.874); */ /* background-color: rgba(164, 176, 174, 0.689); */ white-space: nowrap; transform: all .23s ease; @@ -1013,6 +1209,7 @@ +