Skip to content

Commit

Permalink
created about and added some content
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanSingh494 committed Jan 31, 2024
1 parent c2998d0 commit 7965cfc
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 9 deletions.
6 changes: 2 additions & 4 deletions api/home/urls.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
from django.contrib import admin
from django.urls import path,include
from django.urls import path, include
from home import views

urlpatterns = [
path("", views.index, name="home"),
path("faqs/", views.faqs, name="faqs"),

path("popup_detect/", views.popup_detect, name="popup_detect"),
path("report-dp/", views.reportDp, name="report-dp"),

path("about/", views.about, name="about"),
]

12 changes: 12 additions & 0 deletions api/static/css/about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* {
font-family: var(--font-secondary);
}
.content-section section {
display: flex;
align-items: center;
gap: 5rem;
}
.cogniguard-ss {
height: 30rem;
border: 1px solid var(--color-primary);
}
4 changes: 2 additions & 2 deletions api/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
--color-primary-light: rgba(36, 87, 197, 0.3);
--color-secondary: #469a3f;
--font-ex-small: 0.4rem;
--font-small: 0.625rem;
--font-mid-medium: 1.25rem;
--font-small: 0.75rem;
--font-mid-medium: 1.5rem;
--font-medium: 2rem;
--font-mid-large: 2.5rem;
--font-large: 3rem;
Expand Down
Binary file added api/static/img/cogniguard-popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added api/static/js/about.js
Empty file.
32 changes: 32 additions & 0 deletions api/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{% extends "base.html" %}
{% load static %}
{% block head %}
<link rel="stylesheet" href="{% static "css/about.css" %}">
{% endblock head %}

{% block title %}About{% endblock title %}

{% block content %}
<section class="content-section">
<section>
<img class="cogniguard-ss" src="{%static "img/cogniguard-popup.png"%}" alt="web-extension-picture">
<div>
<p class="font-medium">
<span class="blue-text font-mid-large font-secondary">Cogniguard</span> is a lightweight but powerful web extension designed to combat
deceptive tactics and promote transparency online.
</p>
</div>
</section>
<section>
<span class="font-medium">
<p>It empowers you by</p>
<span class="font-mid-medium"> Identifying dark patterns: Uncovers hidden manipulation techniques used by websites, particularly in e-commerce.
</span>
</span>
</section>
</section>
{% endblock content %}

{% block script %}
<script src="{% static "js/about.js"%}"></script>
{% endblock script %}
6 changes: 3 additions & 3 deletions api/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@
What are Dark Patterns
</div>
</a>
<a href="/" class="link">
<a href="/report-dp" class="link">
<div class="align-items">
<span class="material-symbols-outlined">
help
flag
</span>
Get Help
Report Dark Pattern
</div>
</a>
<a href="/faqs" class="link">
Expand Down

0 comments on commit 7965cfc

Please sign in to comment.