diff --git a/app.py b/app.py index 8c51fab..016343b 100644 --- a/app.py +++ b/app.py @@ -28,7 +28,7 @@ def signup(): def allDecks(username): # would need to first find user in db, but not set up yet # would redirect to template for Decks - return render_template('decks.html') + return render_template('decks.html', mainDecks=db.decks.find()) @app.route("//create", methods=["POST"]) def createDeck(username): diff --git a/static/css/style.css b/static/css/style.css index dd60fe1..66b2a36 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -67,6 +67,17 @@ h3 { } +.vertical-alig { + display: flex; + justify-content: space-between; + flex-direction: column; + align-items: center; + margin: auto; + width: 90%; + aspect-ratio: 9 / 5; + +} + .button { width: 100%; height: 25%; diff --git a/templates/decks.html b/templates/decks.html index a0b9476..4eee469 100644 --- a/templates/decks.html +++ b/templates/decks.html @@ -2,26 +2,13 @@ {% block container %} - +
+
+ {% for deck in mainDecks %} + + {% endfor %} +
-
-

Test 2

-
---> - -{% for deck in mainDecks %} -
-

{{deck.name}}

-
-{% endfor %} - -{% for deck in personalDecks %} -
-

{{deck.name}}

-
-{% endfor %} - {% endblock %} \ No newline at end of file