Skip to content

Commit

Permalink
use internal fonts instead
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Dec 17, 2023
1 parent 8cf1bf5 commit f83bcdb
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 30 deletions.
Binary file added src/assets/fonts/manrope/cyrillic-ext.woff2
Binary file not shown.
Binary file added src/assets/fonts/manrope/cyrillic.woff2
Binary file not shown.
Binary file added src/assets/fonts/manrope/greek.woff2
Binary file not shown.
Binary file added src/assets/fonts/manrope/latin-ext.woff2
Binary file not shown.
Binary file added src/assets/fonts/manrope/latin.woff2
Binary file not shown.
Binary file added src/assets/fonts/manrope/vietnamese.woff2
Binary file not shown.
57 changes: 27 additions & 30 deletions src/assets/scss/App.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$blackM88: #0E0F14;
$blackM88: #0e0f14;
$blackM91: #1e2132;
$blackM96: #282a3a;
$blackM100: #313443;
Expand All @@ -11,14 +11,14 @@ $special: #14fed4;

// @use 'defaults';

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&display=swap');
@import "./fonts.scss";

:root {
--color-text: rgba(255, 255, 255, 1);
--root-text-color: #ffffff;
--color-alt-text: rgba(255, 255, 255, 0.8);
--color-base: #313443;
--color-blue: #174FDE;
--color-blue: #174fde;
--color-blue-alt: #5b4df1;
}

Expand All @@ -28,15 +28,15 @@ body {
background-color: $blackM88;

%font-shared {
color: #FFFFFF;
color: #ffffff;
font-family: Manrope;
font-weight: bold;
font-style: normal;
line-height: 150%;
letter-spacing: 0em;
text-align: left;
}

h1 {
color: var(--color-text);
font-weight: 800;
Expand Down Expand Up @@ -86,7 +86,8 @@ body {
@extend %font-shared;
}

p, a {
p,
a {
color: var(--color-text);
font-weight: 500;
line-height: 150%;
Expand All @@ -99,7 +100,7 @@ body {
}

a:hover {
color: var(--root-text-color);
color: var(--root-text-color);
}

p {
Expand All @@ -116,30 +117,26 @@ body {
}

.box_hover:hover {
border-radius: 10px;
background-color: #282a3a;
}
border-radius: 10px;
background-color: #282a3a;
}
}

::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
}

::-webkit-scrollbar
{
width: 12px;
::-webkit-scrollbar {
width: 12px;
}

::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: $blackM100;
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: $blackM100;
}


// toggleswitch

.switch {
Expand All @@ -165,8 +162,8 @@ body {
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
-webkit-transition: 0.4s;
transition: 0.4s;
}

.slider:before {
Expand All @@ -177,16 +174,16 @@ body {
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
-webkit-transition: 0.4s;
transition: 0.4s;
}

input:checked + .slider {
background-color: #2196F3;
background-color: #2196f3;
}

input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
Expand All @@ -201,4 +198,4 @@ input:checked + .slider:before {

.slider.round:before {
border-radius: 50%;
}
}
171 changes: 171 additions & 0 deletions src/assets/scss/fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
/* cyrillic-ext */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(../fonts/manrope/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: "Manrope";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(../fonts/manrope/cyrillic.woff2) format("woff2");
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(../fonts/manrope/greek.woff2) format("woff2");
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(../fonts/manrope/vietnamese.woff2) format("woff2");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(../fonts/manrope/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: "Manrope";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(../fonts/manrope/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;
}
/* cyrillic-ext */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(../fonts/manrope/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: "Manrope";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(../fonts/manrope/cyrillic.woff2) format("woff2");
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(../fonts/manrope/greek.woff2) format("woff2");
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(../fonts/manrope/vietnamese.woff2) format("woff2");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(../fonts/manrope/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: "Manrope";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(../fonts/manrope/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;
}
/* cyrillic-ext */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(../fonts/manrope/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: "Manrope";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(../fonts/manrope/cyrillic.woff2) format("woff2");
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(../fonts/manrope/greek.woff2) format("woff2");
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(../fonts/manrope/vietnamese.woff2) format("woff2");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: "Manrope";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(../fonts/manrope/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: "Manrope";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(../fonts/manrope/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;
}

0 comments on commit f83bcdb

Please sign in to comment.