Skip to content

Commit

Permalink
feat: add custom cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Mar 27, 2024
1 parent f838774 commit 40ef3ea
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/images/cursor-pointer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/images/cursor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

body {
line-height: 1.5;
cursor: $cursor;
}

h1 {
Expand Down Expand Up @@ -66,4 +67,9 @@ button,
textarea,
select {
font-family: $p-font;

&:hover {
cursor: $cursor-pointer;
}

}
5 changes: 5 additions & 0 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ $header-font: "Ridge Obligque Regular";
$subheader-font: "NeuePlak Bold";
$p-font: "NB International Regular";

//Cursors
$cursor: url("/images/cursor.svg"), auto;
$cursor-pointer: url("/images/cursor-pointer.svg"), pointer;


//Spacing and Sizing
$navbar-margin: clamp(2rem, calc(0.5rem + 5vw), 8rem);
$navbar-width: 45px;
Expand Down

0 comments on commit 40ef3ea

Please sign in to comment.