-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
35 lines (25 loc) · 1.21 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { DataFetcher, backupDataImages } from './modules/FetchModule.js';
import { ProjectRender } from './modules/ProjectsModule.js'
import { ProjectDetailRender } from './modules/ProjectDetailModule.js'
import { startAnimations } from './modules/AnimationsModule.js'
import { validateForm } from './modules/ContactFormModule.js'
import { gradientLiquidAnimation } from './modules/GradientLiquidModule.js'
import { ScrollAnimations } from './modules/ScrollEventModule.js'
import { clickEventAnimations } from './modules/ClickEventModule.js'
document.addEventListener('DOMContentLoaded', async () => {
const liquidMotionEffect = gradientLiquidAnimation();
liquidMotionEffect.init();
startAnimations.init();
ScrollAnimations.init()
DataFetcher.getData();
const url = 'https://tomasgarrido-portfolio-dashboard.onrender.com';
const data = await DataFetcher.getData(url);
// Initialize the project list render
ProjectRender.renderProjectsList(data);
ProjectRender.renderProjectsCards(data,backupDataImages);
// Initialize the project details renderer
ProjectDetailRender.init(data, backupDataImages);
clickEventAnimations.init();
const formSubmit = validateForm();
formSubmit.init();
});