changed analytics

This commit is contained in:
DerTyp187
2021-11-17 15:08:13 +01:00
parent 938859f5aa
commit ad7648261d
12 changed files with 101 additions and 108 deletions

View File

@@ -1,26 +0,0 @@
{% load static %}
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{% static 'main/css/fonts.css' %}">
<link rel="stylesheet" href="{% static 'main/css/base.css' %}">
<title>TealCode | Analytics</title>
</head>
<body>
<header>
<h1 style="cursor:pointer;" onclick="window.open('/analytics/', '_self')">TealCode | Analytics</h1>
<div>
<a href="/">TealCode</a>
</div>
</header>
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>

View File

@@ -1,4 +1,20 @@
{% extends "analytics/base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h2>Analytics</h2>
<div class="main-content-block">
<h5>Clicks Last 30 Days</h5>
</div>
<div class="main-content-block">
<h5>Clicks In Total</h5>
</div>
<div class="main-content-block">
<h5>Clicks From Coutries Last 30 Days</h5>
</div>
<div class="main-content-block">
<h5>Clicks From Coutries In Total</h5>
</div>
{% endblock content %} {% endblock content %}

View File

@@ -31,7 +31,7 @@ header div{
margin-right: 0px; margin-right: 0px;
} }
header div a{ header a{
letter-spacing: 1.5px; letter-spacing: 1.5px;
padding-right: 10px; padding-right: 10px;
padding-left: 10px; padding-left: 10px;
@@ -45,12 +45,13 @@ header div a{
text-align: center ; text-align: center ;
} }
header div .a-current{
header .a-current{
color:rgb(0, 255, 106); color:rgb(0, 255, 106);
text-decoration: underline; text-decoration: underline;
} }
header div a:hover{ header a:hover{
color:rgb(0, 255, 106); color:rgb(0, 255, 106);
text-decoration: underline; text-decoration: underline;
} }
@@ -61,8 +62,6 @@ main{
min-height: 85%; min-height: 85%;
} }
main #main-content{ main #main-content{
background-color: rgb(26, 26, 29); background-color: rgb(26, 26, 29);
width: 700px; width: 700px;
@@ -75,6 +74,13 @@ main #main-content{
margin-top: 40px; margin-top: 40px;
} }
main .main-content-block{
width: 100%;
padding-top: 10px;
padding-bottom: 10px;
}
main .main-text{ main .main-text{
width: 90%; width: 90%;
display: block; display: block;
@@ -170,7 +176,7 @@ footer .footer-links a:hover{
@media screen and (max-width:900px) { @media screen and (max-width:900px) {
header{ header{
height: 80px; height: 90px;
padding-left: 10px; padding-left: 10px;
} }

View File

@@ -7,7 +7,7 @@ main #main-content #list{
main #main-content #list .list-item{ main #main-content #list .list-item{
width: 90%; width: 90%;
margin-left: 50px; margin-left: 35px;
margin-top: 10px; margin-top: 10px;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;

View File

@@ -6,8 +6,8 @@
<!-- Required meta tags --> <!-- Required meta tags -->
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{% static 'main/css/fonts.css' %}"> <link rel="stylesheet" href="{% static 'css/fonts.css' %}">
<link rel="stylesheet" href="{% static 'main/css/base.css' %}"> <link rel="stylesheet" href="{% static 'css/base.css' %}">
<link rel="stylesheet" href="{% static 'main/css/topic.css' %}"> <link rel="stylesheet" href="{% static 'main/css/topic.css' %}">
<link rel="stylesheet" href="{% static 'main/css/category.css' %}"> <link rel="stylesheet" href="{% static 'main/css/category.css' %}">
<link rel="stylesheet" href="{% static 'main/highlight/styles/atom-one-dark.min.css' %}"> <link rel="stylesheet" href="{% static 'main/highlight/styles/atom-one-dark.min.css' %}">
@@ -63,6 +63,12 @@
<a id="a-java" href="/category/java/">Java</a> <a id="a-java" href="/category/java/">Java</a>
<a id="a-javascript" href="/category/javascript/">JavaScript</a> <a id="a-javascript" href="/category/javascript/">JavaScript</a>
</div> </div>
{% if user.is_authenticated %}
<div id="header-admin">
<a id="a-analytics" href="/analytics/">Analytics</a>
</div>
{% endif %}
</header> </header>
<main> <main>
<div id="main-content"> <div id="main-content">
@@ -79,6 +85,8 @@
{% else %} {% else %}
document.getElementById("a-{{ category_obj.title }}").classList.add("a-current"); document.getElementById("a-{{ category_obj.title }}").classList.add("a-current");
{% endif %} {% endif %}
</script> </script>
<footer> <footer>

View File

@@ -1,9 +1,7 @@
{% extends "main/base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div id="main-headline-container">
<h2>About Us</h2> <h2>About Us</h2>
<div class="main-text"> <div class="main-text">
<p> <p>
Ever had the problem of searching thousands of websites until you found the right code snippet?<br><br> Ever had the problem of searching thousands of websites until you found the right code snippet?<br><br>
@@ -13,6 +11,5 @@
We try to create a dictionary that should help you with your coding experience. We try to create a dictionary that should help you with your coding experience.
</p> </p>
</div> </div>
</div>
{% endblock content %} {% endblock content %}

View File

@@ -1,9 +1,7 @@
{% extends "main/base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div id="main-headline-container">
<h2>{{ category_obj.display_name }}</h2> <h2>{{ category_obj.display_name }}</h2>
</div>
<div id="search"> <div id="search">
<input placeholder = "Search..." type="text" id="searchBar" onkeydown="search()" onkeyup="search()" onchange="search()"> <input placeholder = "Search..." type="text" id="searchBar" onkeydown="search()" onkeyup="search()" onchange="search()">

View File

@@ -1,9 +1,7 @@
{% extends "main/base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div id="main-headline">
<h2>Welcome to TealCode</h2> <h2>Welcome to TealCode</h2>
<h5>Your code snippet directory</h5> <h5>Your code snippet directory</h5>
<div id="list"> <div id="list">
{% for category in categorys %} {% for category in categorys %}
<div class="list-item" onclick='window.open("/category/{{ category.title }}", "_self");'> <div class="list-item" onclick='window.open("/category/{{ category.title }}", "_self");'>
@@ -12,5 +10,5 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
</div>
{% endblock content %} {% endblock content %}

View File

@@ -1,7 +1,6 @@
{% extends "main/base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div id="main-headline-container">
<h2>Datenschutzerklärung | GER</h2> <h2>Datenschutzerklärung | GER</h2>
<div class="main-text"> <div class="main-text">
@@ -37,6 +36,5 @@
Datenschutzerklärung separat behandelt.</p> Datenschutzerklärung separat behandelt.</p>
<p><small>Quelle: Datenschutz-Konfigurator von <a href="http://www.mein-datenschutzbeauftragter.de" target="_blank">mein-datenschutzbeauftragter.de</a></small></p> <p><small>Quelle: Datenschutz-Konfigurator von <a href="http://www.mein-datenschutzbeauftragter.de" target="_blank">mein-datenschutzbeauftragter.de</a></small></p>
</div> </div>
</div>
{% endblock content %} {% endblock content %}

View File

@@ -1,4 +1,4 @@
{% extends "main/base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div id="button-content"> <div id="button-content">
@@ -21,9 +21,7 @@
</div> </div>
</div> </div>
<div id="main-headline">
<h2>{{ title }}</h2> <h2>{{ title }}</h2>
</div>
<div id="main-content-code"> <div id="main-content-code">