From d5ded18dbac4329fe0061420aa9030ed7481f4f5 Mon Sep 17 00:00:00 2001 From: RuikangRPI Date: Fri, 3 Nov 2023 12:32:40 -0400 Subject: [PATCH] feat: rotating profile dropdown - added script to _base.html - added profile dropdown - need to add on hover effects for the icons --- .../dropdown_profile/dropdown_profile.html | 156 ++++++++++++++++++ .../dropdown_profile/dropdown_profile.py | 14 ++ .../dropdown_profile/example/.DS_Store | Bin 0 -> 6148 bytes .../dropdown_profile/example/index.html | 89 +++++----- ACMAS/app/ACMAS_Web/templates/_base.html | 8 +- 5 files changed, 221 insertions(+), 46 deletions(-) create mode 100644 ACMAS/app/ACMAS_Web/components/dropdown_profile/example/.DS_Store diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html index e69de29..a75a7c0 100644 --- a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html +++ b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.html @@ -0,0 +1,156 @@ +{% load component_tags %} + + + +
+ +
+ + \ No newline at end of file diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py index e69de29..2704803 100644 --- a/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py +++ b/ACMAS/app/ACMAS_Web/components/dropdown_profile/dropdown_profile.py @@ -0,0 +1,14 @@ +from django_components import component + + +@component.register("dropdown_profile") +class dropdown_profile(component.Component): + template_name = "dropdown_profile/dropdown_profile.html" + + + +# {% component "dropdown_profile" profile_icon="" %} +# + +# NOTE need to load following line at the top of component's html to do nested components +# {% load component_tags %} \ No newline at end of file diff --git a/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/.DS_Store b/ACMAS/app/ACMAS_Web/components/dropdown_profile/example/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..870a976e630b6653438387dfb4541f7d63191a23 GIT binary patch literal 6148 zcmeH~yH3O~5Jm6676FFfyEd@0NE!u|!D9aWL5_I`Fz6T{4I>_rWbRM-N65K;D3M}xxA3env9n04I<=h5W#L*5=a6` zAPFRaA0WUpTdg^A%{mDrfh6!rK=+5jqFO^cSKB&RSqea%aM+A(y)J7^39X@>D`#lp zp;Ql*NHN62IbOoAhIXzV4vFML;>jP$i`dh-eld4Qb Pricing -
  • -
  • +
    +
    +
  • diff --git a/ACMAS/app/ACMAS_Web/templates/_base.html b/ACMAS/app/ACMAS_Web/templates/_base.html index ff2e031..4ed8324 100644 --- a/ACMAS/app/ACMAS_Web/templates/_base.html +++ b/ACMAS/app/ACMAS_Web/templates/_base.html @@ -287,14 +287,16 @@ {% block user %}
  • Logout
  • - +
  • {{ user.username }}
  • + +
  • {% component "dropdown_profile" %}
  • {% endblock %} {% else %} {% block anon %}
  • Register
  • - +
  • Login
  • {% endblock %} {% endif %} @@ -322,6 +324,8 @@ /svg> --> + + {% endblock body %}