Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up decks page #41

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ h3 {
font-size: 55px;
}

.main-deck h3,
.personal-deck h3 {
color: #FAFAFA;
text-align: center;
font-size: 55px;
}

.card {
display: flex;
justify-content: center;
Expand All @@ -29,6 +36,26 @@ h3 {
margin-bottom: 10%;
}

.main-deck,
.personal-deck {
display: flex;
justify-content: center;
align-items: center;
margin: auto;
width: 90%;
aspect-ratio: 8 / 5;
padding: 10px;
margin-bottom: 10%;
}

.main-deck {
background: #e1948d;
}

.personal-deck {
background: #7F5F59;
}

.vertical-align {
display: flex;
justify-content: space-between;
Expand All @@ -55,6 +82,21 @@ h3 {
font-size: 50px;
}

.button2 {
width: 100%;
height: 25%;
padding: 20px;
margin: 10px 0;
background-color: #7F5F59;
border: 1px solid #7F5F59;
border-radius: 4px;
cursor: pointer;
box-sizing: border-box;
font-weight: bold;
color: #FAFAFA;
font-size: 50px;
}

.user-input {
width: 100%;
height: 20%;
Expand Down
27 changes: 27 additions & 0 deletions templates/decks.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends 'base.html' %}

{% block container %}

<!--
<div class="main-deck">
<h3> Test 1</h3>
</div>

<div class="personal-deck">
<h3> Test 2</h3>
</div>
-->

{% for deck in mainDecks %}
<div class="main-deck">
<h3> {{deck.name}}</h3>
</div>
{% endfor %}

{% for deck in personalDecks %}
<div class="personal-deck">
<h3> {{deck.name}}</h3>
</div>
{% endfor %}

{% endblock %}
Loading