formated scan page

This commit is contained in:
2025-04-21 19:37:04 +03:00
parent 9244ff90f6
commit bef577cd0e
7 changed files with 32 additions and 47 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
recticel/ recticel/
py_app/recticel/

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -6,9 +6,8 @@ body {
} }
.container { .container {
width: 95%; width: 100%; /* Ensure it spans the full width */
margin: 15px auto; /* Add 15px top margin */ margin: 0 auto; /* Center the container */
overflow: hidden;
padding: 0; /* Remove padding */ padding: 0; /* Remove padding */
background: none; /* Remove white background */ background: none; /* Remove white background */
border-radius: 0; /* Remove rounded corners */ border-radius: 0; /* Remove rounded corners */
@@ -230,8 +229,8 @@ body.dark-mode .card {
/* Common card styles */ /* Common card styles */
.card { .card {
flex: 1 1 500px; /* Allow cards to grow and shrink, with a base width of 500px */ flex: 1 1 auto; /* Allow cards to grow and shrink */
max-width: 500px; /* Ensure cards don't exceed 500px in width */ max-width: none; /* Remove any fixed width */
background: #fff; background: #fff;
border-radius: 5px; border-radius: 5px;
padding: 20px; padding: 20px;
@@ -515,64 +514,44 @@ body.dark-mode .scan-table tr:nth-child(odd) {
/* Container for the scan page */ /* Container for the scan page */
.scan-container { .scan-container {
display: flex; display: grid;
flex-wrap: wrap; /* Allow wrapping on smaller screens */ grid-template-columns: 1fr 2fr; /* 1/3 and 2/3 layout */
gap: 20px; /* Add 20px spacing between the cards */ gap: 20px; /* Add spacing between the columns */
margin: 20px auto; /* Center the container vertically and horizontally */ margin: 20px auto;
justify-content: center; /* Center the cards horizontally */ max-width: 100%; /* Ensure it spans the full width */
align-items: stretch; /* Make all cards the same height */ width: 100%; /* Ensure it takes full width */
align-items: flex-start; /* Align items at the top */
overflow-x: hidden; /* Prevent horizontal overflow */
box-sizing: border-box; /* Include padding and borders in width calculations */
} }
/* Input Form Card */ /* Input Form Card */
.scan-form-card { .scan-form-card {
flex: 0 0 500px; /* Fixed width of 500px */
max-width: 500px;
background: #fff; background: #fff;
border-radius: 5px; border-radius: 5px;
padding: 20px; padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column; /* Ensure content inside the card is vertically aligned */
} }
/* Latest Scans Card */ /* Latest Scans Card */
.scan-table-card { .scan-table-card {
flex: 2 1 1000px; /* Take up twice the space compared to other cards */
max-width: 1000px; /* Ensure the card doesn't exceed 1000px in width */
background: #fff; background: #fff;
border-radius: 5px; border-radius: 5px;
padding: 20px; padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow-x: auto; /* Allow horizontal scrolling for the table */ overflow-x: auto; /* Allow horizontal scrolling for the table */
display: flex; width: 100%; /* Ensure it takes the full width of its grid column */
flex-direction: column; /* Ensure content inside the card is vertically aligned */ max-width: 100%; /* Prevent it from exceeding the container width */
} box-sizing: border-box; /* Include padding and borders in width calculations */
/* Table styles */
.scan-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.scan-table th, .scan-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
}
.scan-table th {
background-color: #f4f4f4;
font-weight: bold;
} }
/* Media query for smaller screens */ /* Media query for smaller screens */
@media (max-width: 768px) { @media (max-width: 768px) {
.card { .scan-container {
flex: 1 1 100%; /* Make cards take full width on smaller screens */ grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
} }
.scan-form-card, .scan-table-card { .scan-form-card, .scan-table-card {
flex: 1 1 100%; /* Make both cards take full width on smaller screens */ width: 100%; /* Make both cards take full width */
} }
} }

View File

@@ -1,6 +1,6 @@
Flask==2.2.2 Flask
Flask-SSLify==0.1.5 Flask-SSLify
Werkzeug==2.2.2 Werkzeug
gunicorn==20.1.0 gunicorn
flask-sqlalchemy==2.5.1 flask-sqlalchemy
pyodbc==4.0.0 pyodbc

5
to_do.txt Normal file
View File

@@ -0,0 +1,5 @@
python3 -m venv recticel
source recticel/bin/activate
python /home/ske087/quality_recticel/py_app/run.py