Skip to content

Commit

Permalink
add privacy page
Browse files Browse the repository at this point in the history
  • Loading branch information
cookspam committed Aug 2, 2024
1 parent 7e67731 commit bda0aa6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/components/landing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ fn Navbar(cx: Scope) -> Element {
}
}



#[component]
fn Hero(cx: Scope) -> Element {
let bg_img = asset_path("spam_crop.png");
Expand Down
2 changes: 2 additions & 0 deletions src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod miner_toolbar;
mod navbar;
mod ore_economics;
mod page_not_found;
mod privacy;
mod send;
mod settings;
mod spinner;
Expand Down Expand Up @@ -54,6 +55,7 @@ pub use miner_toolbar::*;
pub use navbar::*;
pub use ore_economics::*;
pub use page_not_found::*;
pub use privacy::*;
pub use send::*;
pub use settings::*;
pub use spinner::*;
Expand Down
22 changes: 22 additions & 0 deletions src/components/privacy.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
use dioxus::prelude::*;

#[component]
pub fn Privacy(cx: Scope) -> Element {
render! {
div {
class: "flex flex-col gap-4 h-full font-hero max-w-3xl w-full mx-auto pb-20 leading-7",
p {
class: "text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-8 font-hero",
"Spam Chrome Extension Privacy Policy"
}
p {

"This extension does not collect, store, or transmit any personal information from users. All operations and functionalities are executed locally on the user's device. "}
p { "Any data required for the extension's functionality, such as public and private keys or RPC URLs, is stored securely on the user's device and not accessed by or transmitted to any external servers. "}

p { "We are committed to ensuring the privacy and security of our users and do not engage in any data collection practices."}


}
}
}
5 changes: 4 additions & 1 deletion src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ use dioxus_router::prelude::*;

use crate::components::{
Claim, Download, ExportKey, Home, ImportKey, Landing, Miner, Navbar, OreTokenomics,
PageNotFound, Send, Settings, SimpleNavbar, Stats, Tx, User, WhatIsMining,
PageNotFound, Privacy, Send, Settings, SimpleNavbar, Stats, Tx, User, WhatIsMining,
};


#[rustfmt::skip]
#[derive(Routable, Clone)]
pub enum Route {
Expand All @@ -19,6 +20,8 @@ pub enum Route {
OreTokenomics {},
#[route("/download")]
Download {},
#[route("/privacy")]
Privacy {},
#[end_layout]

#[layout(Navbar)]
Expand Down

0 comments on commit bda0aa6

Please sign in to comment.