Compare commits

..

No commits in common. "455393f2fad2255bf00af4cacbef320edb4d29bc" and "65aa08bfb6a082eec289915c20008f5e81ad1e52" have entirely different histories.

5 changed files with 25 additions and 37 deletions

View File

@ -23,9 +23,9 @@ import Layout from '../../layouts/Layout.astro';
<p id="get-star-value" class="absolute inset-0 flex items-center justify-center text-[#E76408] text-[40px] font-[900]"></p>
</div>
</div>
<div class="flex flex-row items-center" style="">
<img id="starClipart" class="z-10" src="" alt="" style="width: 170px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-8 rounded-[10px] -ml-[40px] h-fit" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
<div class="flex flex-row" style="margin-top: 15px; margin-bottom: 15px;">
<img class="z-10" src="/assets/animate-clipart.gif" alt="" style="width: 90.21px; height: 86.24px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-6 rounded-[10px] -ml-[10px]" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
</div>
<div class="flex flex-col w-full max-w-sm items-center justify-center mx-auto gap-3">
<button onclick="history.back();" class="rounded-[4px] bg-[#0348A8] text-[#FFF] text-[12px] font-[700] p-2.5 w-full border-[1px] border-[#0348A8]">Wow, Lets Go</button>
@ -83,7 +83,6 @@ import Layout from '../../layouts/Layout.astro';
const imgElement = document.getElementById('clipArtWithHand');
document.getElementById('buddiesName').textContent = `Ask to ${spriteNames.charAt(0).toUpperCase() + spriteNames.slice(1)}`;
if (imgElement) {
document.getElementById('starClipart').src = `/assets/${spriteNames}.gif`
imgElement.src = `/assets/hand-${spriteNames}.svg`;
console.log(imgElement.src)
} else {
@ -134,9 +133,7 @@ import Layout from '../../layouts/Layout.astro';
}
function showAnimation() {
const clipArt = document.querySelector('.clip-art');
setTimeout(() => {
clipArt.classList.add('show');
}, 100);
clipArt.classList.add('show');
}
const isMobile = window.innerWidth <= 768; // Define your mobile breakpoint as needed
const isTab = window.innerWidth > 768 && window.innerWidth <= 1416;

View File

@ -23,9 +23,9 @@ import Layout from '../../layouts/Layout.astro';
<p id="get-star-value" class="absolute inset-0 flex items-center justify-center text-[#E76408] text-[40px] font-[900]"></p>
</div>
</div>
<div class="flex flex-row items-center" style="">
<img id="starClipart" class="z-10" src="" alt="" style="width: 170px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-8 rounded-[10px] -ml-[40px] h-fit" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
<div class="flex flex-row" style="margin-top: 15px; margin-bottom: 15px;">
<img class="z-10" src="/assets/animate-clipart.gif" alt="" style="width: 90.21px; height: 86.24px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-6 rounded-[10px] -ml-[10px]" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
</div>
<div class="flex flex-col w-full max-w-sm items-center justify-center mx-auto gap-3">
<button onclick="history.back();" class="rounded-[4px] bg-[#0348A8] text-[#FFF] text-[12px] font-[700] p-2.5 w-full border-[1px] border-[#0348A8]">Wow, Lets Go</button>
@ -82,7 +82,6 @@ import Layout from '../../layouts/Layout.astro';
const imgElement = document.getElementById('clipArtWithHand');
document.getElementById('buddiesName').textContent = `Ask to ${spriteNames.charAt(0).toUpperCase() + spriteNames.slice(1)}`;
if (imgElement) {
document.getElementById('starClipart').src = `/assets/${spriteNames}.gif`
imgElement.src = `/assets/hand-${spriteNames}.svg`;
console.log(imgElement.src)
} else {
@ -132,9 +131,7 @@ import Layout from '../../layouts/Layout.astro';
}
function showAnimation() {
const clipArt = document.querySelector('.clip-art');
setTimeout(() => {
clipArt.classList.add('show');
}, 100);
clipArt.classList.add('show');
}
const isMobile = window.innerWidth <= 768; // Define your mobile breakpoint as needed
const isTab = window.innerWidth > 768 && window.innerWidth <= 1416;

View File

@ -23,9 +23,9 @@ import Layout from '../../layouts/Layout.astro';
<p id="get-star-value" class="absolute inset-0 flex items-center justify-center text-[#E76408] text-[40px] font-[900]"></p>
</div>
</div>
<div class="flex flex-row items-center" style="">
<img id="starClipart" class="z-10" src="" alt="" style="width: 170px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-8 rounded-[10px] -ml-[40px] h-fit" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
<div class="flex flex-row" style="margin-top: 15px; margin-bottom: 15px;">
<img class="z-10" src="/assets/animate-clipart.gif" alt="" style="width: 90.21px; height: 86.24px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-6 rounded-[10px] -ml-[10px]" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
</div>
<div class="flex flex-col w-full max-w-sm items-center justify-center mx-auto gap-3">
<button onclick="history.back();" class="rounded-[4px] bg-[#0348A8] text-[#FFF] text-[12px] font-[700] p-2.5 w-full border-[1px] border-[#0348A8]">Wow, Lets Go</button>
@ -76,16 +76,14 @@ import Layout from '../../layouts/Layout.astro';
const akademyUserId = params.get('childId');
const akademyGameName = params.get('gameName');
const spriteNames = params.get('spriteName');
let buddiesList = [ "arlo", "ava", "dax", "kai", "monstero", "yara" ];
// starClipart
let buddiesList = [ "arlo", "ava", "dax", "kai", "monstero", "yara" ]
function displaySprite() {
if (buddiesList.includes(spriteNames)) {
const imgElement = document.getElementById('clipArtWithHand');
document.getElementById('buddiesName').textContent = `Ask to ${spriteNames.charAt(0).toUpperCase() + spriteNames.slice(1)}`;
if (imgElement) {
document.getElementById('starClipart').src = `/assets/${spriteNames}.gif`
imgElement.src = `/assets/hand-${spriteNames}.svg`;
// console.log(imgElement.src)
console.log(imgElement.src)
} else {
console.log('Element with ID "clipArtWithHand" not found.');
}
@ -148,9 +146,11 @@ import Layout from '../../layouts/Layout.astro';
}
function showAnimation() {
const clipArt = document.querySelector('.clip-art');
// Initially set the clip-art to show after 2 seconds with a slide effect
setTimeout(() => {
clipArt.classList.add('show');
}, 100);
clipArt.classList.add('show'); // Add the show class to trigger animation
}, 2000); // Delay animation by 2 seconds
}
const isMobile = window.innerWidth <= 768; // Define your mobile breakpoint as needed

View File

@ -23,9 +23,9 @@ import Layout from '../../layouts/Layout.astro';
<p id="get-star-value" class="absolute inset-0 flex items-center justify-center text-[#E76408] text-[40px] font-[900]"></p>
</div>
</div>
<div class="flex flex-row items-center" style="">
<img id="starClipart" class="z-10" src="" alt="" style="width: 170px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-8 rounded-[10px] -ml-[40px] h-fit" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
<div class="flex flex-row" style="margin-top: 15px; margin-bottom: 15px;">
<img class="z-10" src="/assets/animate-clipart.gif" alt="" style="width: 90.21px; height: 86.24px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-6 rounded-[10px] -ml-[10px]" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
</div>
<div class="flex flex-col w-full max-w-sm items-center justify-center mx-auto gap-3">
<button onclick="history.back();" class="rounded-[4px] bg-[#0348A8] text-[#FFF] text-[12px] font-[700] p-2.5 w-full border-[1px] border-[#0348A8]">Wow, Lets Go</button>
@ -82,7 +82,6 @@ import Layout from '../../layouts/Layout.astro';
const imgElement = document.getElementById('clipArtWithHand');
document.getElementById('buddiesName').textContent = `Ask to ${spriteNames.charAt(0).toUpperCase() + spriteNames.slice(1)}`;
if (imgElement) {
document.getElementById('starClipart').src = `/assets/${spriteNames}.gif`
imgElement.src = `/assets/hand-${spriteNames}.svg`;
console.log(imgElement.src)
} else {
@ -132,9 +131,7 @@ import Layout from '../../layouts/Layout.astro';
}
function showAnimation() {
const clipArt = document.querySelector('.clip-art');
setTimeout(() => {
clipArt.classList.add('show');
}, 100);
clipArt.classList.add('show');
}
const isMobile = window.innerWidth <= 768; // Define your mobile breakpoint as needed
const isTab = window.innerWidth > 768 && window.innerWidth <= 1416;

View File

@ -23,9 +23,9 @@ import Layout from '../../layouts/Layout.astro';
<p id="get-star-value" class="absolute inset-0 flex items-center justify-center text-[#E76408] text-[40px] font-[900]"></p>
</div>
</div>
<div class="flex flex-row items-center" style="">
<img id="starClipart" class="z-10" src="" alt="" style="width: 170px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-8 rounded-[10px] -ml-[40px] h-fit" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
<div class="flex flex-row" style="margin-top: 15px; margin-bottom: 15px;">
<img class="z-10" src="/assets/animate-clipart.gif" alt="" style="width: 90.21px; height: 86.24px;" />
<p id="starFeedbackMessage" class="text-[#0348A8] text-[12px] font-[700] p-6 rounded-[10px] -ml-[10px]" style="background: linear-gradient(270.05deg, #FFFFFF 4.67%, #DAEAFF 99.61%);"></p>
</div>
<div class="flex flex-col w-full max-w-sm items-center justify-center mx-auto gap-3">
<button onclick="history.back();" class="rounded-[4px] bg-[#0348A8] text-[#FFF] text-[12px] font-[700] p-2.5 w-full border-[1px] border-[#0348A8]">Wow, Lets Go</button>
@ -82,7 +82,6 @@ import Layout from '../../layouts/Layout.astro';
const imgElement = document.getElementById('clipArtWithHand');
document.getElementById('buddiesName').textContent = `Ask to ${spriteNames.charAt(0).toUpperCase() + spriteNames.slice(1)}`;
if (imgElement) {
document.getElementById('starClipart').src = `/assets/${spriteNames}.gif`
imgElement.src = `/assets/hand-${spriteNames}.svg`;
console.log(imgElement.src)
} else {
@ -132,9 +131,7 @@ import Layout from '../../layouts/Layout.astro';
}
function showAnimation() {
const clipArt = document.querySelector('.clip-art');
setTimeout(() => {
clipArt.classList.add('show');
}, 100);
clipArt.classList.add('show');
}
const isMobile = window.innerWidth <= 768; // Define your mobile breakpoint as needed
const isTab = window.innerWidth > 768 && window.innerWidth <= 1416;