diff --git a/App.py b/App.py index 2c4480f..890e969 100644 --- a/App.py +++ b/App.py @@ -62,7 +62,7 @@ def search_tracking(): adjusted_row_idx = row_idx + 1 adjusted_col_idx = col_idx + 1 result_html += f"
Row {adjusted_row_idx}, Column {adjusted_col_idx}: {cell_str}
" + ##result_html += f"Row {adjusted_row_idx}, Column {adjusted_col_idx}: {cell_str}
"## try: mail_bag_no_parts = [ @@ -87,12 +87,12 @@ def search_tracking(): break if tracking_found and mail_bag_no: - result_html += f"Mail Bag No: {mail_bag_no}
" + result_html += f"Mail Bag No: { mail_bag_no}
" elif tracking_found: result_html += f"Mail Bag No: Not found
" if tracking_found and hash_value: - result_html += f"Number: {hash_value}
" + result_html += f"Number: { hash_value}
" elif tracking_found: result_html += f"#: Not found
" diff --git a/static/App.png b/static/App.png new file mode 100644 index 0000000..95a028f Binary files /dev/null and b/static/App.png differ diff --git a/static/css/style.css b/static/css/style.css index 7ca496b..5a9bf65 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,25 +1,158 @@ +/* styles.scss */ body { font-family: Arial, sans-serif; - color: #333; - background-color: rgb(225.2719665272, 239.9163179916, 249.7280334728); + background-color: #1b1b1b; + color: white; +} + +.top-left-logo { + top: 10px; + left: 10px; + width: 80px; + height: fit-content; +} +.top-left-logo img { + width: 80px; + height: auto; + border-radius: 50%; + border: 2px solid #ffa31a; +} +.top-left-logo h5 { + color: #ffa31a; + margin-top: 0; + margin-left: 10px; +} + +h1 { + color: #ffa31a; + margin-left: 6%; } h2 { - color: #3498db; + color: #ffa31a; + text-align: center; } -form input[type=text], -form input[type=file], -form input[type=submit] { - margin: 10px 0; +.upload { + color: black; +} + +.container { + display: flex; + gap: 10px; +} + +input { + background-color: #808080; + border-radius: 15px; + color: #000000; padding: 10px; - border: 1px solid rgb(33.1380753138, 125.1882845188, 186.8619246862); - border-radius: 5px; + width: 80%; + margin-left: 10%; } -p { +input[type=file]::file-selector-button { + width: fit-content; + margin-right: 20px; + border: none; + background: #ffa31a; + padding: 10px 20px; + border-radius: 10px; + color: #000000; + cursor: pointer; + transition: background 0.2s ease-in-out; +} + +input[type=file]::file-selector-button:hover { + background: #808080; +} + +button { + padding: 10px 15px; + padding-top: 0; + padding-bottom: 0; + color: #000000; + background-color: #ffa31a; + border: none; + border-radius: 15px; + cursor: pointer; + margin-right: 10%; + width: 100px; + font-size: medium; +} +button:hover { + background-color: #808080; +} + +#tracking_no { + width: 50%; + margin: 10px; + font-size: large; +} + +.con { + display: grid; + place-items: center; + width: 100%; + height: fit-content; +} + +.tracking_number .up_file { + width: 50%; /* change this to desired width */ + height: auto; +} + +.tracking_number { + width: 550px; +} + +.up_file, .search { + font-size: 20px; +} + +.strong, .search { + color: #ffa31a; +} + +.search_btn { + padding: 10px; +} + +.all { + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 25px; +} +.all strong { + color: #ffa31a; + font-size: 25px; +} +.all .result-container { + padding: 15px; + border: 1px solid #ccc; + border-radius: 15px; + background-color: #555353; + width: fit-content; + display: grid; + justify-content: center; + align-items: center; +} +.all .result-container h3 { + color: #ffa31a; +} +.all .result-container p { margin: 5px 0; - font-weight: bold; + display: flex; + align-items: center; + justify-content: center; +} +.all .result-container p.error { + color: red; +} +.all .result-container p.success { + color: green; } /*# sourceMappingURL=style.css.map */ diff --git a/static/css/style.css.map b/static/css/style.css.map index 623a93d..f13bf6f 100644 --- a/static/css/style.css.map +++ b/static/css/style.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../scss/style.scss"],"names":[],"mappings":"AAGA;EACI;EACA,OAJS;EAKT;;;AAGJ;EACI,OAVY;;;AAcZ;AAAA;AAAA;EAGI;EACA;EACA;EACA;;;AAIR;EACI;EACA","file":"style.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../scss/style.scss"],"names":[],"mappings":"AAAA;AASA;EACE;EACA,kBALQ;EAMR;;;AAIF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAGF;EACE,OAzBQ;EA0BV;EACA;;;AAMF;EACE,OAlCU;EAmCV;;;AAIF;EACE,OAxCU;EAyCV;;;AAIF;EACA;;;AAIA;EACA;EACE;;;AAIF;EACE,kBA1De;EA2Df;EACA;EACA;EACA;EACA;;;AAKF;EACE;EACA;EACA;EACA,YAvEU;EAwEV;EACA;EACA;EACA;EACA;;;AAGF;EACE,YAjFe;;;AAqFjB;EACE;EACA;EACA;EACA;EACA,kBAzFU;EA0FV;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,kBAnGa;;;AA2GjB;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGA;EACA,OApIU;;;AAuIV;EACE;;;AAIJ;EACE;EACA;EACA;EACF;EACA;;AACA;EACE,OAnJU;EAoJV;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,OAlKQ;;AAqKV;EACE;EACA;EACA;EACA;;AAMA;EACE;;AAGF;EACE","file":"style.css"} \ No newline at end of file diff --git a/static/icon.png b/static/icon.png new file mode 100644 index 0000000..03d4aeb Binary files /dev/null and b/static/icon.png differ diff --git a/static/scss/style.scss b/static/scss/style.scss index d828f7c..5be79bd 100644 --- a/static/scss/style.scss +++ b/static/scss/style.scss @@ -1,28 +1,192 @@ -$primary-color: #3498db; -$text-color: #333; +/* styles.scss */ +// Variables +$primary-color:radial-gradient(circle, rgba(250,212,163,1) 0%, rgba(253,187,92,1) 50%, rgba(255,163,26,1) 100%); +$secondary-color:#808080; +$text-color:#ffa31a; +$bg-color:#1b1b1b ; + +// Global styles body { - font-family: Arial, sans-serif; - color: $text-color; - background-color: lighten($primary-color, 40%); + font-family: Arial, sans-serif; + background-color:$bg-color; + color: white; } +// Style for the top-left logo +.top-left-logo { + top: 10px; + left: 10px; + width: 80px; + height: fit-content; + + img { + width: 80px; // Adjust the size as needed + height: auto; // Maintain aspect ratio + border-radius: 50%; // Optional: Make it circular + border: 2px solid $text-color; // Optional: Add a border + } + + h5{ + color:$text-color; + margin-top: 0; + margin-left: 10px; + } +} + + + +h1{ + color: $text-color; + margin-left:6%; +} + +// Header styles h2 { - color: $primary-color; + color: $text-color; + text-align: center; } -form { - input[type="text"], - input[type="file"], - input[type="submit"] { - margin: 10px 0; - padding: 10px; - border: 1px solid darken($primary-color, 10%); - border-radius: 5px; - } +//maga CONTAINER +.upload{ +color:black; } -p { +//form +.container{ +display:flex; + gap: 10px; +} + +//input (file upload) +input{ + background-color: $secondary-color; + border-radius: 15px; + color: #000000; + padding: 10px; + width: 80%; + margin-left:10%; +} + + +// Browse file butt +input[type="file"]::file-selector-button { + width: fit-content; + margin-right: 20px; + border: none; + background: $text-color; + padding: 10px 20px; + border-radius: 10px; + color: #000000; + cursor: pointer; + transition: background .2s ease-in-out; +} + +input[type="file"]::file-selector-button:hover { + background:$secondary-color; +} + +// Button styles +button { + padding:10px 15px; + padding-top: 0; + padding-bottom: 0; + color: #000000; + background-color: $text-color; + border: none; + border-radius:15px; + cursor: pointer; + margin-right:10%; + width: 100px; + font-size: medium; + + &:hover { + background-color: $secondary-color; + } +} + + + + +// search container styles +#tracking_no{ + width:50%; + margin: 10px; + font-size: large; +} + +.con{ + display: grid; + place-items: center; + width:100%; + height:fit-content; +} +.tracking_number .up_file{ + width: 50%; /* change this to desired width */ + height: auto; + } + +.tracking_number{ + width:550px; +} + +.up_file, .search{ + font-size: 20px; +} + + .strong, .search{ + color: $text-color; + } + + .search_btn{ + padding:10px; + } + +// Result container styles +.all { + display: flex; + align-items: center; + justify-content: center; +font-weight: 600; +font-size:25px; +strong{ + color: $text-color; + font-size: 25px; +} + +.result-container { + padding: 15px; + border: 1px solid #ccc; + border-radius: 15px; + background-color:#555353; + width: fit-content; + display: grid; + justify-content: center; + align-items: center; + + h3{ + color: $text-color; + } + + p { margin: 5px 0; - font-weight: bold; -} \ No newline at end of file + display:flex; + align-items: center; + justify-content: center; + + p,strong{ + + } + + &.error { + color: red; + } + + &.success { + color: green; + } + } +} +} + + diff --git a/templates/result.html b/templates/result.html new file mode 100644 index 0000000..ffb7150 --- /dev/null +++ b/templates/result.html @@ -0,0 +1,7 @@ + +Uploaded File: {{ uploaded_file_name }}
-