-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
259 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.main-section { | ||
gap: 10rem; | ||
} | ||
.content-section { | ||
gap: 3rem; | ||
} | ||
.heading-section { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
line-height: 2.7rem; | ||
font-family: var(--font-primary); | ||
} | ||
.report-form form { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 1rem; | ||
} | ||
.report-form form input { | ||
width: 33vw; | ||
height: 6vh; | ||
} | ||
.report-form form textarea { | ||
border-radius: 5px; | ||
width: 33vw; | ||
height: 20vh; | ||
} | ||
::placeholder { | ||
font-family: monospace; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// function setSpeed(speed) { | ||
// const needle = document.getElementById('needle') | ||
// needle.style.transform = `rotate(${speed}deg)` | ||
// } | ||
// let transparencyScore = prompt('Enter transparency Score (0-100)') | ||
// // adjusting according to transparency score | ||
// if (transparencyScore >= 8) { | ||
// setSpeed(270) | ||
// } else if (transparencyScore <= 4) { | ||
// setSpeed(90) | ||
// } else { | ||
// setSpeed(0) | ||
// } | ||
// animation | ||
const img = document.querySelector('.animate-img') | ||
const p = document.querySelector('.animate-p') | ||
console.log(img.getBoundingClientRect().top, img.offsetHeight) | ||
const animate = (element) => { | ||
if ( | ||
window.scrollY > | ||
element.getBoundingClientRect().top + element.offsetHeight | ||
) { | ||
element.classList.add('animate') | ||
} | ||
if ( | ||
window.scrollY < | ||
element.getBoundingClientRect().top + element.offsetHeight + 100 | ||
) { | ||
element.classList.remove('animate') | ||
} | ||
} | ||
const animateAll = () => { | ||
animate(img) | ||
animate(p) | ||
} | ||
document.addEventListener('scroll', animateAll) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ | |
<link | ||
href="https://fonts.googleapis.com/css2?family=Oswald:[email protected]&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" | ||
rel="stylesheet"> | ||
<title>CogniGuard | {% block title %}{% endblock title %}</title> | ||
|
||
{% block head %} | ||
{% endblock head %} | ||
<title>CogniGuard | {% block title %}{% endblock title %}</title> | ||
|
||
</head> | ||
|
||
<body> | ||
|
@@ -47,40 +47,54 @@ | |
</div> | ||
</a> | ||
</div> | ||
<a href="#" class="link"> | ||
<a href="/" class="link"> | ||
<div class="align-items"> | ||
<i class="material-symbols-outlined icons"> | ||
home | ||
</i> | ||
Home | ||
</div> | ||
</a> | ||
<a href="#" class="link"> | ||
<a href="/about" class="link"> | ||
<div class="align-items"> | ||
<span class="material-symbols-outlined"> | ||
info | ||
</span> | ||
About | ||
</div> | ||
</a> | ||
<a href="#" class="link"> | ||
<a href="/" class="link"> | ||
<div class="align-items"> | ||
<span class="material-symbols-outlined"> | ||
warning | ||
</span> | ||
Detected Dark Patterns | ||
</div> | ||
</a> | ||
<a href="#" class="link">Services</a> | ||
<a href="#" class="link">What are Dark Patterns</a> | ||
<a href="#" class="link"> | ||
<a href="https://en.wikipedia.org/wiki/Dark_pattern" class="link"> | ||
<div> | ||
<span class="material-symbols-outlined"> | ||
description | ||
</span> | ||
What are Dark Patterns | ||
</div> | ||
</a> | ||
<a href="/" class="link"> | ||
<div class="align-items"> | ||
<span class="material-symbols-outlined"> | ||
help | ||
</span> | ||
Get Help | ||
</div> | ||
</a> | ||
<a href="/faqs" class="link"> | ||
<div class="align-items"> | ||
<span class="material-symbols-outlined"> | ||
forum | ||
</span> | ||
FAQs | ||
</div> | ||
</a> | ||
</div> | ||
</nav> | ||
{% block content%} | ||
|
@@ -96,10 +110,10 @@ <h1 class="font-mid-large">CogniGuard</h1> | |
</div> | ||
<div class="cogni-links"> | ||
<div> | ||
<a href="#">About</a> | ||
<a href="#">Contact</a> | ||
<a href="#">Services</a> | ||
<a href="#">Help</a> | ||
<a href="/about">About</a> | ||
<a href="https://en.wikipedia.org/wiki/Dark_pattern">Dark Patterns</a> | ||
<a href="/report">Report</a> | ||
<a href="/help">Help</a> | ||
</div> | ||
<div> | ||
<a href="#" class="btn-secondary">Feedback</a> | ||
|
@@ -112,9 +126,10 @@ <h1 class="font-mid-large">CogniGuard</h1> | |
<img src="{% static "img/left-rect.png" %}" alt="footer design right"> | ||
</div> | ||
<div class="footer-links"> | ||
<a href="#"><img src="{% static "img/Instagram.png" %}" alt="instagram-icon"></a> | ||
<a href="#"><img src="{% static "img/Instagram.png" %}" alt="instagram-icon"></a> | ||
<a href="#"><img src="{% static "img/Instagram.png" %}" alt="instagram-icon"></a> | ||
<a href="#"><img src="{% static "img/Email.png" %}" alt="instagram-icon"></a> | ||
<a href="https://github.com/4darsh-Dev/CogniGaurd"><img src="{% static "img/github-logo.png" %}" | ||
alt="instagram-icon"></a> | ||
<a href="#"><img src="{% static "img/twitter-logo.png" %}" alt="instagram-icon"></a> | ||
<a href="#"><img src="{% static "img/Instagram.png" %}" alt="instagram-icon"></a> | ||
</div> | ||
<div> | ||
|
@@ -125,7 +140,7 @@ <h1 class="font-mid-large">CogniGuard</h1> | |
</footer> | ||
|
||
</main> | ||
<script src="app.js"></script> | ||
<script src="../static/js/app.js"></script> | ||
{% block script %} | ||
|
||
{% endblock script %} | ||
|
Oops, something went wrong.