diff --git a/app.py b/app.py index 23475eb..7d885d1 100644 --- a/app.py +++ b/app.py @@ -9,6 +9,10 @@ def home(): return render_template('index.html') +@app.route('/chatbot') +def chatbot(): + return render_template('chatbot.html') + @app.route('/predict',methods=['POST']) def predict(): if request.method == 'POST': @@ -20,4 +24,4 @@ def predict(): if __name__ == '__main__': - app.run(host='0.0.0.0',port=5000) \ No newline at end of file + app.run(host='0.0.0.0',port=5000,debug=True) \ No newline at end of file diff --git a/static/img/Background.png b/static/img/Background.png index 7ed3ba1..348b25d 100644 Binary files a/static/img/Background.png and b/static/img/Background.png differ diff --git a/static/img/background-result.jpg b/static/img/background-result.jpg deleted file mode 100644 index 0929675..0000000 Binary files a/static/img/background-result.jpg and /dev/null differ diff --git a/static/img/background-result.png b/static/img/background-result.png new file mode 100644 index 0000000..6cbd287 Binary files /dev/null and b/static/img/background-result.png differ diff --git a/static/img/joker2.mp4 b/static/img/joker2.mp4 new file mode 100644 index 0000000..6491714 Binary files /dev/null and b/static/img/joker2.mp4 differ diff --git a/static/style.css b/static/style.css index f26e89e..3ee01a1 100644 --- a/static/style.css +++ b/static/style.css @@ -1,258 +1,304 @@ html { - position: relative; - min-height: 450px; - scroll-behavior: smooth; + position: relative; + min-height: 450px; + scroll-behavior: smooth; } body { - font-family: "Montserrat", sans-serif; - font-size: 17.5px; - font-weight: 400; - -webkit-font-smoothing: antialiased; + font-family: "Montserrat", sans-serif; + font-size: 17.5px; + font-weight: 400; + -webkit-font-smoothing: antialiased; + background-color: #660033; } * { - outline: 0 !important; + outline: 0 !important; } .logo-wrapper img { - max-width: 70px; + max-width: 70px; } .pull-right ul { - margin-top: -50px; + margin-top: -50px; } -.nav-wrapper a { - text-transform: uppercase; - font-weight: bold; - color: #fff; - font-size: 16px; - margin-left: 25px; - margin-top: 25px; - transition: all 100ms ease-in; - -moz-transition: all 100ms ease-in; - -webkit-transition: all 100ms ease-in; +.nav-wrapper { + display: flex; + justify-content: flex-end; /* Align items to the left */ + align-items: center; + padding: 10px; /* Optional: Add padding if needed */ } .nav-wrapper li { - list-style: none; - float: right; - vertical-align: middle; + list-style: none; + margin-right: 25px; + /* Adjust this value as needed for spacing */ +} + +.nav-wrapper a { + text-transform: uppercase; + font-weight: bold; + color: white; + font-size: 16px; + padding: 10px 20px; /* Add padding for oval shape */ + text-align: center; + border-radius: 25px; /* Make the button oval */ + background-color: #2c974b; /* Button background color */ + text-decoration: none; /* Remove underline from links */ + transition: all 100ms ease-in; + -moz-transition: all 100ms ease-in; + -webkit-transition: all 100ms ease-in; +} + +.nav-wrapper a:hover { + background-color: #0d47a1; /* Change background color on hover */ + color: white; /* Change text color on hover */ } .d-inline-block { - display: inline-block; + display: inline-block; + margin-left: 80%; } .top-wrapper { - padding-top: 30px; + padding-top: 30px; } .m-l-30 { - margin-left: 30px !important; + margin-left: 30px !important; } .page-header { - background-image: url("../static/img/Background.png"); - background-position: center top; - background-size: cover; - background-repeat: no-repeat; - background-color: #090909; - background-attachment: fixed; - color: #fff; - min-height: 700px; + background-image: url("../static/img/Background.png"); + background-position: center top; + background-size: cover; + background-repeat: no-repeat; + background-color: #660033; + background-attachment: fixed; + color: #fff; + min-height: 800px; } .result-header { - background-image: linear-gradient(rgb(0, 0, 0, 0.3), rgb(0, 0, 0, 0.3)), url("../static/img/background-result.jpg"); - background-position: center top; - background-size: cover; - background-repeat: no-repeat; - background-color: #090909; - color: #fff; - min-height: 450px; + background-image: linear-gradient(rgb(0, 0, 0, 0.3), rgb(0, 0, 0, 0.3)), + url("../static/img/background-result.png"); + background-position: center top; + background-size: cover; + background-repeat: no-repeat; + background-color: #660033; + color: #660033; + min-height: 800px; } .main-wrapper { - padding-top: 140px; + padding-top: 140px; } .main-wrapper h1 { - font-weight: 600; - font-size: 55px; - margin: 0 0 5px; - line-height: 75px; + font-weight: 700; + font-size: 55px; + /* margin: 10px 10px 10px 10px; */ + margin-left: 20%; + line-height: 50px; + color: #090909; + margin-bottom: 1%; } .main-wrapper h2 { - font-weight: 600; - font-size: 55px; - margin: auto; - text-align: center; - line-height: 75px; + font-weight: 1000; + font-size: 55px; + margin: auto; + text-align: center; + line-height: 75px; } .main-wrapper h4 { - font-weight: 500; - max-width: 600px; - margin: 0; - font-size: 18px; - line-height: 32px; + font-weight: 500; + max-width: 600px; + margin: 0; + font-size: 30px; + line-height: 32px; + margin-left: 20%; + /* margin-top: 2%; */ + color: #090909; } .collapse-content .fa.fa-heart:hover { - color: #f44336 !important; + color: #f44336 !important; } .collapse-content .fa.fa-share-alt:hover { - color: #0d47a1 !important; + color: #0d47a1 !important; } .result-wrapper { - background: #f1f3f3; - padding: 100px 0; - text-align: center; + background: #000000; + padding: 100px 0; + text-align: center; } #myCard { - width: 337px; - height: 450px; - box-shadow: #090909; + width: 337px; + height: 450px; + box-shadow: #090909; } .buttons-wrapper { - padding: 60px 0; + padding: 60px 0; + margin-left: 20%; + margin-top: 15%; } .btn { - font-weight: 500; - font-size: 16px; - color: #fff; - text-align: center; - padding: 14px 28px; - min-width: 230px; - border-radius: 30px; - -webkit-border-radius: 30px; - transition: all 100ms ease-in; - -moz-transition: all 100ms ease-in; - -webkit-transition: all 100ms ease-in; + font-weight: 500; + font-size: 16px; + color: #fff; + text-align: center; + padding: 14px 28px; + min-width: 230px; + border-radius: 30px; + -webkit-border-radius: 30px; + transition: all 100ms ease-in; + -moz-transition: all 100ms ease-in; + -webkit-transition: all 100ms ease-in; } .btn-primary { - background: #2c974b; - border: 2px solid #2c974b; - color: #fff; + background: #2c974b; + border: 2px solid #2c974b; + color: #fff; + /* margin-left: 80%; */ + /* margin-top: 15%; */ } .btnSubnmit:hover { - border: 2px solid #2c974b; - color: #2c974b; + border: 2px solid #2c974b; + color: #2c974b; } .about-us-wrapper { - background: #f1f3f3; - padding: 100px 0; - text-align: center; + background: #f1f3f3; + padding: 100px 0; + text-align: center; } .about-us-wrapper .icon-wrapper { - width: 70px; - height: 75px; - margin: 0 auto; - display: block; + width: 70px; + height: 75px; + margin: 0 auto; + display: block; } .about-us-wrapper .icon-wrapper img { - height: 100px; + height: 100px; } .about-us-wrapper h5 { - text-transform: uppercase; - font-weight: bold; - font-size: 18px; - color: #2c974b; - margin: 40px 0 0; + text-transform: uppercase; + font-weight: bold; + font-size: 18px; + color: #2c974b; + margin: 40px 0 0; } .about-us-wrapper p { - font-size: 16px; - font-weight: 500; - max-width: 300px; - margin: 20px auto; - line-height: 30px; + font-size: 16px; + font-weight: 500; + max-width: 300px; + margin: 20px auto; + line-height: 30px; } .input-wrapper { - background: #e8e8e8; - padding: 45px 0 35px; - overflow: hidden; - position: relative; + background: #660033; + padding: 45px 0 35px; + overflow: hidden; + position: relative; + margin-top: 40px; } .input-wrapper h4 { - font-size: 30px; - font-weight: 600; - margin: 0 0 4px; - color: #111; + font-size: 30px; + font-weight: 600; + margin: 0 0 4px; + color: #ffccb3; } .input-wrapper-form button { - background: #2c974b; - padding: 13px 18px; - border: 0; - color: #fff; - margin-left: -45px; - font-size: 14px; - vertical-align: middle; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; - transition: all 200ms ease-in-out; + background: #2c974b; + padding: 13px 18px; + border: 0; + color: #090909; + margin-left: -45px; + font-size: 14px; + vertical-align: middle; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; + transition: all 200ms ease-in-out; } .input-wrapper-form button:hover, .input-wrapper-form button[disabled] { - background: #111111; + background: #090909; } .page-footer { - background-color: #f1f3f3; - text-align: center; - color: #090909; - padding: 60px 20px; + background-color: #660033; + text-align: center; + color: #090909; + padding: 60px 20px; } +.page-footer-result { + background-color: #000000; + text-align: center; + color: darkmagenta; + padding: 60px 20px; +} /* .input-wrapper-form .textArea { margin-bottom: 20px !important; } */ textarea .form-control { - padding: 10px !important; + padding: 10px !important; } .page-footer .icon { - color: #c2c3c3; - font-size: 24px; - margin: 0 10px; + color: #c2c3c3; + font-size: 24px; + margin: 0 10px; } .page-footer .icon:hover { - color: #090909; + color: #090909; } .page-footer p { - font-size: 14px; - font-weight: 500; - line-height: 26px; - color: #a5a5a5; + font-size: 14px; + font-weight: 500; + line-height: 26px; + color: #a5a5a5; } .page-footer p a { - color: #ea2845; - font-weight: 600; + color: #ea2845; + font-weight: 600; } #resultPage { - position: relative; -} \ No newline at end of file + position: relative; +} + +.video-container { + background-color: white; + display: flex; + justify-content: center; + align-items: center; +} + +.embed-responsive-item { + background-color: white; +} diff --git a/templates/index.html b/templates/index.html index d12053d..56a346d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,43 +1,150 @@ - -
++ Depression is a mood disorder that can affect a person's daily + life. It may be described as feelings of sadness, loss, or anger. + According to Appolo Hospitals there are 10 Million cases per year + in India. +
++ It's important to take action against depression - it doesn't just + go away on its own. Being depressed can make you feel helpless. + You're not. Along with therapy and sometimes medication, there's a + lot you can do on your own to fight back. Changing your behavior + -- your physical activity, lifestyle, and even your way of + thinking -- are all natural depression treatments. +
++ It's just a small initiative against depression. Not all people + but some people put Depression quotes in stories of social media + or in tweets. So, we trained our model like this: you just input + that quote in our app and it will tell you if the person is sad or + depressed so you can talk to him/her about the problem. +
+