Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhendricks00 authored Nov 3, 2024
1 parent adceeaa commit aba7d2c
Showing 1 changed file with 95 additions and 32 deletions.
127 changes: 95 additions & 32 deletions platform/chromium/pub/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,100 @@
/>

<style>
:root {
--background-color: rgb(26, 26, 26);
--text-color: #848a94;
--text-color-light: #e8e8e8;
--accent-color: #c4b5fd;
--link-color: #78b3e2;
--hover-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
--background-color: #f5f5f5;
--text-color: #4b5563;
--text-color-light: #1a1a1a;
--accent-color: #6c63ff;
--link-color: #0366d6;
--hover-bg: rgba(0, 0, 0, 0.1);
}

body {
text-align: center;
background-color: rgb(26, 26, 26);
background-color: var(--background-color);
font-family: "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
color: #848a94;
color: var(--text-color);
margin: 0;
padding: 10px;
min-width: 260px;
min-width: 300px;
max-width: 100%;
word-wrap: break-word;
box-sizing: border-box;
overflow: hidden;
position: relative; /* For absolute positioning of settings button */
}

.header {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
padding-right: 25px;
}

.title h1 {
font-size: 24px;
background: -webkit-linear-gradient(120deg, #c4b5fd 30%, #7bc5e4);
background: -webkit-linear-gradient(
120deg,
var(--accent-color) 30%,
var(--link-color)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin: 0;
padding: 10px;
}

.settings-button {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 8px;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}

.settings-button:hover {
background: var(--hover-bg);
}

.settings-button svg {
width: 20px;
height: 20px;
transition: transform 0.3s ease;
}

.settings-button:hover svg {
transform: rotate(45deg);
}

.settings-button path {
fill: var(--text-color);
transition: fill 0.3s ease;
}

.settings-button:hover path {
fill: var(--accent-color);
}

#status-container {
display: flex;
flex-direction: column;
Expand All @@ -44,21 +115,21 @@
}

.status-image {
width: 60px; /* Reduced icon size */
width: 60px;
height: 60px;
transition: transform 0.3s ease;
}

#status-message {
font-size: 14px; /* Smaller text for compact design */
font-size: 14px;
margin-top: 10px;
color: #e8e8e8;
color: var(--text-color-light);
line-height: 1.3;
padding: 0 10px;
}

#status-message strong {
color: #c4b5fd;
color: var(--accent-color);
}

#error-message {
Expand All @@ -67,13 +138,13 @@
}

#footer {
font-size: 11px; /* Smaller footer text */
font-size: 11px;
margin-top: 10px;
color: #848a94;
color: var(--text-color);
}

#footer a {
color: #78b3e2;
color: var(--link-color);
text-decoration: none;
}

Expand All @@ -84,53 +155,46 @@
#feedback {
font-size: 12px;
margin-top: 10px;
color: #848a94;
color: var(--text-color);
}

#feedback a {
color: #78b3e2;
color: var(--link-color);
text-decoration: none;
}

#feedback a:hover {
text-decoration: underline;
}

/* Animation for status change */
.status-image.active {
transform: scale(1.1);
}

#status-message,
#footer,
#feedback {
max-width: 100%; /* Ensures text blocks don't overflow */
word-wrap: break-word; /* Breaks long words that may cause overflow */
word-break: break-word; /* Optional: break long words for better display */
}
</style>
</head>
<body>
<div class="title">
<h1>FMHY SafeGuard</h1>
<div class="header">
<div class="title">
<h1>FMHY SafeGuard</h1>
</div>
<button class="settings-button" id="settingsButton" title="Open Settings">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M12 15.5A3.5 3.5 0 0 1 8.5 12 3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5 3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.65.07-.97 0-.32-.03-.65-.07-.97l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65c-.04-.24-.25-.42-.5-.42h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 12c-.04.32-.07.65-.07.97 0 .32.03.65.07.97l-2.11 1.63c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.31.61.22l2.49-1c.52.39 1.06.73 1.69.98l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.25 1.17-.59 1.69-.98l2.49 1c.22-.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.63Z"
/>
</svg>
</button>
</div>

<div id="status-container">
<!-- The status icon will be dynamically updated by the JS -->
<img
id="status-icon"
class="status-image"
src="safe.png"
alt="Status Icon"
/>
<!-- The status message will also be updated -->
<p id="status-message">Checking site status...</p>
</div>

<!-- An area for error messages, if necessary -->
<p id="error-message"></p>

<!-- Feedback link for users to report mistakes -->
<div id="feedback">
<p>
Think this is a mistake?
Expand All @@ -141,7 +205,6 @@ <h1>FMHY SafeGuard</h1>
>.
</p>
</div>

<div id="footer">
<p>
Powered by
Expand Down

0 comments on commit aba7d2c

Please sign in to comment.