From 4697018a6e73a45d1675d861274b4d00d4e3edc5 Mon Sep 17 00:00:00 2001
From: christian
Date: Sun, 27 Oct 2019 09:10:37 +0100
Subject: [PATCH] stuff
---
mobile/static/mobile/base.css | 18 +++++++++++
mobile/templates/mobile/base.html | 4 +--
mobile/templates/mobile/index.html | 11 ++++---
mobile/templates/mobile/scan.html | 45 ++++++++++++++++++++++++++--
mobile/templates/mobile/scan2.html | 24 +++++++++++++++
mobile/templates/mobile/scanned.html | 2 +-
mobile/views.py | 3 +-
7 files changed, 96 insertions(+), 11 deletions(-)
create mode 100644 mobile/templates/mobile/scan2.html
diff --git a/mobile/static/mobile/base.css b/mobile/static/mobile/base.css
index ffd91fb..16957d4 100644
--- a/mobile/static/mobile/base.css
+++ b/mobile/static/mobile/base.css
@@ -107,3 +107,21 @@ body,html{
right: 50px;
top: 24px;
}
+
+.hidden {
+ display: none;
+}
+
+.loader {
+ border: 16px solid #f3f3f3; /* Light grey */
+ border-top: 16px solid #3498db; /* Blue */
+ border-radius: 50%;
+ width: 120px;
+ height: 120px;
+ animation: spin 2s linear infinite;
+}
+
+@keyframes spin {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(360deg); }
+}
diff --git a/mobile/templates/mobile/base.html b/mobile/templates/mobile/base.html
index f5481fe..70359b1 100644
--- a/mobile/templates/mobile/base.html
+++ b/mobile/templates/mobile/base.html
@@ -22,7 +22,7 @@

-
Bloom up your city
+
Bloom up your region
@@ -36,7 +36,7 @@
-Bloomhunt
+Bloom Hunt
-Hunt blooming trees in your area.
+Be the first that scans a blooming tree in your neighborhood.
Scan a blooming tree
-
+
+Shortly blooming species
Especially look for the following trees, they are likely to bloom
soon:
+
{% for tree in prediction %}
-{{ tree }}
+- {{ tree }}
{% endfor %}
+
{% endblock %}
diff --git a/mobile/templates/mobile/scan.html b/mobile/templates/mobile/scan.html
index 8c05043..acad262 100644
--- a/mobile/templates/mobile/scan.html
+++ b/mobile/templates/mobile/scan.html
@@ -1,14 +1,53 @@
{% extends "mobile/base.html" %}
{% block content %}
+
+
+
Scan a blooming tree!
-We will help you identifying the tree you are hunting.
+We will help you identifying the tree you are hunting.
+
+Just upload a picture of your tree
-
{{ question.text }}
+
-
+
+
+
+
+We were able to identify your tree as a Apple
+ Tree. We need only some further questions to identify the exact species
+
+{{ question.text }}
+
+
+
{% for option in question.options %}
|
|