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 %}
<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 %}

View File

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

View File

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

View File

@@ -6,8 +6,8 @@
<!-- 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' %}">
<link rel="stylesheet" href="{% static 'css/fonts.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/category.css' %}">
<link rel="stylesheet" href="{% static 'main/highlight/styles/atom-one-dark.min.css' %}">
@@ -53,7 +53,7 @@
<header>
<h1 style="cursor:pointer;" onclick="window.open('/', '_self')">TealCode</h1>
<h1 style="cursor:pointer;" onclick="window.open('/', '_self')">TealCode </h1>
<div>
<a id="a-python" href="/category/python/">Python</a>
@@ -63,6 +63,12 @@
<a id="a-java" href="/category/java/">Java</a>
<a id="a-javascript" href="/category/javascript/">JavaScript</a>
</div>
{% if user.is_authenticated %}
<div id="header-admin">
<a id="a-analytics" href="/analytics/">Analytics</a>
</div>
{% endif %}
</header>
<main>
<div id="main-content">
@@ -79,6 +85,8 @@
{% else %}
document.getElementById("a-{{ category_obj.title }}").classList.add("a-current");
{% endif %}
</script>
<footer>

View File

@@ -1,10 +1,8 @@
{% extends "main/base.html" %}
{% extends "base.html" %}
{% block content %}
<div id="main-headline-container">
<h2>About Us</h2>
<div class="main-text">
<h2>About Us</h2>
<div class="main-text">
<p>
Ever had the problem of searching thousands of websites until you found the right code snippet?<br><br>
We try to make it possible for everyone to find the right code snippet as <label style="color:greenyellow;">quickly</label> and <label style="color:greenyellow;">easily</label> as possible.<br>
@@ -12,7 +10,6 @@
We don't focus on learning or teaching, but on finding what you need. <br>
We try to create a dictionary that should help you with your coding experience.
</p>
</div>
</div>
</div>
{% endblock content %}

View File

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

View File

@@ -1,16 +1,14 @@
{% extends "main/base.html" %}
{% extends "base.html" %}
{% block content %}
<div id="main-headline">
<h2>Welcome to TealCode</h2>
<h5>Your code snippet directory</h5>
<div id="list">
<div id="list">
{% for category in categorys %}
<div class="list-item" onclick='window.open("/category/{{ category.title }}", "_self");'>
<!--<img src="c_icon.png"/>-->
<p>{{ category.display_name }}</p>
</div>
{% endfor %}
</div>
</div>
{% endblock content %}

View File

@@ -1,7 +1,6 @@
{% extends "main/base.html" %}
{% extends "base.html" %}
{% block content %}
<div id="main-headline-container">
<h2>Datenschutzerklärung | GER</h2>
<div class="main-text">
@@ -37,6 +36,5 @@
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>
</div>
</div>
{% endblock content %}

View File

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