Skip to content

Commit

Permalink
UI improv #2
Browse files Browse the repository at this point in the history
  • Loading branch information
theg1239 committed Sep 15, 2024
1 parent 71fc84e commit 2dbb724
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Global Styles */
* {
margin: 0;
padding: 0;
Expand All @@ -15,17 +14,15 @@ body {
min-height: 100vh;
}

/* Container */
.container {
display: flex;
flex-wrap: wrap; /* Ensures that the layout wraps on smaller screens */
justify-content: center; /* Center the items */
flex-wrap: wrap;
justify-content: center;
width: 90%;
max-width: 1200px;
gap: 20px; /* Keep the gap between cards */
gap: 20px;
}

/* Ensure cards do not resize */
.card {
background-color: #1e1e1e;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
Expand All @@ -34,9 +31,9 @@ body {
display: flex;
flex-direction: column;
color: #f0f0f0;
width: 400px; /* Fixed width for the cards */
max-width: 100%; /* On smaller screens, cards will fit the container */
min-height: 500px; /* Ensure consistent height */
width: 400px;
max-width: 100%;
min-height: 500px;
position: relative;
}

Expand Down Expand Up @@ -142,13 +139,12 @@ textarea::placeholder {
}

.output-section {
width: 400px; /* Fixed width for the output section */
width: 400px;
display: flex;
flex-direction: column;
justify-content: space-between;
}

/* QR Container */
.qr-container {
flex-grow: 1;
max-height: 400px;
Expand Down Expand Up @@ -204,14 +200,13 @@ textarea::placeholder {
border-radius: 10px;
}

/* Media Query for Smaller Screens */
@media (max-width: 800px) {
.container {
flex-direction: column;
align-items: center;
}

.card, .output-section {
width: 90%; /* Make it more fluid on small screens */
width: 90%;
}
}

0 comments on commit 2dbb724

Please sign in to comment.