From 7618dc48618c9f1b516bfbad98681b5f75e13cb3 Mon Sep 17 00:00:00 2001 From: Daniel Dickison Date: Mon, 29 Jul 2024 10:02:41 -0400 Subject: [PATCH] Minimal styling for heya page --- public/scss/base.scss | 1 + public/scss/heya.scss | 20 ++++++++++++++++ templates/base.html | 14 +++++------ templates/heya.html | 55 +++++++++++++++++++++++-------------------- 4 files changed, 58 insertions(+), 32 deletions(-) create mode 100644 public/scss/heya.scss diff --git a/public/scss/base.scss b/public/scss/base.scss index 524f15c..b059a38 100644 --- a/public/scss/base.scss +++ b/public/scss/base.scss @@ -163,6 +163,7 @@ section { a { color: inherit; font-weight: 400; + white-space: nowrap; } a.logo { diff --git a/public/scss/heya.scss b/public/scss/heya.scss new file mode 100644 index 0000000..4c9e4d6 --- /dev/null +++ b/public/scss/heya.scss @@ -0,0 +1,20 @@ +#p-heya { + > h2 { + text-align: left; + } + + section { + background: var(--color-light-yellow-bg); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); + -webkit-backdrop-filter: blur(3px); + backdrop-filter: blur(3px); + } + + form.expel { + display: inline; + } +} + +#p-heya-list { + +} diff --git a/templates/base.html b/templates/base.html index b6ad6c0..1aa405c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,13 +38,13 @@ {%- when Some with (player) -%} {{player.render().unwrap()|safe}} -
  • profile
  • -
  • settings
  • -
  • log out
  • +
  • Profile
  • +
  • Settings
  • +
  • Log Out

  • -
  • heya directory
  • +
  • Heya Directory
  • {% if let Some(heyas) = player.heyas %} {% for heya in heyas %}
  • {{heya.name}}
  • @@ -53,9 +53,9 @@

  • -
  • stats
  • -
  • discord
  • -
  • donate
  • +
  • Stats
  • +
  • Discord
  • +
  • Donate
  • {%- when None -%} diff --git a/templates/heya.html b/templates/heya.html index cb59a82..ea7a8d9 100644 --- a/templates/heya.html +++ b/templates/heya.html @@ -16,33 +16,38 @@ {% block main %}

    {{heya.name}}

    +

    Oyakata: {{heya.oyakata.render().unwrap()|safe}}

    {% if is_oyakata %} -
    - - -
    +
    +
    + + +
    +
    {% endif %} -

    Oyakata: {{heya.oyakata.render().unwrap()|safe}}

    - -

    Members

    - - -
    - - -
    +
    +

    Members

    + +
    + +
    +
    + + +
    +
    {% endblock %}