From b8263aaf557047a9a8c7d5f290656d2bc60db790 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 12 Aug 2024 16:23:14 +0530 Subject: [PATCH] fix: redesigned the apps page --- frappe/www/apps.css | 100 ++++++++++++++++++++++++++++++------------- frappe/www/apps.html | 84 ++++++++++++------------------------ 2 files changed, 98 insertions(+), 86 deletions(-) diff --git a/frappe/www/apps.css b/frappe/www/apps.css index 78f2203d5b..c8732faf1e 100644 --- a/frappe/www/apps.css +++ b/frappe/www/apps.css @@ -1,37 +1,43 @@ .container { - max-width: 1000px; - padding: 0 1.25rem; -} - -.apps-navbar { display: flex; + flex-direction: column; + justify-content: center; align-items: center; - justify-content: space-between; - height: 3rem; - border-bottom: 1px solid var(--border-color); -} - -.apps-wrapper { - margin-top: 2.5rem; + height: 100vh; + max-width: 100vw; + padding: 0; + margin: 0; + background: var(--bg-light-gray); } .apps-container { - margin-top: 2rem; - margin-bottom: 2rem; - display: grid; - grid-template-columns: repeat(6, 60px); - row-gap: 50px; - justify-content: space-between; + display: flex; + flex-direction: column; + gap: 40px; + align-items: center; + justify-content: center; + background: var(--fg-color); + padding: 45px 80px; + border-radius: var(--border-radius-md); + border: 1px solid var(--border-color); } -.apps-title { - margin: 0; +.title { font-size: var(--font-size-xl); + font-weight: 600; +} + +.apps { + gap: 30px; + display: grid; } .app-icon { display: flex; flex-direction: column; + gap: 12px; + height: fit-content; + width: fit-content; align-items: center; justify-content: center; text-decoration: none; @@ -54,26 +60,60 @@ } .app-title { - margin-top: 0.5rem; - font-size: 0.875rem; - font-weight: 400; - white-space: nowrap; - letter-spacing: 0.05em; - color: var(--gray-900); + color: var(--gray-900, #171717); + font-size: var(--font-size-md); + height: fit-content; + letter-spacing: 0.24px; + line-height: 115%; + min-width: 30px; + width: fit-content; + text-decoration: none; +} + +.logout-btn { + display: flex; + align-items: center; + justify-content: center; + gap: 5px; + border-radius: var(--border-radius-md); + background-color: #fff !important; +} + +.logout-btn:hover { + background-color: var(--bg-light-gray) !important; +} + +.logout-btn a { + text-decoration: none; } @media (max-width: 900px) { - .apps-container { - grid-template-columns: repeat(6, 60px); + .apps { + grid-template-columns: repeat(4, 1fr) !important; } } @media (max-width: 575px) { .apps-container { - grid-template-columns: repeat(4, 60px); + background: var(--fg-color); + gap: 30px; + padding: var(--padding-lg); + border: none; + } + + .container { + background: var(--fg-color); + } + + .title { + font-size: var(--font-size-md); + } + + .apps { + grid-template-columns: repeat(3, 1fr) !important; } .app-title { - font-size: 0.75rem; + font-size: var(--font-size-sm); } } diff --git a/frappe/www/apps.html b/frappe/www/apps.html index 67f5fdf391..6ae8591c51 100644 --- a/frappe/www/apps.html +++ b/frappe/www/apps.html @@ -1,69 +1,41 @@ --- -base_template: 'templates/base.html' +base_template: "templates/base.html" no_cache: 1 --- -{%- block navbar -%} - -{% from "frappe/templates/includes/avatar_macro.html" import avatar %} - - -{%- endblock -%} - -{%- block footer -%} -{%- endblock -%} - -{% block content %} +{%- block navbar -%} {% from "frappe/templates/includes/avatar_macro.html" import avatar %} {%- +endblock -%} {%- block footer -%} {%- endblock -%} {% block content %}
-
-
-

{{ _("Apps") }}

- {{ _('My Account') }} -
-
+
+
{{ _('Select the app to continue') }}
+ {% set appsCount = apps|length if apps|length <= 6 else 6 %} +
{% for app in apps %} -
- {{ app.title }} -
+
{{ app.title }}
{% endfor %}
+ + + + + + + {{ _('Logout') }} +
-{% endblock %} \ No newline at end of file +{% endblock %}