From a4090dae7095c2d1b82c2d975112130ce102cde8 Mon Sep 17 00:00:00 2001
From: Luis Aleixo
Date: Wed, 3 Nov 2021 14:39:39 +0100
Subject: [PATCH] Added buttons on landing page to go directly to calculator or
expert apps
---
cara/apps/static/css/style.css | 16 +++++++++
cara/apps/static/icons/calculator.svg | 51 +++++++++++++++++++++++++++
cara/apps/static/icons/expert.svg | 14 ++++++++
cara/apps/templates/index.html.j2 | 13 ++++++-
4 files changed, 93 insertions(+), 1 deletion(-)
create mode 100644 cara/apps/static/icons/calculator.svg
create mode 100644 cara/apps/static/icons/expert.svg
diff --git a/cara/apps/static/css/style.css b/cara/apps/static/css/style.css
index e25f90ad..248300b8 100644
--- a/cara/apps/static/css/style.css
+++ b/cara/apps/static/css/style.css
@@ -152,6 +152,18 @@ body {
color: black;
}
+.icon-calculator {
+ background: url(../icons/calculator.svg);
+ width: 30px;
+ display: block;
+}
+
+.icon-expert {
+ background: url(../icons/expert.svg);
+ width: 30px;
+ display: block;
+}
+
/*===== FIXED BACKGROUND IMG =====*/
.fixed-background {
@@ -207,6 +219,10 @@ footer img {
.navbar .nav-item .dropdown-menu{ margin-top:0; }
+ #apps_section {
+ display: inline!important;
+ }
+
}
/* Devices under 768px (md) */
/* @media (max-width: 767.98px) {
diff --git a/cara/apps/static/icons/calculator.svg b/cara/apps/static/icons/calculator.svg
new file mode 100644
index 00000000..2d6a6e0c
--- /dev/null
+++ b/cara/apps/static/icons/calculator.svg
@@ -0,0 +1,51 @@
+
diff --git a/cara/apps/static/icons/expert.svg b/cara/apps/static/icons/expert.svg
new file mode 100644
index 00000000..ce82a549
--- /dev/null
+++ b/cara/apps/static/icons/expert.svg
@@ -0,0 +1,14 @@
+
diff --git a/cara/apps/templates/index.html.j2 b/cara/apps/templates/index.html.j2
index e93898e7..7517df9b 100644
--- a/cara/apps/templates/index.html.j2
+++ b/cara/apps/templates/index.html.j2
@@ -23,8 +23,19 @@
It includes detailed instructions on how to run your own version of this tool.
-
+
+
+