mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-30 04:47:09 +01:00
changed analytics
This commit is contained in:
@@ -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>
|
||||
@@ -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 %}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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' %}">
|
||||
@@ -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>
|
||||
@@ -1,9 +1,7 @@
|
||||
{% extends "main/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<div id="main-headline-container">
|
||||
<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>
|
||||
@@ -13,6 +11,5 @@
|
||||
We try to create a dictionary that should help you with your coding experience.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
@@ -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()">
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
{% 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">
|
||||
{% for category in categorys %}
|
||||
<div class="list-item" onclick='window.open("/category/{{ category.title }}", "_self");'>
|
||||
@@ -12,5 +10,5 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
@@ -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 %}
|
||||
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user