Skip to content

Commit 913f1af

Browse files
committed
use relative paths instead of absolute paths in fonts; fix module names.
1 parent 534efcc commit 913f1af

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

app.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { ProjectDetailRender } from './modules/ProjectDetailModule.js'
44
import { startAnimations } from './modules/AnimationsModule.js'
55
import { validateForm } from './modules/ContactFormModule.js'
66
import { gradientLiquidAnimation } from './modules/GradientLiquidModule.js'
7-
import { ScrollAnimations } from './modules/ScrollEventsModule.js'
8-
import { clickEventAnimations } from './modules/ClickEventsModule.js'
7+
import { ScrollAnimations } from './modules/ScrollEventModule.js'
8+
import { clickEventAnimations } from './modules/ClickEventModule.js'
99

1010

1111
document.addEventListener('DOMContentLoaded', async () => {
@@ -14,8 +14,6 @@ document.addEventListener('DOMContentLoaded', async () => {
1414

1515
startAnimations.init();
1616

17-
// ScrollAnimations.init();
18-
1917
ScrollAnimations.init()
2018

2119
DataFetcher.getData();
@@ -27,7 +25,6 @@ document.addEventListener('DOMContentLoaded', async () => {
2725
// Initialize the project details renderer
2826
ProjectDetailRender.init(data, backupDataImages);
2927

30-
// const clickEvents = clickEventAnimations();
3128
clickEventAnimations.init();
3229

3330

index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/* === Fonts === */
22
@font-face {
33
font-family: "NeueMontreal-Regular";
4-
src: url('/fonts/NeueMontreal/NeueMontreal-Regular.otf') format('opentype');
4+
src: url('./fonts/NeueMontreal/NeueMontreal-Regular.otf') format('opentype');
55
font-display: swap;
66
}
77

88
@font-face {
99
font-family: 'Noto-Sans-Mono-ExtraBold';
10-
src: url('/fonts/Noto-Sans-Mono-ExtraBold/Noto-Sans-Mono-ExtraBold.ttf.woff') format('woff'),
10+
src: url('./fonts/Noto-Sans-Mono-ExtraBold/Noto-Sans-Mono-ExtraBold.ttf.woff') format('woff'),
1111
url('/fonts/Noto-Sans-Mono-ExtraBold.ttf.svg#Noto-Sans-Mono-ExtraBold') format('svg'),
12-
url('/fonts/Noto-Sans-Mono-ExtraBold.ttf.eot'),
13-
url('/fonts/Noto-Sans-Mono-ExtraBold.eot?#iefix') format('embedded-opentype');
12+
url('./fonts/Noto-Sans-Mono-ExtraBold.ttf.eot'),
13+
url('./fonts/Noto-Sans-Mono-ExtraBold.eot?#iefix') format('embedded-opentype');
1414
font-weight: normal;
1515
font-style: normal;
1616
font-display: swap;
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)