1+ import React from "react" ;
2+ import { Box , Typography , Paper } from "@mui/material" ;
3+ import ConstructionIcon from "@mui/icons-material/Construction" ;
4+ import Navbar from "../Components/Navbar" ;
5+ import { useTheme } from "../Context/ThemeContext" ;
6+ import { useTranslation } from "react-i18next" ;
7+
8+ const ThreatModel = ( ) => {
9+ const { t, i18n } = useTranslation ( ) ;
10+ const isFarsi = i18n . language === "fa" ;
11+ const { mode } = useTheme ( ) ;
12+
13+ const backgroundColor = mode === "light" ? "#f0f7fa" : "#040424" ;
14+ const paperBg = mode === "light" ? "#ffffff" : "#121246" ;
15+ const textColor = mode === "light" ? "#000" : "#fff" ;
16+ const secondaryTextColor = mode === "light" ? "#555" : "#ccc" ;
17+
18+ return (
19+ < >
20+ < Navbar />
21+
22+ < Box
23+ sx = { {
24+ minHeight : "100vh" ,
25+ display : "flex" ,
26+ justifyContent : "center" ,
27+ alignItems : "center" ,
28+ backgroundColor : backgroundColor ,
29+ p : 2 ,
30+
31+ direction : isFarsi ? "rtl" : "ltr" ,
32+ } }
33+ >
34+ < Paper
35+ elevation = { 8 }
36+ sx = { {
37+ p : 4 ,
38+ borderRadius : 5 ,
39+ textAlign : "center" ,
40+ maxWidth : 800 ,
41+ width : "100%" ,
42+ bgcolor : paperBg ,
43+ color : textColor ,
44+ } }
45+ >
46+ < ConstructionIcon
47+ sx = { {
48+ fontSize : 60 ,
49+ color : "#ff6a14" ,
50+ mb : 2 ,
51+ } }
52+ />
53+ < Typography variant = "h3" gutterBottom sx = { { fontWeight : 600 } } >
54+ { t ( "ThreatModelHeader" , "Threat Model" ) }
55+ </ Typography >
56+ < Typography variant = "h6" gutterBottom sx = { { color : secondaryTextColor } } >
57+ { t (
58+ "ThreatModelComingSoon" ,
59+ "This page is coming soon! Stay tuned for updates."
60+ ) }
61+ </ Typography >
62+ < Typography variant = "body2" sx = { { color : secondaryTextColor } } >
63+ { t (
64+ "ThreatModelDescription" ,
65+ "We are working hard to bring you the detailed threat model."
66+ ) }
67+ </ Typography >
68+ </ Paper >
69+ </ Box >
70+ </ >
71+ ) ;
72+ } ;
73+
74+ export default ThreatModel ;
0 commit comments