diff --git a/src/pages/cross/v1.astro b/src/pages/cross/v1.astro index 10759c8..93cebc8 100644 --- a/src/pages/cross/v1.astro +++ b/src/pages/cross/v1.astro @@ -7,7 +7,7 @@ import Layout from "../../layouts/Layout.astro";
-

Tick

+

Cross

@@ -72,7 +72,7 @@ import Layout from "../../layouts/Layout.astro"; const paramsID = params.get('id'); let gameData = null; - fetch(`https://management.beanstalkedu.com/items/game_tick_variant1/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`) + fetch(`https://game-du.teachertrainingkolkata.in/items/game_cross_varient1/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`) .then(res => res.json()) .then(data => { gameData = data.data; @@ -99,7 +99,7 @@ import Layout from "../../layouts/Layout.astro"; document.getElementById('LearningArea').innerHTML = gameData.LearningArea; document.getElementById('LearningSubArea_copy').innerHTML = gameData.LearningSubArea_copy; - const assetsURL = 'https://management.beanstalkedu.com/assets/'; + const assetsURL = 'https://game-du.teachertrainingkolkata.in/assets/'; for (let i = 1; i <= 6; i++) { const imageId = `image${i}`; document.getElementById(imageId).src = assetsURL + gameData[imageId]; @@ -112,12 +112,12 @@ import Layout from "../../layouts/Layout.astro"; if (checkbox.checked) { if (gameData[id.replace('image', 'a')] === true) { - element.classList.add('redBorder'); - } else { element.classList.add('greenBorder'); + } else { + element.classList.add('redBorder'); } } else { - element.classList.remove('redBorder', 'greenBorder'); + element.classList.remove('greenBorder', 'redBorder'); } } let url = window.location.href; diff --git a/src/pages/cross/v2.astro b/src/pages/cross/v2.astro new file mode 100644 index 0000000..ff31de7 --- /dev/null +++ b/src/pages/cross/v2.astro @@ -0,0 +1,269 @@ +--- +import Layout from "../../layouts/Layout.astro"; +--- + +
+
+
+
+
+

Cross

+ +
+
+

+

+
+

+
+
+
+ + + + + + + + +
+
+ + + + + + + + +
+
+ + + + + + + + +
+
+
+

+ +
+
+
+
+
+
+
+ + diff --git a/src/pages/drawing/index.astro b/src/pages/drawing/index.astro index 67db276..d8ad63c 100644 --- a/src/pages/drawing/index.astro +++ b/src/pages/drawing/index.astro @@ -259,7 +259,7 @@ import Layout from '../../layouts/Layout.astro'; // ${color} // Create the SVG element with dynamic fill color if (!isMobile) { - pencilSize = '40px'; + pencilSize = '150px'; button.style.width = `${buttonSize}px`; button.style.height = `${buttonSize}px`; } else { @@ -267,10 +267,12 @@ import Layout from '../../layouts/Layout.astro'; button.style.width = `45px`; button.style.height = `45px`; } - button.innerHTML = ` `; - button.style.boxShadow = '5px 10px 30px #7c4c2390'; - button.style.borderRadius = '20%'; - button.style.marginRight = `${buttonSpacing}px`; + if(isMobile){ + button.innerHTML = ` `; + } else{ + button.innerHTML = ` ` + } + button.style.marginRight = `${buttonSpacing}px`; button.addEventListener('click', () => { // Remove the border from the previously selected button, if any if (selectedButton) { @@ -283,14 +285,17 @@ import Layout from '../../layouts/Layout.astro'; // Set the new selected color selectedColor = color; // Add a border or tick mark to indicate the selected color to the current button - button.style.border = "2px solid"; - button.style.borderColor = color; button.style.scale = '1.1'; if(!isMobile){ button.style.transform = 'translateX(0.75rem)'; button.style.transition = 'transform 0.6s ease'; // Add this line for a 0.3 second duration button.style.marginTop = '5px'; button.style.marginBottom = '5px'; + } else{ + button.style.border = "2px solid"; + button.style.borderColor = color; + button.style.boxShadow = '5px 10px 30px #7c4c2390'; + button.style.borderRadius = '20%'; } // Update the selectedButton variable to the current button selectedButton = button;