Skip to content

Commit d2b056a

Browse files
committed
add css and fonts
1 parent 436a4f6 commit d2b056a

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang=en>
3+
<meta charset=utf-8>
4+
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
5+
<title>Error 404 (Not Found)!!1</title>
6+
<style>
7+
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
8+
</style>
9+
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
10+
<p><b>404.</b> <ins>That’s an error.</ins>
11+
<p>The requested URL <code>/s/notosanssc/v28/k3kXo84MPvpLmixcA63oeALhL4iJ.woff2</code> was not found on this server. <ins>That’s all we know.</ins>
Binary file not shown.

frontend/src/assets/main.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
1+
@font-face {
2+
font-family: 'Noto Sans';
3+
src: url('./fonts/NotoSans-Regular.woff2') format('woff2'),
4+
url('./fonts/NotoSans-Regular.woff') format('woff');
5+
font-weight: normal;
6+
font-style: normal;
7+
font-display: swap;
8+
}
9+
10+
@font-face {
11+
font-family: 'Noto Sans SC';
12+
src: url('./fonts/NotoSansSC-Regular.woff2') format('woff2'),
13+
url('./fonts/NotoSansSC-Regular.woff') format('woff');
14+
font-weight: normal;
15+
font-style: normal;
16+
font-display: swap;
17+
}
18+
119
:root {
220
--primary-color: #3498db;
321
--secondary-color: #2ecc71;
422
--background-color: #f5f7fa;
523
--border-color: #e1e8ed;
624
--text-color: #2c3e50;
725
--shadow: 0 2px 4px rgba(0,0,0,0.1);
26+
--font-family-base: 'Noto Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
27+
'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei',
28+
sans-serif;
829
}
930

1031
body {
1132
margin: 0;
1233
min-height: 100vh;
1334
background-color: var(--background-color);
14-
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
35+
font-family: var(--font-family-base);
1536
color: var(--text-color);
1637
}
1738

0 commit comments

Comments
 (0)