From 384964410c2657e93b4819efdbd955681e3efc9e Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 9 Jan 2022 14:40:40 +0100 Subject: [PATCH] added svg to distribusi page and added stash and data folders to git, with gitignore files --- README.md | 7 ++- verse/data/.gitignore | 3 ++ verse/stash/.gitignore | 3 ++ verse/static/css/style.css | 20 +++++++- verse/static/svg/arrow_1.svg | 75 +++++++++++++++++++++++++++ verse/static/svg/arrow_2.svg | 12 +++++ verse/static/svg/arrow_3.svg | 12 +++++ verse/templates/base.html | 1 + verse/templates/distribusi.html | 91 +++++++++++++++++---------------- 9 files changed, 176 insertions(+), 48 deletions(-) create mode 100644 verse/data/.gitignore create mode 100644 verse/stash/.gitignore create mode 100644 verse/static/svg/arrow_1.svg create mode 100644 verse/static/svg/arrow_2.svg create mode 100644 verse/static/svg/arrow_3.svg diff --git a/README.md b/README.md index 9d01939..34cfb03 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,12 @@ $ pip install -r requirements.txt ## Database, Databass The git doesn't come with a database of users, you have to make one. -make sure you have the virtual environment enabled. the data directory is in -gitignore because we don't want to version control the database and other files -that might end up there later. +make sure you have the virtual environment enabled. the content of the data +directory is in gitignore because we don't want to version control the database +and other files that might end up there later. ``` $ cd verse -$ mkdir data ``` You might need to remove the migrations folder, this is where flask-migrate keeps track of all the database upgrades and migrations. but so far we have none and diff --git a/verse/data/.gitignore b/verse/data/.gitignore new file mode 100644 index 0000000..94548af --- /dev/null +++ b/verse/data/.gitignore @@ -0,0 +1,3 @@ +* +*/ +!.gitignore diff --git a/verse/stash/.gitignore b/verse/stash/.gitignore new file mode 100644 index 0000000..94548af --- /dev/null +++ b/verse/stash/.gitignore @@ -0,0 +1,3 @@ +* +*/ +!.gitignore diff --git a/verse/static/css/style.css b/verse/static/css/style.css index a75292b..13bc7c0 100644 --- a/verse/static/css/style.css +++ b/verse/static/css/style.css @@ -38,7 +38,11 @@ div#upload form { background-color:#383C4A; text-decoration: none; } - +#mainworkflow +{ + width: 30em; + margin:0 auto; +} div#buttons{ position: fixed; @@ -98,3 +102,17 @@ a:hover { a:active { color: white; } +/* +Project colors so far. +light +#E0B0FF +medium +#d28cff +dark +#60337F + +yellow +#fff600 + +backgrounds +*/ diff --git a/verse/static/svg/arrow_1.svg b/verse/static/svg/arrow_1.svg new file mode 100644 index 0000000..21073fd --- /dev/null +++ b/verse/static/svg/arrow_1.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + diff --git a/verse/static/svg/arrow_2.svg b/verse/static/svg/arrow_2.svg new file mode 100644 index 0000000..ea2a026 --- /dev/null +++ b/verse/static/svg/arrow_2.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/verse/static/svg/arrow_3.svg b/verse/static/svg/arrow_3.svg new file mode 100644 index 0000000..c447811 --- /dev/null +++ b/verse/static/svg/arrow_3.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/verse/templates/base.html b/verse/templates/base.html index f7f3eb5..52b5b99 100644 --- a/verse/templates/base.html +++ b/verse/templates/base.html @@ -5,6 +5,7 @@ Autonomous Practices X Distribusi-Verse + diff --git a/verse/templates/distribusi.html b/verse/templates/distribusi.html index d26cfb7..0b47879 100644 --- a/verse/templates/distribusi.html +++ b/verse/templates/distribusi.html @@ -1,50 +1,55 @@ {% extends "base.html" %} {% block main %} -
-

Step 1: Upload

-

Upload your files here, the only accepted file type is a zip file

-
- {{ uploadform.csrf_token }} -
- {{ uploadform.sitename.label }} - {{ uploadform.sitename }} - {% for message in uploadform.sitename.errors %} -
{{ message }}
- {% endfor %} -
-
- {{ uploadform.zipfile.label }} - {{ uploadform.zipfile }} - {% for message in uploadform.zipfile.errors %} -
{{ message }}
- {% endfor %} -
-
- {{ uploadform.submit }} -
-
- {% if success %} -

Your file has been uploaded successfully - {% endif %} -

-
-

Step 2: Theme

-

dropdown css file selector

-
-
-

Step 3: Edit

-

go to CSS editor

-
-
-

Step 4: Distribusi

-

run distribusi on your files, this will generate your website and make - your content public.

-
- {{ distribusiform.csrf_token }} +
+ +
+

Step 1: Upload

+

Upload your files here, the only accepted file type is a zip file

+ + {{ uploadform.csrf_token }} +
+ {{ uploadform.sitename.label }} + {{ uploadform.sitename }} + {% for message in uploadform.sitename.errors %} +
{{ message }}
+ {% endfor %} +
+
+ {{ uploadform.zipfile.label }} + {{ uploadform.zipfile }} + {% for message in uploadform.zipfile.errors %} +
{{ message }}
+ {% endfor %} +
- {{ distribusiform.submit }} + {{ uploadform.submit }}
+ {% if success %} +

Your file has been uploaded successfully + {% endif %} +

+ +
+

Step 2: Theme

+

dropdown css file selector

+
+ +
+

(Optional) Step 3: Edit

+

go to CSS editor

+
+ +
+

Step 4: Distribusi

+

run distribusi on your files, this will generate your website and make + your content public.

+
+ {{ distribusiform.csrf_token }} +
+ {{ distribusiform.submit }} +
+
+
- {% endblock main %}