diff --git a/team/skeez_meet/common.js b/team/skeez_meet/common.js new file mode 100644 index 0000000..e69de29 diff --git a/team/skeez_meet/controller.js b/team/skeez_meet/controller.js new file mode 100644 index 0000000..e69de29 diff --git a/team/skeez_meet/index.html b/team/skeez_meet/index.html new file mode 100644 index 0000000..b33ee2d --- /dev/null +++ b/team/skeez_meet/index.html @@ -0,0 +1,14 @@ + + + + + + Skeez Meet + + + + +
+
+ + \ No newline at end of file diff --git a/team/skeez_meet/modell.js b/team/skeez_meet/modell.js new file mode 100644 index 0000000..bed014a --- /dev/null +++ b/team/skeez_meet/modell.js @@ -0,0 +1,87 @@ +const model = { + app: { + pages: ["index", "profile", "slopeInfo", "addSlope", "register", "login", "newEvent"], + currentPage: "index", + loggedIn: false, + }, + + input: { + logIn: { + userName: null, + password: null, + }, + registerUser: { + userName: null, + name: null, + lastName: null, + email: null, + password: null, + confirmPassword: null, + image: null, + personalBio: null, + address: null, + phoneNumber: null, + }, + newEvent: { + name: null, + date: null, + slope: null, + comment: null, + deadLine: null, + }, + addSlope: { + name: null, + location: null, + difficulty: null, + description: null, + comment: null, + photo: null, + type: null, + }, + + }, + + data: { + users: [{ + id: null, + name: "", + password: null, + profilePicture: "", + adress: "", + phoneNumber: null, + goals: { + title: "", + description: "", + amount: null, + }, + eventsAttending: [], + }, + ], + slopes: [{ + id: null, + name: "", + location: "", + description: "", + ratings: [], + avgRating: null, + difficulty: null, + type: [], + photo: null, + comment: [], + }, + ], + + events: [{ + id: null, + name: "", + slope: "", + date: "", + comment: [], + members: [], + deadLine: null, + }, + ], + + }, + +} \ No newline at end of file diff --git a/team/skeez_meet/viewAddSlope.js b/team/skeez_meet/viewAddSlope.js new file mode 100644 index 0000000..b787ffd --- /dev/null +++ b/team/skeez_meet/viewAddSlope.js @@ -0,0 +1,8 @@ +let app = document.getElementById('app'); + +function updateView() { + document.getElementById('app').innerHTML = /*html*/ ` + ${model.data.users} + `; + console.log(model.data.users, "hello"); +} \ No newline at end of file diff --git a/team/skeez_meet/viewIndex.js b/team/skeez_meet/viewIndex.js new file mode 100644 index 0000000..9fa9da4 --- /dev/null +++ b/team/skeez_meet/viewIndex.js @@ -0,0 +1,6 @@ +function updateView() { + document.getElementById('app').innerHTML = /*html*/ ` + ${model.data.users} + `; + console.log(model.data.users, "hello"); +} \ No newline at end of file diff --git a/team/skeez_meet/viewLogin.js b/team/skeez_meet/viewLogin.js new file mode 100644 index 0000000..e69de29 diff --git a/team/skeez_meet/viewNewEvent.js b/team/skeez_meet/viewNewEvent.js new file mode 100644 index 0000000..e69de29 diff --git a/team/skeez_meet/viewProfile.js b/team/skeez_meet/viewProfile.js new file mode 100644 index 0000000..b787ffd --- /dev/null +++ b/team/skeez_meet/viewProfile.js @@ -0,0 +1,8 @@ +let app = document.getElementById('app'); + +function updateView() { + document.getElementById('app').innerHTML = /*html*/ ` + ${model.data.users} + `; + console.log(model.data.users, "hello"); +} \ No newline at end of file diff --git a/team/skeez_meet/viewRegister.js b/team/skeez_meet/viewRegister.js new file mode 100644 index 0000000..e69de29 diff --git a/team/skeez_meet/viewSlopeInfo.js b/team/skeez_meet/viewSlopeInfo.js new file mode 100644 index 0000000..b787ffd --- /dev/null +++ b/team/skeez_meet/viewSlopeInfo.js @@ -0,0 +1,8 @@ +let app = document.getElementById('app'); + +function updateView() { + document.getElementById('app').innerHTML = /*html*/ ` + ${model.data.users} + `; + console.log(model.data.users, "hello"); +} \ No newline at end of file