update css style
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -14,3 +14,4 @@ etherpad-lite==0.5
|
||||
ghostscript==0.6
|
||||
ldap3==2.8.1
|
||||
mysqlclient==2.0.1
|
||||
fontawesome-free==5.15.2
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="article-row-section">
|
||||
<div class="article-row-section-inner">
|
||||
|
||||
<h1 class="article-row-section-header"><a href="{% url 'posts.index' %}">Neuigkeiten</a></h1>
|
||||
<h1 class="article-row-section-header">Events</h1>
|
||||
|
||||
{% with post=featured_event %}
|
||||
{% include 'posts/partials/_article_row.html' %}
|
||||
|
||||
@@ -2,49 +2,42 @@
|
||||
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>FET</title>
|
||||
<link rel="stylesheet" href="{% static 'app.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'fet.css' %}">
|
||||
<script src="https://kit.fontawesome.com/dbe3c89a9d.js" crossorigin="anonymous"></script>
|
||||
{% block extraheader %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body style="">
|
||||
|
||||
<style>
|
||||
footer {
|
||||
background-color: #444;
|
||||
}
|
||||
</style>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>FET</title>
|
||||
<link rel="stylesheet" href="{% static 'app.css' %}">
|
||||
<link rel="stylesheet" href="{% static '../static/fet.css' %}">
|
||||
<link href="{% static 'fontawesome_free/css/all.min.css' %}" rel="stylesheet" type="text/css">
|
||||
{% block extraheader %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="fb-root"></div>
|
||||
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v8.0" nonce="WSEL84CK"></script>
|
||||
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v10.0" nonce="mbyDj8BX"></script>
|
||||
|
||||
<div class="header-title-bar" data-responsive-toggle="example-menu" data-hide-for="large">
|
||||
<div class="title-bar" style="background: None">
|
||||
|
||||
<div class="title-bar">
|
||||
<div class="title-bar-left">
|
||||
<a href="{% url 'home' %}">
|
||||
<img class="logo" src="/assets/img/logo2014_64.png"/>
|
||||
<img class="logo" src="{% static 'img/logo2014_64.png' %}"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="title-bar-right">
|
||||
<button class="menu-icon dark" type="button" data-toggle="example-menu"></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="top-bar" id="example-menu">
|
||||
|
||||
<div class="top-bar-left show-for-large">
|
||||
<a href="{% url 'home' %}">
|
||||
<img class="logo" src="/assets/img/logo2014_64.png"/>
|
||||
<img class="logo" src="{% static 'img/logo2014_64.png' %}"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -52,31 +45,30 @@ footer {
|
||||
<ul class="dropdown vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown" data-animate-heigt="true">
|
||||
{% if request.user.is_authenticated %}
|
||||
<li>
|
||||
<a role="menuitem" style="color: black; background: lightgrey">Hallo
|
||||
<a class="button header-intern-btn header-intern-txt" role="menuitem">
|
||||
{% if request.user.first_name %}
|
||||
{{ request.user.first_name }}
|
||||
Hallo {{ request.user.first_name }}
|
||||
{% else %}
|
||||
{{ request.user.username }}
|
||||
Hallo {{ request.user.username }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="/admin" style="background: lightgrey;">Admin</a></li>
|
||||
<li><a href="{% url 'tasks' %}" style="background: lightgrey;">Tasks</a></li>
|
||||
<li><a href="https://legacy.fet.at/home/intern" style="background: lightgrey;">Intern</a></li>
|
||||
<li><a class="button header-intern-btn header-intern-link" href="/admin">Admin</a></li>
|
||||
<li><a class="button header-intern-btn header-intern-link" href="{% url 'tasks' %}">Tasks</a></li>
|
||||
<li><a class="button header-intern-btn header-intern-link" href="https://legacy.fet.at/home/intern">Intern</a></li>
|
||||
{% endif %}
|
||||
<li><a href="{% url 'posts.index' %}">Aktuelles</a></li>
|
||||
<li><a class="button header-btn header-link" href="{% url 'posts.index' %}">News</a></li>
|
||||
<!-- show active members first -->
|
||||
<li><a href="{% url 'members' %}A">Fachschaft</a></li>
|
||||
<li><a href="/fotos/">Fotos</a></li>
|
||||
<li><a href="/blackboard">Blackboard</a></li>
|
||||
<li><a class="button header-btn header-link" href="{% url 'members' %}A">Fachschaft</a></li>
|
||||
<li><a class="button header-btn header-link" href="/fotos/">Fotos</a></li>
|
||||
<li><a class="button header-btn header-link" href="/blackboard">Blackboard</a></li>
|
||||
{% if request.user.is_authenticated %}
|
||||
<li><a href="{% url 'logout' %}">Logout</a></li>
|
||||
<li><a class="button header-btn header-link" href="{% url 'logout' %}">Logout</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'login' %}?next={{ request.path }}">Login</a></li>
|
||||
<li><a class="button header-btn header-link" href="{% url 'login' %}?next={{ request.path }}">Login</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% block content %}
|
||||
@@ -86,28 +78,38 @@ footer {
|
||||
<div class="grid-container">
|
||||
<div class="grid-x padding-top-1 padding-bottom-1">
|
||||
<div class="cell medium-6 large-9">
|
||||
<div class="grid-y" style="height: 100%;" class="footer">
|
||||
<div class="grid-y footer-grid-y">
|
||||
|
||||
<div class="cell small-6 medium-9 large-9">
|
||||
<a href="{% url 'posts.show' 'impressum' %}" >Impressum</a>
|
||||
<a class="footer-link" href="{% url 'posts.show' 'impressum' %}" >Impressum</a>
|
||||
</div>
|
||||
|
||||
<div class="cell small-6 medium-3 large-3 padding-bottom-2">
|
||||
<a href="https://www.facebook.com/FachschaftET"><i class="fab fa-facebook-square" style="font-size:30px; color: white;"></i>Facebook</a>
|
||||
<a href="https://www.instagram.com/fet_tuwien/"><i class="fab fa-instagram-square" style="font-size:30px; color: white;"></i>Instagram</a>
|
||||
<a href="https://discord.gg/7qRuuMA"><i class="fab fa-discord" style="font-size:30px; color: white;"></i>Discord</a>
|
||||
<a href="https://t.me/FETInfo"><i class="fab fa-telegram" style="font-size:30px; color: white;"></i>Telegram</a>
|
||||
<a class="footer-link" href="https://www.facebook.com/FachschaftET">
|
||||
<i class="fab fa-facebook-square"></i>
|
||||
</a>
|
||||
<a class="footer-link" href="https://www.instagram.com/fet_tuwien/">
|
||||
<i class="fab fa-instagram-square"></i>
|
||||
</a>
|
||||
<a class="footer-link" href="https://discord.gg/7qRuuMA">
|
||||
<i class="fab fa-discord"></i>
|
||||
</a>
|
||||
<a class="footer-link" href="https://t.me/FETInfo">
|
||||
<i class="fab fa-telegram"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cell medium-6 large-3">
|
||||
<div class="fb-page"
|
||||
data-href="https://www.facebook.com/FachschaftET"
|
||||
data-width="500"
|
||||
data-height="150"
|
||||
data-hide-cover="false"
|
||||
data-show-facepile="false"></div>
|
||||
<div class="fb-page" data-href="https://www.facebook.com/FachschaftET" data-tabs="" data-width="" data-height=""
|
||||
data-small-header="false" data-adapt-container-width="false" data-hide-cover="false" data-show-facepile="false">
|
||||
<blockquote cite="https://www.facebook.com/FachschaftET" class="fb-xfbml-parse-ignore">
|
||||
<a href="https://www.facebook.com/FachschaftET">Fachschaft Elektrotechnik</a>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,45 +1,38 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
{% extends "layout.html" %}
|
||||
{% load softhyphen_tags %}
|
||||
|
||||
<style>
|
||||
.button {
|
||||
background-color: gray;
|
||||
|
||||
}
|
||||
.button:hover {
|
||||
background-color: black;
|
||||
}
|
||||
.memb {
|
||||
background-color: darkgray;
|
||||
}
|
||||
.active {
|
||||
background-color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% block content %}
|
||||
<div class="grid-container">
|
||||
|
||||
<div class="grid-x grid-padding-x padding-top-1">
|
||||
|
||||
{% for job in pinned_job_groups %}
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button expanded {% if job.slug in request.path %} active {% endif %}" href="{% url 'jobs' job.slug %}">
|
||||
{{job.name}}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% for job in unpinned_job_groups %}
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button expanded {% if job.slug in request.path %} active {% endif %}" href="{% url 'jobs' job.slug %}">
|
||||
<a class="button job-btn {% if job.slug in request.path %} active {% endif %}" href="{% url 'jobs' job.slug %}">
|
||||
{{ job.name|softhyphen|safe }}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="cell large-2 medium-4 small-6"><a class="button memb expanded {% if '/members/P' == request.path %} active {% endif %}" href="/members/P">Pension</a></div>
|
||||
<div class="cell large-2 medium-4 small-6"><a class="button memb expanded {% if '/members/' == request.path %} active {% endif %}" href="/members">Alle Mitglieder</a></div>
|
||||
{% for job in unpinned_job_groups %}
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button job-btn {% if job.slug in request.path %} active {% endif %} job-btn" href="{% url 'jobs' job.slug %}">
|
||||
{{ job.name|softhyphen|safe }}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button memb-btn {% if '/members/P' == request.path %} active {% endif %}" href="/members/P">
|
||||
Pension
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button memb-btn {% if '/members/' == request.path %} active {% endif %}" href="/members">
|
||||
Alle Mitglieder
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -53,9 +46,8 @@
|
||||
|
||||
<!-- show details of a member -->
|
||||
{% if member %}
|
||||
<div class="padding-top-1 padding-left-1 padding-bottom-1 padding-right-1" style="background-color: white;">
|
||||
{% include 'members/partials/_member_details.html' %}
|
||||
</div>
|
||||
{% block members_content %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
<!-- show all, active or pension members -->
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
{% regroup job_members by job.name as all_jobmem_list %}
|
||||
|
||||
{% for jobmem in all_jobmem_list %}
|
||||
@@ -6,7 +5,6 @@
|
||||
<div class="padding-top-1 padding-left-1 padding-right-1" style="background-color: white;">
|
||||
|
||||
<h2>{{jobmem.grouper}}<a class="headerlink" id="{{jobmem.list.0.job.slug}}" href="#{{jobmem.list.0.job.slug}}" title="Permalink to {{jobmem.grouper}}"> #</a></h2>
|
||||
<b>Aktuelle Mitglieder:</b>
|
||||
|
||||
<div class="grid-x align-bottom">
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{% extends 'members/member_layout.html' %}
|
||||
{% extends 'members/index.html' %}
|
||||
|
||||
{% block extraheader %}
|
||||
<meta content="{{member.image.url}}" property="og:image">
|
||||
<meta content="{{ member.firstname }}" property="og:profile:first_name">
|
||||
<meta content="{{ member.surname }}" property="og:profile:last_name">
|
||||
<meta content="profile" property="og:type">
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block members_content %}
|
||||
<div class="padding-top-1 padding-left-1 padding-bottom-1 padding-right-1" style="background-color: white;">
|
||||
<div class="padding-top-1 padding-left-1 padding-bottom-1 padding-right-1" style="background-color: white;">
|
||||
{% include 'members/partials/_member_details.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,87 +0,0 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% load softhyphen_tags %}
|
||||
|
||||
<style>
|
||||
.button {
|
||||
background-color: gray;
|
||||
|
||||
}
|
||||
.button:hover {
|
||||
background-color: black;
|
||||
}
|
||||
.memb {
|
||||
background-color: darkgray;
|
||||
}
|
||||
.active {
|
||||
background-color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="grid-container">
|
||||
|
||||
<div class="grid-x grid-padding-x padding-top-1">
|
||||
|
||||
{% for job in pinned_job_groups %}
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button expanded {% if job.slug in request.path %} active {% endif %}" href="{% url 'jobs' job.slug %}">
|
||||
{{job.name}}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% for job in unpinned_job_groups %}
|
||||
<div class="cell large-2 medium-4 small-6">
|
||||
<a class="button expanded {% if job.slug in request.path %} active {% endif %}" href="{% url 'jobs' job.slug %}">
|
||||
{{ job.name|softhyphen|safe }}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="cell large-2 medium-4 small-6"><a class="button memb expanded {% if '/members/P' == request.path %} active {% endif %}" href="/members/P">Pension</a></div>
|
||||
<div class="cell large-2 medium-4 small-6"><a class="button memb expanded {% if '/members/' == request.path %} active {% endif %}" href="/members">Alle Mitglieder</a></div>
|
||||
|
||||
</div>
|
||||
|
||||
{% if description %}
|
||||
<div class="grid-x">
|
||||
<div class="cell padding-top-1 padding-left-1 padding-right-1" style="background-color: white; text-align: justify;">
|
||||
{{ description|safe }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block members_content %}
|
||||
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<script>
|
||||
// Get the container element
|
||||
var btnContainer = document.getElementById("grid-container");
|
||||
|
||||
// Get all buttons with class="btn" inside the container
|
||||
var grid = btnContainer.getElementsByClassName("grid-x");
|
||||
var cell = grid.getElementsByClassName("cell");
|
||||
var btns = cell.getElementsByClassName("button");
|
||||
|
||||
// Loop through the buttons and add the active class to the current/clicked button
|
||||
for (var i = 0; i < btns.length; i++) {
|
||||
btns[i].addEventListener("click", function() {
|
||||
var current = document.getElementsByClassName("active");
|
||||
|
||||
// If there's no active class
|
||||
if (current.length > 0) {
|
||||
current[0].className = current[0].className.replace(" active", "");
|
||||
}
|
||||
|
||||
// Add the active class to the current/clicked button
|
||||
this.className += " active";
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user