Skip to content

Commit

Permalink
Merge pull request #13 from jorbush/font
Browse files Browse the repository at this point in the history
Setting up custom font
  • Loading branch information
jorbush authored Sep 25, 2024
2 parents 5c03d78 + 390e423 commit 6c5d6ad
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion postrify-frontend/src/app/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ import { AuthService } from '../services/auth.service';
.toggle-button:hover,
.logout-button:hover {
background-color: initial;
color: initial;
color: var(--header-text);
}
}
Expand Down
2 changes: 2 additions & 0 deletions postrify-frontend/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ import { Router } from '@angular/router';
background-color: var(--input-bg);
font-size: 16px;
color: var(--text-color);
font-family: 'Quicksand', sans-serif;
}
button {
Expand All @@ -118,6 +119,7 @@ import { Router } from '@angular/router';
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 16px;
font-family: 'Quicksand', sans-serif;
}
button:hover {
Expand Down
2 changes: 2 additions & 0 deletions postrify-frontend/src/app/register/register.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ import { ToastService } from '../services/toast.service';
background-color: var(--input-bg);
font-size: 16px;
color: var(--text-color);
font-family: 'Quicksand', sans-serif;
}
button {
Expand All @@ -141,6 +142,7 @@ import { ToastService } from '../services/toast.service';
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 16px;
font-family: 'Quicksand', sans-serif;
}
button:hover {
Expand Down
38 changes: 37 additions & 1 deletion postrify-frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,44 @@
--text-color: #333333;
}

@font-face {
font-family: 'Quicksand';
src: url('/fonts/quicksand/Quicksand-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Quicksand';
src: url('/fonts/quicksand/Quicksand-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Quicksand';
src: url('/fonts/quicksand/Quicksand-Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: 'Quicksand';
src: url('/fonts/quicksand/Quicksand-Medium.ttf') format('truetype');
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: 'Quicksand';
src: url('/assets/fonts/quicksand/Quicksand-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}


body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-family: 'Quicksand', sans-serif;
margin: 0;
background-color: var(--body-bg);
color: var(--body-text);
Expand Down

0 comments on commit 6c5d6ad

Please sign in to comment.