diff --git a/frontend/pages/home.html b/frontend/home/index.html similarity index 100% rename from frontend/pages/home.html rename to frontend/home/index.html diff --git a/frontend/index.html b/frontend/index.html index 9911433..21d8d3a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1 +1 @@ - + diff --git a/frontend/login/index.html b/frontend/login/index.html new file mode 100644 index 0000000..2f7f0f0 --- /dev/null +++ b/frontend/login/index.html @@ -0,0 +1,36 @@ + + + + + Login - Temperature alarm + + + + + +
+
+
+

Login

+ + + + + + + + +
+ +

+ Dont have an account? Register +

+
+
+
+
+ + + diff --git a/frontend/pages/login.html b/frontend/pages/login.html deleted file mode 100644 index e3b0533..0000000 --- a/frontend/pages/login.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - -
-
-
-

Login

- - - - - - - - -
- - -
-
-
-
- - - - - \ No newline at end of file diff --git a/frontend/pages/register.html b/frontend/pages/register.html deleted file mode 100644 index ad17e55..0000000 --- a/frontend/pages/register.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - -
-
-
-

Create Account

- - - - - - - - - - - - - - -
- -
-
-
-
- - - - - - \ No newline at end of file diff --git a/frontend/pages/profile.html b/frontend/profile/index.html similarity index 100% rename from frontend/pages/profile.html rename to frontend/profile/index.html diff --git a/frontend/register/index.html b/frontend/register/index.html new file mode 100644 index 0000000..0427296 --- /dev/null +++ b/frontend/register/index.html @@ -0,0 +1,39 @@ + + + + + Register - Temperature Alarm + + + + + +
+
+
+

Create Account

+ + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/frontend/scripts/services/users.service.js b/frontend/scripts/services/users.service.js index 06f0936..58fddd7 100644 --- a/frontend/scripts/services/users.service.js +++ b/frontend/scripts/services/users.service.js @@ -1,5 +1,4 @@ -import { address } from "../../shared/constants"; - +import { address } from "../../shared/constants.js"; export function login(usernameOrEmail, password) { console.log(usernameOrEmail); @@ -41,4 +40,4 @@ export function create(email, username, password, repeatPassword){ .then(response => response.json()) .then(data => console.log("Success:", data)) .catch(error => console.error("Error:", error)); -} \ No newline at end of file +}