-
-
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
13 changed files
with
234 additions
and
124 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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="{% static "css/style.css" %}"> | ||
<link rel="stylesheet" href="{% static " css/style.css" %}"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | ||
<link rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" /> | ||
|
@@ -15,18 +15,18 @@ | |
<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> | ||
<main> | ||
<section class="main-section"> | ||
<nav class="navbar"> | ||
<div class="navbar__logo"> | ||
<img src="{% static "img/logo.png" %}" alt="CogniGuard-logo"> | ||
<img src="{% static " img/logo.png" %}" alt="CogniGuard-logo"> | ||
</div> | ||
<div class="navbar__links font-primary"> | ||
<div class="auth"> | ||
|
@@ -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> | ||
|
@@ -109,23 +123,24 @@ <h1 class="font-mid-large">CogniGuard</h1> | |
</div> | ||
<div class="footer-design"> | ||
<div> | ||
<img src="{% static "img/left-rect.png" %}" alt="footer design right"> | ||
<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/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> | ||
<img src="{% static "img/right-rect.png" %}" alt="footer design right"> | ||
<img src="{% static " img/right-rect.png" %}" alt="footer design right"> | ||
</div> | ||
</div> | ||
|
||
</footer> | ||
|
||
</main> | ||
<script src="script.js"></script> | ||
<script src="../static/js/app.js"></script> | ||
{% block script %} | ||
|
||
{% endblock script %} | ||
|
Oops, something went wrong.