From 76457b2f1623c5abe1474c539edc4c2884da9402 Mon Sep 17 00:00:00 2001 From: Aachintya Date: Tue, 22 Oct 2024 02:13:11 +0530 Subject: [PATCH] Updated Minor files --- .gitignore | 7 - requirements.txt | 1 + static/css/graph_analyzer_styles.css | 200 +++++++++++++++++++++++++++ 3 files changed, 201 insertions(+), 7 deletions(-) create mode 100644 static/css/graph_analyzer_styles.css diff --git a/.gitignore b/.gitignore index 0de1ee1..efd55d2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,16 +7,9 @@ __pycache__/ # Virtual environment venv/ -# Database -db.sqlite3 - # Local settings local_settings.py -# Media and static files -/media/ -/static/ - # Log files *.log diff --git a/requirements.txt b/requirements.txt index bf2e4c9..81cba0f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,3 +15,4 @@ python-dotenv==1.0.1 requests==2.32.3 sqlparse==0.5.1 urllib3==2.2.3 +scipy \ No newline at end of file diff --git a/static/css/graph_analyzer_styles.css b/static/css/graph_analyzer_styles.css new file mode 100644 index 0000000..c74b694 --- /dev/null +++ b/static/css/graph_analyzer_styles.css @@ -0,0 +1,200 @@ +/* global Styles */ +body { + font-family: 'Roboto', 'Arial', sans-serif; + line-height: 1.6; + color: #333; + margin: 0; + padding: 0; + background-color: #f0f4f8; +} + +.container { + width: 90%; + max-width: 1200px; + margin: 0 auto; + padding: 20px; +} + +/* Header Styles */ +header { + background-color: #2c3e50; + color: white; + padding: 20px 0; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); +} + +header h1 { + margin: 0; + font-size: 2.5em; + font-weight: 300; + text-align: center; +} + +/* Main Content Styles */ +main { + padding: 40px 0; +} + +.form-section { + background: white; + border: none; + padding: 40px; + border-radius: 8px; + margin-bottom: 30px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + transition: box-shadow 0.3s ease; +} + +.form-section:hover { + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); +} + +.form-section label { + display: block; + margin-bottom: 15px; + font-size: 18px; + color: #2c3e50; + font-weight: 500; +} + +/* File Input Styles */ +.file-input-wrapper { + position: relative; + overflow: hidden; + display: inline-block; + cursor: pointer; +} + +.file-input-wrapper input[type="file"] { + font-size: 100px; + position: absolute; + left: 0; + top: 0; + opacity: 0; + cursor: pointer; +} + +.file-input-wrapper .btn { + display: inline-block; + padding: 12px 24px; + background-color: #3498db; + color: white; + border: none; + border-radius: 4px; + font-size: 16px; + transition: background-color 0.3s ease; +} + +.file-input-wrapper:hover .btn { + background-color: #2980b9; +} + +.file-name { + margin-left: 10px; + font-style: italic; +} + +/* submit button styles */ +.submit-btn { + display: block; + width: 100%; + padding: 15px 30px; + font-size: 18px; + font-weight: 500; + border: none; + border-radius: 4px; + background-color: #2ecc71; + color: white; + cursor: pointer; + transition: background-color 0.3s ease, transform 0.1s ease; + margin-top: 20px; +} + +.submit-btn:hover { + background-color: #27ae60; +} + +.submit-btn:active { + transform: scale(0.98); +} + +/* Results Section Styles */ +.results { + background-color: white; + border: none; + padding: 30px; + border-radius: 8px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + margin-bottom: 30px; + transition: box-shadow 0.3s ease; +} + +.results:hover { + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); +} + +.results h2 { + color: #2c3e50; + margin-top: 0; + font-size: 24px; + font-weight: 500; + border-bottom: 2px solid #ecf0f1; + padding-bottom: 10px; + margin-bottom: 20px; +} + +.result-detail { + margin-bottom: 15px; +} + +.result-label { + font-weight: 600; + color: #34495e; +} + +.predicted-points { + list-style-type: none; + padding: 0; +} + +.predicted-points li { + padding: 10px 0; + border-bottom: 1px solid #ecf0f1; + transition: background-color 0.2s ease; +} + +.predicted-points li:last-child { + border-bottom: none; +} + +.predicted-points li:hover { + background-color: #f8f9fa; +} + +/* footer styles */ +footer { + text-align: center; + padding: 20px 0; + background-color: #2c3e50; + color: #ecf0f1; +} + +footer p { + margin: 0; + font-size: 14px; +} + +/* responsive design */ +@media (max-width: 768px) { + .container { + width: 95%; + } + + .form-section, .results { + padding: 20px; + } + + header h1 { + font-size: 2em; + } +} \ No newline at end of file