Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
689 changes: 195 additions & 494 deletions css/style.css

Large diffs are not rendered by default.

28 changes: 3 additions & 25 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
--radius: 10px;
}

body.dark-mode {
body {
--text-muted: #ffffff;
}

Expand Down Expand Up @@ -152,13 +152,6 @@ body.dark-mode {
}

.project-title {
color: rgb(25, 0, 255);
font-size: 1.875rem;
font-weight: 700;
letter-spacing: -0.01em;
}

body.dark-mode .project-title {
color: rgb(0, 174, 255);
font-size: 1.875rem;
font-weight: 700;
Expand Down Expand Up @@ -246,9 +239,6 @@ body.dark-mode .project-title {
padding: 16px;
border: 1px solid var(--border-color);
border-radius: 8px;
}

body.dark-mode .feature-box {
background: rgb(0, 0, 0);
}

Expand Down Expand Up @@ -697,10 +687,6 @@ body.dark-mode .feature-box {
font-size: 4rem;
font-weight: 700;
margin-bottom: 20px;
color: var(--text-secondary);
}

body.dark-mode .terms-hero .hero-title {
color: #ffffff;
}

Expand Down Expand Up @@ -831,12 +817,8 @@ body.dark-mode .terms-hero .hero-title {
.section-header h2 {
font-size: 1.625rem;
font-weight: 700;
color: var(--text-secondary);
margin: 0;
}

body.dark-mode .section-header h2 {
color: #ffffff;
margin: 0;
}

.section-content {
Expand All @@ -851,16 +833,12 @@ body.dark-mode .section-header h2 {

.section-content h4 {
font-weight: 700;
color: var(--text-secondary);
color: #ffffff;
margin-top: 24px;
margin-bottom: 12px;
font-size: 1.125rem;
}

body.dark-mode .section-content h4 {
color: #ffffff;
}

.feature-list {
list-style: none;
margin-bottom: 24px;
Expand Down
181 changes: 81 additions & 100 deletions index.html

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,21 +398,20 @@ function switchToArabic() {

function updatePageContent(lang) {
const elements = document.querySelectorAll("[data-ar][data-en]")

elements.forEach((el) => {
if (lang === "en") {
el.textContent = el.getAttribute("data-en")
} else {
el.textContent = el.getAttribute("data-ar")
const text = lang === "en"
? el.getAttribute("data-en")
: el.getAttribute("data-ar")
if (el.tagName === "INPUT" || el.tagName === "TEXTAREA") {
el.placeholder = text
}
else if (el.tagName === "OPTION") {
el.textContent = text
}
else {
el.textContent = text
}
})

// Special handling for html/body attributes
if (lang === "en") {
document.body.style.direction = "ltr"
} else {
document.body.style.direction = "rtl"
}
}

function updateLanguageButtons(lang) {
Expand Down
18 changes: 1 addition & 17 deletions pages/assistant.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<ul class="dropdown-menu text-center" aria-labelledby="dropdownMenuLink">
<li><a href="report.html" class="dropdown-item" data-ar="الإبلاغ عن موقع" data-en="Report Site">الإبلاغ عن موقع</a></li>
<li><a href="blog.html" class="dropdown-item" data-ar="المدونة" data-en="Blog">المدونة</a></li>
<li><a href="https://www.facebook.com/eyeofhorussec" class="dropdown-item" data-ar="تابعنا" data-en="Follow Us">تابعنا</a></li>
<li><a href="https://www.facebook.com/eyeofhorussec" target="_blank" class="dropdown-item" data-ar="تابعنا" data-en="Follow Us">تابعنا</a></li>
</ul>
</div>

Expand All @@ -50,14 +50,6 @@
</div>

<div class="nav-controls-mobile d-lg-none mt-3">
<div class="dropdown-theme-switch">
<div class="dropdown-toggle-switch">
<label class="dropdown-switch-label">
<input type="checkbox" class="dropdown-checkbox" id="themeToggleMobile">
<span class="dropdown-slider"></span>
</label>
</div>
</div>
<div class="dropdown-lang-switch mt-2">
<button class="lang-btn active" data-lang="ar" data-ar="العربية" data-en="Arabic">العربية</button>
<button class="lang-btn" data-lang="en" data-ar="English" data-en="English">English</button>
Expand All @@ -66,14 +58,6 @@
</div>

<div class="nav-controls d-none d-lg-flex" id="nav-controls">
<div class="nav-switch">
<div class="toggle-switch">
<label class="switch-label">
<input type="checkbox" class="checkbox" id="themeToggle">
<span class="slider"></span>
</label>
</div>
</div>
<div class="nav-language">
<button class="lang-btn active" data-lang="ar">العربية</button>
<button class="lang-btn" data-lang="en">EN</button>
Expand Down
Loading