small fixes and better ui and performance

This commit is contained in:
ngn
2023-07-13 00:58:55 +03:00
parent 6bde08cf67
commit f7f008cc89
17 changed files with 1095 additions and 17 deletions

64
static/font.css Normal file
View File

@@ -0,0 +1,64 @@
/*
* this what you would get from google fonts, i downloaded all the fonts and
* placed them in static/fonts because google fonts made my website load
* slower lol
*
* you can get the original css at:
* https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap
*/
/* cyrillic-ext */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./fonts/cyrillic-ext.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./fonts/cyrillic.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./fonts/greek-ext.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./fonts/greek.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* latin-ext */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./fonts/latin-ext.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(./fonts/latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

Binary file not shown.

BIN
static/fonts/cyrillic.woff2 Normal file

Binary file not shown.

Binary file not shown.

BIN
static/fonts/greek.woff2 Normal file

Binary file not shown.

Binary file not shown.

BIN
static/fonts/latin.woff2 Normal file

Binary file not shown.

1007
static/github.css Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,5 @@
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap");
@import url("./font.css");
@import url("./github.css");
:root {
--white: white;
@@ -8,9 +9,13 @@
--dark-four: #242526;
--dark-fife: #3a3b3c;
--border-rad: 30px;
/*
old shadow animation
--def-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
*/
--def-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
* {