diff --git a/src/js/components/overlay.js b/src/js/components/overlay.js index 9256773..1b58aa3 100644 --- a/src/js/components/overlay.js +++ b/src/js/components/overlay.js @@ -1,21 +1,23 @@ export const overlayHTML = ` -
-
- rank -
-
-

- Rating -

-

-
-

Win: Lose:

+
+
+
+ rank
-
-
- Last Match: - - +
+

+ Rating +

+

+
+

Win: Lose:

+
+
+
+ Last Match: + + +
diff --git a/src/js/main.js b/src/js/main.js index cafd0bc..67fc412 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -1,5 +1,11 @@ -import '../scss/main.scss' -import Alpine from 'alpinejs' +import "../scss/overlay.scss"; +import "../scss/main.scss"; +import Alpine from "alpinejs"; + +import { overlayHTML } from "./components/overlay.js"; + +const apiUrl = 'https://api.henrikdev.xyz/valorant' +let playerData; async function checkNickname(name) { const regex = /^[a-zA-Zа-яА-Я0-9\s]{1,16}#[a-zA-Zа-яА-Я0-9]{1,5}$/ @@ -119,14 +125,14 @@ document.querySelector('#app').innerHTML = ` -
-