diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index 8eed5b81..51b8481a 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -76,6 +76,7 @@ INSTALLED_APPS = [ "django_crontab", "django_filters", "django_static_jquery_ui", + "fontawesome-free", "posts.apps.PostsConfig", "members.apps.MembersConfig", "documents.apps.DocumentsConfig", @@ -183,7 +184,7 @@ LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ -STATIC_URL = "/assets/" +STATIC_URL = "/static/" STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] STATIC_ROOT = "assets/" @@ -218,10 +219,9 @@ THUMBNAIL_ALIASES = { }, } ETHERPAD_HOST = env("ETHERPAD_HOST").strip() -if not ETHERPAD_HOST or ETHERPAD_HOST=="": +if not ETHERPAD_HOST or ETHERPAD_HOST == "": ETHERPAD_HOST = urljoin("https://" + env("HOST_NAME"), "etherpad/") - # ETHERPAD CLIENT if DEBUG: ETHERPAD_CLIENT = { diff --git a/fet2020/requirements.txt b/fet2020/requirements.txt index b00d74f9..81d3cdd2 100644 --- a/fet2020/requirements.txt +++ b/fet2020/requirements.txt @@ -14,3 +14,4 @@ etherpad-lite==0.5 ghostscript==0.6 ldap3==2.8.1 mysqlclient==2.0.1 +fontawesome-free==5.15.2 diff --git a/fet2020/static/fet.css b/fet2020/static/fet.css index a19eefb6..53c5fbf1 100644 --- a/fet2020/static/fet.css +++ b/fet2020/static/fet.css @@ -1,21 +1,102 @@ body { - min-height:100%; - position:relative; -} -img.logo { - height:40px; - width:40px; + min-height: 100%; + position: relative; } -div.footer { +img.logo { + height: 50px; + width: 50px; +} + +.title-bar { + background: None; +} + +a.header-link { + background: None; + color: black; + font-size: medium; + font-weight: bold; +} + +a.header-intern-link { + background: lightgrey; + color: black; + font-size: medium; + font-weight: bold; +} + +.header-intern-txt { + background: lightgrey; + color: black; + font-size: medium; +} + +.header-btn:hover { + background: None; +} +.header-btn:focus { + background: None; + color: black; +} + +.header-intern-btn:hover { + background: lightgrey; +} +.header-intern-btn:focus { + background: lightgrey; + color: black; +} + +footer { + height: 100%; + background-color: #444; +} + +.footer-grid-y { height: 100%; } -.footer a { - color: white; + +.footer-link { + color: white; } -.footer a i { - font-size:30px; + +.footer-link i { + font-size:30px; } + +.job-btn { + background-color: gray; + height: 70%; + display: flex; + align-items: center; + justify-content: center; +} +.job-btn:hover { + background-color: black; +} +.job-btn:focus { + background-color: gray; +} + +.memb-btn { + background-color: darkgray; + height: 70%; + display: flex; + align-items: center; + justify-content: center; +} +.memb-btn:hover { + background-color: black; +} +.memb-btn:focus { + background-color: darkgray; +} + +.active { + background-color: black; +} + a.thumbnail { width: 150px; height: 150px; diff --git a/fet2020/templates/home.html b/fet2020/templates/home.html index 951b2834..a7f10aa8 100644 --- a/fet2020/templates/home.html +++ b/fet2020/templates/home.html @@ -29,7 +29,7 @@
+ Fachschaft Elektrotechnik ++