diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3505304 --- /dev/null +++ b/.gitignore @@ -0,0 +1,111 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +.static_storage/ +.media/ +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +.idea/ +db.sqlite3 +static/media/ +config/local_settings.py +*/migrations +static/upload diff --git a/Biodiversity/settings.py b/Biodiversity/settings.py index 4195e5d..b9a7dd9 100644 --- a/Biodiversity/settings.py +++ b/Biodiversity/settings.py @@ -42,7 +42,8 @@ INSTALLED_APPS = [ 'bootstrap3', 'dashboard', 'user', - 'geo' + 'geo', + 'portal' ] MIDDLEWARE = [ diff --git a/Biodiversity/urls.py b/Biodiversity/urls.py index 5cc5f2a..e52c470 100644 --- a/Biodiversity/urls.py +++ b/Biodiversity/urls.py @@ -18,9 +18,9 @@ from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), - path('', include('dashboard.urls')), + path('dashboard/', include('dashboard.urls')), path('manages/', include('user.urls')), path('captcha/', include('captcha.urls')), - path('geo/',include('geo.urls')) - + path('geo/',include('geo.urls')), + path('', include('portal.urls')) ] diff --git a/portal/__init__.py b/portal/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/portal/admin.py b/portal/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/portal/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/portal/apps.py b/portal/apps.py new file mode 100644 index 0000000..811caa8 --- /dev/null +++ b/portal/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class PortalConfig(AppConfig): + name = 'portal' diff --git a/portal/migrations/__init__.py b/portal/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/portal/models.py b/portal/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/portal/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/portal/static/portal/css/carousel.css b/portal/static/portal/css/carousel.css new file mode 100644 index 0000000..5e9d9dc --- /dev/null +++ b/portal/static/portal/css/carousel.css @@ -0,0 +1,147 @@ +/* GLOBAL STYLES +-------------------------------------------------- */ +/* Padding below the footer and lighter body text */ + +body { + padding-bottom: 40px; + color: #5a5a5a; +} + +/* CUSTOMIZE THE NAVBAR +-------------------------------------------------- */ + +/* Special class on .container surrounding .navbar, used for positioning it into place. */ +.navbar-wrapper { + position: absolute; + top: 0; + right: 0; + left: 0; + z-index: 20; +} + +/* Flip around the padding for proper display in narrow viewports */ +.navbar-wrapper > .container { + padding-right: 0; + padding-left: 0; +} + +.navbar-wrapper .navbar { + padding-right: 15px; + padding-left: 15px; +} + +.navbar-wrapper .navbar .container { + width: auto; +} + +/* CUSTOMIZE THE CAROUSEL +-------------------------------------------------- */ + +/* Carousel base class */ +.carousel { + height: 365px; +} + +/* Since positioning the image, we need to help out the caption */ +.carousel-caption { + z-index: 10; +} + +/* Declare heights because of positioning of img element */ +.carousel .item { + height: 365px; + background-color: #777; +} + +.carousel-inner > .item > img { + position: absolute; + top: 0; + left: 0; + min-width: 100%; + height: 365px; +} + +.carousel-caption { + right: 33%; + left: 33%; + text-align: left; + padding-bottom: 110px; +} + +.carousel-caption h1 { + font-size: 32px; +} + +/* MARKETING CONTENT +-------------------------------------------------- */ + +/* Center align the text within the three columns below the carousel */ +.marketing .col-lg-4 { + margin-bottom: 20px; + text-align: center; +} + +.marketing h2 { + font-weight: normal; +} + +.marketing .col-lg-4 p { + margin-right: 10px; + margin-left: 10px; +} + +/* Featurettes +------------------------- */ + +.featurette-divider { + margin: 80px 0; /* Space out the Bootstrap