Skip to content

Commit 870dbb7

Browse files
authored
Added style.css
1 parent f529194 commit 870dbb7

File tree

2 files changed

+160
-25
lines changed

2 files changed

+160
-25
lines changed

static/index.html

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,10 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>DNS Redirect</title>
7-
<style>
8-
body {
9-
font-family: Arial, sans-serif;
10-
line-height: 1.6;
11-
max-width: 800px;
12-
margin: 0 auto;
13-
padding: 20px;
14-
}
15-
h1 {
16-
color: #2c3e50;
17-
}
18-
code {
19-
background-color: #f4f4f4;
20-
padding: 2px 4px;
21-
border-radius: 4px;
22-
}
23-
pre.code {
24-
background-color: #f4f4f4;
25-
padding: 10px;
26-
}
27-
.status-code {
28-
font-weight: bold;
29-
color: #e74c3c;
30-
}
31-
</style>
7+
<link rel="stylesheet" href="style.css">
328
</head>
339
<body>
10+
<main>
3411
<h1>DNS Redirect</h1>
3512
<p>This guide explains how to configure your domain to redirect to the desired target using the DNS redirect service.</p>
3613

@@ -131,5 +108,6 @@ <h3>Source code</h3>
131108

132109
<h2>Author</h2>
133110
<p>This is a free service by <a href="https://www.jasny.net">Jasny</a>.</p>
111+
</main>
134112
</body>
135113
</html>

static/style.css

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
9+
line-height: 1.7;
10+
color: #2c3e50;
11+
background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
12+
min-height: 100vh;
13+
padding: 40px 20px;
14+
}
15+
16+
main {
17+
max-width: 900px;
18+
margin: 0 auto;
19+
background: white;
20+
padding: 60px;
21+
border-radius: 12px;
22+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.06);
23+
}
24+
25+
h1 {
26+
color: #1a1a1a;
27+
font-size: 2.5em;
28+
font-weight: 700;
29+
margin-bottom: 20px;
30+
letter-spacing: -0.5px;
31+
}
32+
33+
h2 {
34+
color: #2c3e50;
35+
font-size: 1.8em;
36+
font-weight: 600;
37+
margin-top: 48px;
38+
margin-bottom: 16px;
39+
padding-bottom: 12px;
40+
border-bottom: 2px solid #e1e8ed;
41+
}
42+
43+
h3 {
44+
color: #34495e;
45+
font-size: 1.3em;
46+
font-weight: 600;
47+
margin-top: 32px;
48+
margin-bottom: 12px;
49+
}
50+
51+
p {
52+
margin-bottom: 16px;
53+
font-size: 1.05em;
54+
color: #4a5568;
55+
}
56+
57+
code {
58+
background-color: #f7fafc;
59+
color: #c7254e;
60+
padding: 3px 8px;
61+
border-radius: 4px;
62+
font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
63+
font-size: 0.9em;
64+
border: 1px solid #e2e8f0;
65+
}
66+
67+
pre.code {
68+
background-color: #2d3748;
69+
color: #e2e8f0;
70+
padding: 20px;
71+
border-radius: 8px;
72+
overflow-x: auto;
73+
margin: 20px 0;
74+
line-height: 1.6;
75+
border: 1px solid #4a5568;
76+
}
77+
78+
pre.code code {
79+
background: none;
80+
color: inherit;
81+
padding: 0;
82+
border: none;
83+
font-size: 0.95em;
84+
}
85+
86+
.status-code {
87+
font-weight: 600;
88+
color: #e53e3e;
89+
background-color: #fff5f5;
90+
padding: 2px 6px;
91+
border-radius: 3px;
92+
}
93+
94+
ul {
95+
margin: 20px 0;
96+
padding-left: 0;
97+
list-style: none;
98+
}
99+
100+
ul li {
101+
padding: 12px 0 12px 32px;
102+
position: relative;
103+
line-height: 1.6;
104+
}
105+
106+
ul li::before {
107+
content: '→';
108+
position: absolute;
109+
left: 8px;
110+
color: #3182ce;
111+
font-weight: bold;
112+
font-size: 1.2em;
113+
}
114+
115+
a {
116+
color: #3182ce;
117+
text-decoration: none;
118+
border-bottom: 1px solid transparent;
119+
transition: border-color 0.2s ease;
120+
}
121+
122+
a:hover {
123+
border-bottom-color: #3182ce;
124+
}
125+
126+
strong {
127+
color: #2d3748;
128+
font-weight: 600;
129+
}
130+
131+
@media (max-width: 768px) {
132+
body {
133+
padding: 20px 10px;
134+
}
135+
136+
main {
137+
padding: 30px 20px;
138+
}
139+
140+
h1 {
141+
font-size: 2em;
142+
}
143+
144+
h2 {
145+
font-size: 1.5em;
146+
margin-top: 36px;
147+
}
148+
149+
h3 {
150+
font-size: 1.2em;
151+
}
152+
153+
pre.code {
154+
padding: 15px;
155+
font-size: 0.85em;
156+
}
157+
}

0 commit comments

Comments
 (0)