From 6d547e05853fc42ec4dd16d5cc4b3c1398de6fcc Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 26 Jan 2024 12:15:30 -0800 Subject: [PATCH] set up wireframe side panel --- web/dataendpoints.templ | 30 ++++++++++++++++-- web/sass/nav.scss | 68 +++++++++++++++++++++++++++++++++++++++++ web/transactions.templ | 8 ----- 3 files changed, 95 insertions(+), 11 deletions(-) diff --git a/web/dataendpoints.templ b/web/dataendpoints.templ index 1dc0b79..7f0b519 100644 --- a/web/dataendpoints.templ +++ b/web/dataendpoints.templ @@ -58,12 +58,36 @@ templ account_summary_rows(accounts *[]types.TwoIntsItem){ } templ transaction_quick_access() { -
-

Hello world

+
+
+ +
+ + +
+
+
+
+ +
+
+ +
+
} templ right_panel_quick_access() { -
+
} diff --git a/web/sass/nav.scss b/web/sass/nav.scss index 48fa5a3..ef55521 100644 --- a/web/sass/nav.scss +++ b/web/sass/nav.scss @@ -48,3 +48,71 @@ nav { } } +#transaction-quick-access-panel { + height: 100%; + display:flex; + flex-direction: column; + + .t-header { + display: flex; + margin-top: 10px; + margin-bottom: 20px; + input { + margin-top: auto; + margin-bottom: auto; + margin-left: 5px; + margin-right: 8px; + border-radius: 0.25rem; + border: 1px solid var(--#{$prefix}-text); + width: 1.25em; + height: 1.25em; + } + } + + .t-list { + display: flex; + flex-grow: 1; + margin-left: 10px; + margin-right: 10px; + .tab-div { + height: 100%; + width: 50px; + display: flex; + #open-draft { + border-top-left-radius: $border-radius; + border-bottom-left-radius: $border-radius; + background-color: var(--#{$prefix}-base); + color: var(--#{$prefix}-text); + border: 2px solid var(--#{$prefix}-overlay1); + border-right-color: transparent; + margin-top: 40px; + margin-left: auto; + margin-right: -3px; + height: 50px; + width: 50px; + display:flex; + z-index: 1; + svg { + margin: auto; + } + } + } + .t-list-container { + overflow-y: scroll; + border: 2px solid var(--#{$prefix}-surface1); + margin: 5px; + margin-left: 0px; + background-color: var(--#{$prefix}-base); + height: 100%; + flex-grow: 1; + border-radius: $border-radius; + } + } +} + +#quick-access-panel { + background-color: var(--#{$prefix}-base); + border-radius: $border-radius; + height: 100%; + border: 2px solid var(--#{$prefix}-surface1); +} diff --git a/web/transactions.templ b/web/transactions.templ index 464a6c3..0b07ccf 100644 --- a/web/transactions.templ +++ b/web/transactions.templ @@ -59,14 +59,6 @@ templ transactions_page(userID int, accounts *[]string) { - -