Skip to content

Commit a9e6b56

Browse files
committed
Update README to document embedded styles
Clarify that styles are now embedded in index.html: update instructions to edit index.html for both content and styling, remove references to a separate styles.css file from the file structure and usage steps, point color customization to CSS variables in the <style> block, and remove a redundant GH Pages note.
1 parent fb78bfa commit a9e6b56

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OopsKit
1+
# OopsKit
22

33
### Maintenance pages for your website
44

@@ -27,14 +27,13 @@ _This is a great way to keep your entire site: pages, assets, API et al. offline
2727

2828
If you're not using Cloudflare, you can still use this page as a temporary landing page when your site is under maintenance by self hosting it on your own server.
2929

30-
1. Temporarily replace your main index file with these files during maintenance periods (`index.html` and `styles.css`)
31-
2. Customize the message in `index.html` and/or modify colors and styles in `styles.css` to match your brand if needed
30+
1. Temporarily replace your main index file with `index.html` during maintenance periods
31+
2. Customize the message and styles directly in `index.html` to match your brand if needed
3232

3333
## File Structure
3434

3535
```
36-
├── index.html # Main HTML file
37-
├── styles.css # CSS styles with dark mode support
36+
├── index.html # Main HTML file (includes embedded styles)
3837
└── README.md # Documentation
3938
```
4039

@@ -51,7 +50,7 @@ Edit the text in `index.html`:
5150

5251
### Modifying Colors
5352

54-
The color scheme can be customized in `styles.css`. The file includes both light and dark mode color variables.
53+
The color scheme can be customized via CSS variables near the top of the `<style>` block in `index.html`. The file includes both light and dark mode color variables.
5554

5655
## Browser Support
5756

@@ -63,7 +62,6 @@ The color scheme can be customized in `styles.css`. The file includes both light
6362

6463
Feel free to use this maintenance page for your projects. Attribution is appreciated but not required.
6564

66-
You can even temporarily use the GH Pages url as your redirected landing page when your site is under maintenance.
6765

6866

6967
> 🕊️

index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="author" content="thinkdj">
1111
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
1212
<style>
13-
/* ── CSS Variables ── */
13+
/* -- CSS Variables -- */
1414
:root {
1515
--primary: #6366f1;
1616
--primary-glow: rgba(99, 102, 241, 0.25);
@@ -41,7 +41,7 @@
4141
--toggle-shadow: 0 2px 6px rgba(0,0,0,0.4);
4242
}
4343

44-
/* ── Reset & Base ── */
44+
/* -- Reset & Base -- */
4545
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
4646

4747
html { height: 100%; }
@@ -58,7 +58,7 @@
5858
position: relative;
5959
}
6060

61-
/* ── Background decoration ── */
61+
/* -- Background decoration -- */
6262
body::before {
6363
content: '';
6464
position: fixed;
@@ -71,7 +71,7 @@
7171
transition: opacity var(--transition);
7272
}
7373

74-
/* ── Dark Mode Toggle ── */
74+
/* -- Dark Mode Toggle -- */
7575
.theme-toggle {
7676
position: fixed;
7777
top: clamp(0.75rem, 2vw, 1.25rem);
@@ -116,7 +116,7 @@
116116
transform: rotate(20deg);
117117
}
118118

119-
/* ── Card ── */
119+
/* -- Card -- */
120120
.container {
121121
position: relative;
122122
z-index: 1;
@@ -132,7 +132,7 @@
132132
transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
133133
}
134134

135-
/* ── Logo / Emoji ── */
135+
/* -- Logo / Emoji -- */
136136
.logo {
137137
font-size: clamp(2.5rem, 8vw, 3.5rem);
138138
margin-bottom: clamp(1rem, 3vw, 1.75rem);
@@ -141,7 +141,7 @@
141141
filter: drop-shadow(0 4px 12px var(--primary-glow));
142142
}
143143

144-
/* ── Badge ── */
144+
/* -- Badge -- */
145145
.badge {
146146
display: inline-flex;
147147
align-items: center;
@@ -165,7 +165,7 @@
165165
animation: pulse 1.8s ease-in-out infinite;
166166
}
167167

168-
/* ── Heading ── */
168+
/* -- Heading -- */
169169
h1 {
170170
font-size: clamp(1.4rem, 4vw, 2rem);
171171
font-weight: 600;
@@ -176,7 +176,7 @@
176176
transition: color var(--transition);
177177
}
178178

179-
/* ── Body text ── */
179+
/* -- Body text -- */
180180
p {
181181
font-size: clamp(0.875rem, 2.5vw, 1rem);
182182
color: var(--text-body);
@@ -185,7 +185,7 @@
185185
transition: color var(--transition);
186186
}
187187

188-
/* ── Progress ── */
188+
/* -- Progress -- */
189189
.progress-container {
190190
width: 100%;
191191
height: 5px;
@@ -203,7 +203,7 @@
203203
animation: sweep 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
204204
}
205205

206-
/* ── Divider ── */
206+
/* -- Divider -- */
207207
.divider {
208208
width: 40px;
209209
height: 3px;
@@ -212,7 +212,7 @@
212212
margin: clamp(1.25rem, 3vw, 1.75rem) auto;
213213
}
214214

215-
/* ── Footer note ── */
215+
/* -- Footer note -- */
216216
.footer-note {
217217
font-size: 0.78rem;
218218
color: var(--text-body);
@@ -221,7 +221,7 @@
221221
transition: color var(--transition);
222222
}
223223

224-
/* ── Keyframes ── */
224+
/* -- Keyframes -- */
225225
@keyframes fadeUp {
226226
from { opacity: 0; transform: translateY(28px) scale(0.97); }
227227
to { opacity: 1; transform: translateY(0) scale(1); }
@@ -242,7 +242,7 @@
242242
50% { opacity: 0.5; transform: scale(0.75); }
243243
}
244244

245-
/* ── Responsive tweaks ── */
245+
/* -- Responsive tweaks -- */
246246
@media (max-width: 400px) {
247247
.container { border-radius: 14px; }
248248
}
@@ -251,7 +251,7 @@
251251
.container { max-width: 500px; }
252252
}
253253

254-
/* ── Reduced motion ── */
254+
/* -- Reduced motion -- */
255255
@media (prefers-reduced-motion: reduce) {
256256
.logo, .progress-bar, .badge-dot { animation: none; }
257257
.container { animation: none; }

0 commit comments

Comments
 (0)