diff --git a/mobsf/MobSF/init.py b/mobsf/MobSF/init.py index 695a881bc9..ff4cc570f4 100644 --- a/mobsf/MobSF/init.py +++ b/mobsf/MobSF/init.py @@ -10,7 +10,7 @@ logger = logging.getLogger(__name__) -VERSION = '3.6.0' +VERSION = '3.6.1' BANNER = """ __ __ _ ____ _____ _____ __ | \/ | ___ | |__/ ___|| ___|_ _|___ / / /_ diff --git a/mobsf/MobSF/urls.py b/mobsf/MobSF/urls.py index 2327055dae..2a595f31be 100755 --- a/mobsf/MobSF/urls.py +++ b/mobsf/MobSF/urls.py @@ -82,6 +82,7 @@ re_path(r'^download/', home.download), re_path(r'^download_scan/', home.download_apk), re_path(r'^about$', home.about, name='about'), + re_path(r'^donate$', home.donate, name='donate'), re_path(r'^api_docs$', home.api_docs, name='api_docs'), re_path(r'^recent_scans/$', home.recent_scans, name='recent'), re_path(r'^delete_scan/$', home.delete_scan), diff --git a/mobsf/MobSF/views/home.py b/mobsf/MobSF/views/home.py index 84ccd77199..9ecce1ea0f 100755 --- a/mobsf/MobSF/views/home.py +++ b/mobsf/MobSF/views/home.py @@ -166,6 +166,16 @@ def about(request): return render(request, template, context) +def donate(request): + """Donate Route.""" + context = { + 'title': 'Donate', + 'version': settings.MOBSF_VER, + } + template = 'general/donate.html' + return render(request, template, context) + + def error(request): """Error Route.""" context = { diff --git a/mobsf/static/landing/css/home.css b/mobsf/static/landing/css/home.css index 2e9f538bda..2431c97e05 100644 --- a/mobsf/static/landing/css/home.css +++ b/mobsf/static/landing/css/home.css @@ -213,64 +213,20 @@ div#textnode { transition: font-size 175ms; } /* TOP NAV */ -/* Add a black background color to the top navigation */ -.topnav { - overflow: hidden; - background-color: #312f2f; - position: fixed; - top: 0; - width: 100%; - z-index: 1; -} - -/* Style the links inside the navigation bar */ -.topnav a { - float: left; - color: #a7a6a6; - text-align: center; - padding: 14px 16px; - text-decoration: none; - font-size: 20px; -} - -/* Change the color of links on hover */ -.topnav a:hover { - color: #fff; -} - -/* Centered section inside the top navigation */ -.topnav-centered a { - float: none; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - z-index: 999; -} -.topnav-centered a:hover { - background-color: #312f2f; -} - -/* Right-aligned section inside the top navigation */ -.topnav-right { - float: right; -} - -/* Responsive navigation menu - display links on top of each other instead of next to each other (for mobile devices) */ -@media screen and (max-width: 600px) { - .topnav a, .topnav-right { - float: none; - display: block; +@media (min-width: 768px) { + .navbar-brand.abs + { + position: absolute; + width: auto; + left: 50%; + transform: translateX(-50%); + text-align: center; + font-size: 20px; + } } + - .topnav-centered a { - position: relative; - top: 0; - left: 0; - transform: none; - } -} /* PROGRESS BAR */ progress { diff --git a/mobsf/templates/base/base_layout.html b/mobsf/templates/base/base_layout.html index aa40a45f56..94ea285eed 100644 --- a/mobsf/templates/base/base_layout.html +++ b/mobsf/templates/base/base_layout.html @@ -41,8 +41,9 @@
+ You're Awesome! Thank you for your support ♥ +
++ Donate to MobSF project through Github Sponsors. Github will match the first $5000 in donations. + + + +
++ You can also donate to MobSF project through PayPal. + + + +
+ + +