Skip to content

Commit

Permalink
add privacy policy page
Browse files Browse the repository at this point in the history
  • Loading branch information
kailashchoudhary11 committed Jul 7, 2024
1 parent 685757d commit 2ea29a1
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 4 deletions.
13 changes: 13 additions & 0 deletions handlers/privacyPolicy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package handlers

import (
"context"
"net/http"

"github.com/kailashchoudhary11/repo-guard/templates"
)

func PrivacyPolicy(w http.ResponseWriter, r *http.Request) {
template := templates.PrivacyPolicy()
template.Render(context.Background(), w)
}
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ func main() {

router := http.NewServeMux()
router.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
router.HandleFunc("/", handlers.Index)
router.HandleFunc("/privacy-policy", handlers.PrivacyPolicy)
router.HandleFunc("/webhook", handlers.Webhook)
router.HandleFunc("/", handlers.Index)

fmt.Println("Service is up and running at port 8000")

Expand Down
Binary file modified repo-guard
Binary file not shown.
87 changes: 87 additions & 0 deletions static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,14 @@ video {
margin-bottom: 1.5rem;
}

.mb-8{
margin-bottom: 2rem;
}

.mt-2{
margin-top: 0.5rem;
}

.flex{
display: flex;
}
Expand Down Expand Up @@ -653,6 +661,10 @@ video {
height: 1.5rem;
}

.min-h-screen{
min-height: 100vh;
}

.w-12{
width: 3rem;
}
Expand Down Expand Up @@ -681,6 +693,10 @@ video {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.list-disc{
list-style-type: disc;
}

.grid-cols-1{
grid-template-columns: repeat(1, minmax(0, 1fr));
}
Expand Down Expand Up @@ -723,12 +739,22 @@ video {
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8 > :not([hidden]) ~ :not([hidden]){
--tw-space-x-reverse: 0;
margin-right: calc(2rem * var(--tw-space-x-reverse));
margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-8 > :not([hidden]) ~ :not([hidden]){
--tw-space-y-reverse: 0;
margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.overflow-hidden{
overflow: hidden;
}

.rounded-lg{
border-radius: 0.5rem;
}
Expand Down Expand Up @@ -771,6 +797,16 @@ video {
background-color: rgb(176 38 255 / var(--tw-bg-opacity));
}

.bg-gray-800{
--tw-bg-opacity: 1;
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

.bg-gray-900{
--tw-bg-opacity: 1;
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

.bg-transparent{
background-color: transparent;
}
Expand Down Expand Up @@ -811,6 +847,11 @@ video {
padding-right: 2rem;
}

.py-12{
padding-top: 3rem;
padding-bottom: 3rem;
}

.py-16{
padding-top: 4rem;
padding-bottom: 4rem;
Expand All @@ -831,6 +872,10 @@ video {
padding-bottom: 2rem;
}

.pl-6{
padding-left: 1.5rem;
}

.text-center{
text-align: center;
}
Expand Down Expand Up @@ -876,6 +921,10 @@ video {
font-weight: 700;
}

.font-medium{
font-weight: 500;
}

.font-semibold{
font-weight: 600;
}
Expand Down Expand Up @@ -909,11 +958,22 @@ video {
color: rgb(0 0 0 / var(--tw-text-opacity));
}

.text-blue-300{
--tw-text-opacity: 1;
color: rgb(147 197 253 / var(--tw-text-opacity));
}

.text-white{
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.shadow-md{
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.drop-shadow-xl{
--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
Expand All @@ -929,6 +989,12 @@ video {
transition-duration: 150ms;
}

.transition-colors{
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}

.transition-transform{
transition-property: transform;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
Expand Down Expand Up @@ -1032,6 +1098,15 @@ video {
color: rgb(58 176 87 / var(--tw-text-opacity));
}

.hover\:text-\[\#8855EA\]:hover{
--tw-text-opacity: 1;
color: rgb(136 85 234 / var(--tw-text-opacity));
}

.hover\:underline:hover{
text-decoration-line: underline;
}

.hover\:shadow-lg:hover{
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
Expand Down Expand Up @@ -1063,6 +1138,11 @@ video {
.sm\:flex-row{
flex-direction: row;
}

.sm\:px-6{
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}

@media (min-width: 768px){
Expand Down Expand Up @@ -1101,3 +1181,10 @@ video {
line-height: 1;
}
}

@media (min-width: 1024px){
.lg\:px-8{
padding-left: 2rem;
padding-right: 2rem;
}
}
10 changes: 8 additions & 2 deletions templates/navbar.templ
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package templates

templ Navbar() {
<nav class="bg-[#0F1322] text-3xl font-black text-white py-8 px-32 font-maven">
Repo Guard
<nav class="bg-[#0F1322] text-white py-8 px-32 font-maven flex justify-between items-center">
<a href="/" class="text-3xl font-black">Repo Guard</a>
<div class="space-x-8">
<a href="/privacy-policy" class="text-xl hover:text-[#8855EA] transition-colors duration-300">
Privacy
Policy
</a>
</div>
</nav>
}
2 changes: 1 addition & 1 deletion templates/navbar_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 107 additions & 0 deletions templates/privacyPolicy.templ
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
package templates

templ PrivacyPolicy() {
@Layout("Privacy Policy") {
<div class="font-maven bg-gray-900 min-h-screen text-white py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-3xl mx-auto bg-gray-800 shadow-md rounded-lg overflow-hidden">
<div class="px-6 py-8 text-white">
<h1 class="text-3xl text-white font-bold mb-6">Privacy Policy</h1>
<section class="mb-8">
<h2 class="text-2xl text-white font-semibold mb-4">Introduction</h2>
<p>
Welcome to Repo-Guard! We value your privacy and are committed to protecting
your personal information. This
Privacy Policy outlines how we handle data when you use the Repo-Guard GitHub
app.
</p>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Information We Collect</h2>
<h3 class="text-xl font-medium mb-2">1. Repository Data</h3>
<p class="mb-2">
Repo-Guard requires read and write access to your repository's issues.
Specifically, we collect and process:
</p>
<ul class="list-disc pl-6">
<li>Issue titles and descriptions</li>
<li>Comments on issues</li>
</ul>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">How We Use Your Information</h2>
<h3 class="text-xl font-medium mb-2">1. Service Provision</h3>
<p class="mb-2">We use the collected data to:</p>
<ul class="list-disc pl-6">
<li>Detect and manage duplicate issues within your repositories</li>
<li>Automatically close duplicate issues</li>
<li>Comment on duplicate issues with links to similar existing issues</li>
</ul>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Data Security</h2>
<p class="mb-2">
We are committed to ensuring the security of your data. Our
practices include:
</p>
<ul class="list-disc pl-6">
<li>Using secure communication protocols</li>
<li>
Ensuring our servers and databases are protected against unauthorized
access
</li>
</ul>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Data Storage</h2>
<p>
We do not store any personal information or repository data. All data processing
is done in real-time and no
data is retained by Repo-Guard.
</p>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Data Sharing and Disclosure</h2>
<p>
We do not share, sell, or trade your personal information or repository data
with outside parties.
</p>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Your Rights and Choices</h2>
<h3 class="text-xl font-medium mb-2">1. Access and Update</h3>
<p class="mb-4">
You can manage the permissions granted to Repo-Guard through your GitHub account
settings.
</p>
<h3 class="text-xl font-medium mb-2">2. Revocation of Access</h3>
<p>
You can revoke Repo-Guard's access to your GitHub account at any time by
uninstalling the app from your GitHub
account settings.
</p>
</section>
<section class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Changes to This Privacy Policy</h2>
<p>
We may update this Privacy Policy from time to time. Any changes will be posted
on this page.
</p>
</section>
<section>
<h2 class="text-2xl font-semibold mb-4">Contact Us</h2>
<p>
If you have any questions or concerns about this Privacy Policy or our data
practices, please contact us at:
</p>
<p class="mt-2">
Email: <a
href="mailto:kailashjat604@gmail.com"
class="text-blue-300 hover:underline"
>kailashjat604@gmail.com</a>
</p>
</section>
</div>
</div>
</div>
}
}
53 changes: 53 additions & 0 deletions templates/privacyPolicy_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ea29a1

Please sign in to comment.