Add files via upload

This commit is contained in:
Kenneth Hendricks 2026-01-25 12:31:23 -05:00 committed by GitHub
parent 0abf9e1b00
commit fa05ee34ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 922 additions and 934 deletions

View file

@ -29,6 +29,15 @@
--hover-bg: rgba(0, 0, 0, 0.1);
}
[data-theme="amoled"] {
--background-color: #000000;
--text-color: #848a94;
--text-color-light: #e8e8e8;
--accent-color: #c4b5fd;
--link-color: #78b3e2;
--hover-bg: rgba(255, 255, 255, 0.08);
}
body {
text-align: center;
background-color: var(--background-color);

View file

@ -29,14 +29,17 @@ document.addEventListener("DOMContentLoaded", async () => {
async function applyTheme() {
try {
const { theme } = await browserAPI.storage.sync.get("theme");
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)"
).matches;
document.body.setAttribute(
"data-theme",
theme || (prefersDark ? "dark" : "light")
);
const { theme } = await browserAPI.storage.local.get("theme");
if (theme && theme !== "system") {
// Apply specific theme (dark, light, or amoled)
document.body.setAttribute("data-theme", theme);
} else {
// System default - detect preference
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)"
).matches;
document.body.setAttribute("data-theme", prefersDark ? "dark" : "light");
}
} catch (error) {
console.error("Error applying theme:", error);
}

File diff suppressed because it is too large Load diff

View file

@ -1,355 +1,331 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to FMHY SafeGuard</title>
<link rel="icon" type="image/x-icon" href="../res/ext_icon_144.png" />
<style>
@font-face {
font-family: "Inter";
src: url("../res/fonts/inter.woff2") format("woff2");
}
:root {
--background: rgb(26, 26, 26);
--card-bg: rgba(255, 255, 255, 0.05);
--text-primary: #e8e8e8;
--text-secondary: #848a94;
--accent-purple: #c4b5fd;
--accent-blue: #7bc5e4;
--section-border: rgba(255, 255, 255, 0.1);
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to FMHY SafeGuard</title>
<link rel="icon" type="image/x-icon" href="../res/ext_icon_144.png" />
<style>
@font-face {
font-family: "Inter";
src: url("../res/fonts/inter.woff2") format("woff2");
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--background: rgb(26, 26, 26);
--card-bg: rgba(255, 255, 255, 0.05);
--text-primary: #e8e8e8;
--text-secondary: #848a94;
--accent-purple: #c4b5fd;
--accent-blue: #7bc5e4;
--section-border: rgba(255, 255, 255, 0.1);
}
body {
background-color: var(--background);
font-family: "Inter", sans-serif;
color: var(--text-primary);
line-height: 1.6;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
body {
background-color: var(--background);
font-family: "Inter", sans-serif;
color: var(--text-primary);
line-height: 1.6;
}
.welcome-header {
text-align: center;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
.title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
background: linear-gradient(
120deg,
.welcome-header {
text-align: center;
}
.title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
background: linear-gradient(120deg,
var(--accent-purple) 30%,
var(--accent-blue)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
var(--accent-blue));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
color: var(--text-secondary);
font-size: 1.1rem;
margin-bottom: 1rem;
}
.subtitle {
color: var(--text-secondary);
font-size: 1.1rem;
margin-bottom: 1rem;
}
.card {
background: var(--card-bg);
border-radius: 12px;
padding: 1.5rem;
border: 1px solid var(--section-border);
}
.card {
background: var(--card-bg);
border-radius: 12px;
padding: 1.5rem;
border: 1px solid var(--section-border);
}
.step {
display: flex;
gap: 1.5rem;
align-items: flex-start;
margin-bottom: 2rem;
}
.step {
display: flex;
gap: 1.5rem;
align-items: flex-start;
margin-bottom: 2rem;
}
.step:last-child {
margin-bottom: 0;
}
.step:last-child {
margin-bottom: 0;
}
.step-number {
background: linear-gradient(
120deg,
.step-number {
background: linear-gradient(120deg,
var(--accent-purple),
var(--accent-blue)
);
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}
var(--accent-blue));
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}
.step-content {
flex-grow: 1;
}
.step-content {
flex-grow: 1;
}
.step-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.step-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.step-description {
color: var(--text-secondary);
margin-bottom: 1rem;
}
.step-description {
color: var(--text-secondary);
margin-bottom: 1rem;
}
.status-list {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 1.5rem;
margin: 1rem 0;
padding: 1rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
}
.status-item {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
font-size: 0.9rem;
min-width: fit-content;
}
.status-icon {
width: 19px;
height: 19px;
object-fit: contain;
}
/* Add responsive adjustments */
@media (max-width: 768px) {
.status-list {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 1.5rem;
margin: 1rem 0;
padding: 1rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
gap: 1rem;
justify-content: flex-start;
}
.status-item {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
font-size: 0.9rem;
min-width: fit-content;
font-size: 0.85rem;
}
}
.status-icon {
width: 19px;
height: 19px;
object-fit: contain;
}
.footer {
text-align: center;
color: var(--text-secondary);
font-size: 0.875rem;
}
/* Add responsive adjustments */
@media (max-width: 768px) {
.status-list {
gap: 1rem;
justify-content: flex-start;
}
.footer a {
color: var(--accent-blue);
text-decoration: none;
}
.status-item {
font-size: 0.85rem;
}
}
.footer a:hover {
text-decoration: underline;
}
.footer {
text-align: center;
color: var(--text-secondary);
font-size: 0.875rem;
}
.footer a {
color: var(--accent-blue);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 8px;
border: none;
font-family: inherit;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
text-decoration: none;
transition: transform 0.2s, opacity 0.2s;
background: linear-gradient(
120deg,
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 8px;
border: none;
font-family: inherit;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
text-decoration: none;
transition: transform 0.2s, opacity 0.2s;
background: linear-gradient(120deg,
var(--accent-purple),
var(--accent-blue)
);
color: white;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
var(--accent-blue));
color: white;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn:hover {
transform: translateY(-2px);
opacity: 0.95;
}
.btn:hover {
transform: translateY(-2px);
opacity: 0.95;
}
.btn-container {
text-align: center;
}
.btn-container {
text-align: center;
}
.warning {
background: rgba(255, 107, 107, 0.1);
border: 1px solid rgba(255, 107, 107, 0.2);
.warning {
background: rgba(255, 107, 107, 0.1);
border: 1px solid rgba(255, 107, 107, 0.2);
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
}
.warning-title {
color: #ff6b6b;
font-weight: 600;
margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
.container {
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
}
.warning-title {
color: #ff6b6b;
font-weight: 600;
margin-bottom: 0.5rem;
.title {
font-size: 2rem;
}
@media (max-width: 640px) {
.container {
padding: 1rem;
}
.title {
font-size: 2rem;
}
.step {
flex-direction: column;
}
.step-number {
margin-bottom: 1rem;
}
.step {
flex-direction: column;
}
</style>
</head>
<body>
<div class="container">
<div class="welcome-header">
<h1 class="title">Welcome to FMHY SafeGuard</h1>
<p class="subtitle">Let's get you set up to browse safely</p>
.step-number {
margin-bottom: 1rem;
}
}
</style>
</head>
<body>
<div class="container">
<div class="welcome-header">
<h1 class="title">Welcome to FMHY SafeGuard</h1>
<p class="subtitle">Let's get you set up to browse safely</p>
</div>
<div class="card">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h2 class="step-title">Pin Extension to Toolbar</h2>
<p class="step-description">
For quick access, pin FMHY SafeGuard to your browser toolbar:
</p>
<ol style="color: var(--text-secondary); margin-left: 1.5rem">
<li>
Click the extensions menu (puzzle piece icon) in your toolbar
</li>
<li>Find "FMHY SafeGuard" in the list</li>
<li>
Click the pin icon next to it or right-click it and select "Pin
to Toolbar"
</li>
</ol>
</div>
</div>
<div class="card">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h2 class="step-title">Pin Extension to Toolbar</h2>
<p class="step-description">
For quick access, pin FMHY SafeGuard to your browser toolbar:
</p>
<ol style="color: var(--text-secondary); margin-left: 1.5rem">
<li>
Click the extensions menu (puzzle piece icon) in your toolbar
</li>
<li>Find "FMHY SafeGuard" in the list</li>
<li>
Click the pin icon next to it or right-click it and select "Pin
to Toolbar"
</li>
</ol>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h2 class="step-title">How It Works</h2>
<p class="step-description">
FMHY SafeGuard automatically checks websites against our security
database:
</p>
<ul style="color: var(--text-secondary); margin-left: 1.5rem">
<li>🛡️ Blocks access to known unsafe sites</li>
<li>⚠️ Shows warnings for potentially unsafe sites</li>
<li>✅ Identifies trusted safe sites</li>
</ul>
<p class="step-description" style="margin-top: 1rem">
The extension icon color indicates the current site's status:
</p>
<div class="status-list">
<div class="status-item">
<img
src="../res/icons/default_19.png"
alt="Not in Wiki"
class="status-icon"
/>
<span>Not in Wiki</span>
</div>
<div class="status-item">
<img
src="../res/icons/starred_19.png"
alt="Starred"
class="status-icon"
/>
<span>Starred</span>
</div>
<div class="status-item">
<img
src="../res/icons/safe_19.png"
alt="Safe"
class="status-icon"
/>
<span>Safe</span>
</div>
<div class="status-item">
<img
src="../res/icons/potentially_unsafe_19.png"
alt="Potentially Unsafe"
class="status-icon"
/>
<span>Potentially Unsafe</span>
</div>
<div class="status-item">
<img
src="../res/icons/unsafe_19.png"
alt="Unsafe"
class="status-icon"
/>
<span>Unsafe</span>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h2 class="step-title">How It Works</h2>
<p class="step-description">
FMHY SafeGuard automatically checks websites against our security
database:
</p>
<ul style="color: var(--text-secondary); margin-left: 1.5rem">
<li>🛡️ Blocks access to known unsafe sites</li>
<li>⚠️ Shows warnings for potentially unsafe sites</li>
<li>✅ Identifies trusted safe sites</li>
</ul>
<p class="step-description" style="margin-top: 1rem">
The extension icon color indicates the current site's status:
</p>
<div class="status-list">
<div class="status-item">
<img src="../res/icons/default_19.png" alt="Not in Wiki" class="status-icon" />
<span>Not in Wiki</span>
</div>
<div class="status-item">
<img src="../res/icons/starred_19.png" alt="Starred" class="status-icon" />
<span>Starred</span>
</div>
<div class="status-item">
<img src="../res/icons/safe_19.png" alt="Safe" class="status-icon" />
<span>Safe</span>
</div>
<div class="status-item">
<img src="../res/icons/potentially_unsafe_19.png" alt="Potentially Unsafe" class="status-icon" />
<span>Potentially Unsafe</span>
</div>
<div class="status-item">
<img src="../res/icons/unsafe_19.png" alt="Unsafe" class="status-icon" />
<span>Unsafe</span>
</div>
</div>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h2 class="step-title">Customize Your Settings</h2>
<p class="step-description">
Configure the extension to work best for you:
</p>
<ul style="color: var(--text-secondary); margin-left: 1.5rem">
<li>Choose light or dark theme</li>
<li>Enable/disable warning pages</li>
<li>Set automatic update frequency</li>
</ul>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h2 class="step-title">Customize Your Settings</h2>
<p class="step-description">
Configure the extension to work best for you:
</p>
<ul style="color: var(--text-secondary); margin-left: 1.5rem">
<li>Choose light, dark, or AMOLED theme</li>
<li>Enable/disable warning pages</li>
<li>Set automatic update frequency</li>
</ul>
</div>
</div>
<div class="btn-container">
<a href="settings-page.html" class="btn">Open Settings</a>
</div>
<div class="footer">
<p>FMHY SafeGuard</p>
<p>
Powered by
<a href="https://github.com/fmhy/FMHYFilterlist" target="_blank"
>FMHY Filterlist</a
>
</p>
</div>
</div>
</body>
</html>
<div class="btn-container">
<a href="settings-page.html" class="btn">Open Settings</a>
</div>
<div class="footer">
<p>FMHY SafeGuard</p>
<p>
Powered by
<a href="https://github.com/fmhy/FMHYFilterlist" target="_blank">FMHY Filterlist</a>
</p>
</div>
</div>
</body>
</html>