New dashboard done

This commit is contained in:
Mawoka
2023-05-14 11:27:46 +02:00
parent 75d736c0ad
commit fd9e5dec38
8 changed files with 139 additions and 48 deletions
@@ -18,7 +18,11 @@
<a
{href}
{target}
class="text-black hover:bg-opacity-80 w-full px-4 py-2 leading-5 text-black transition-all duration-200 transform bg-[#B07156] rounded text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 outline-none"
{disabled}
class:opacity-50={disabled}
class:cursor-not-allowed={disabled}
class:pointer-events-none={disabled}
class="text-black hover:bg-opacity-80 w-full px-4 py-2 leading-5 transition-all duration-200 transform bg-[#B07156] rounded text-center outline-none"
on:click
class:flex
class:justify-center={flex}
@@ -29,7 +33,7 @@
<button
{disabled}
{type}
class="text-black hover:opacity-80 w-full px-4 py-2 leading-5 text-black transition-all duration-200 transform bg-[#B07156] rounded text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 outline-none"
class="text-black hover:opacity-80 w-full px-4 py-2 leading-5 transition-all duration-200 transform bg-[#B07156] rounded text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 outline-none"
on:click
class:flex
class:justify-center={flex}
+28 -1
View File
@@ -169,7 +169,12 @@
"point_plural": "Points",
"back": "Back",
"finish": "Finish",
"normal": "Normal"
"normal": "Normal",
"selected": "Selected",
"select": "Select",
"quiz": "Quiz",
"quiztivity": "Quiztivity",
"next": "Next"
},
"editor": {
"time_in_seconds": "Time in seconds",
@@ -344,5 +349,27 @@
"old_school_mode": "Old-School",
"old_school_mode_description": "Questions and images will be shown on both admins screen and on the screen of the players",
"start_game": "Start Game"
},
"quiztivity": {
"editor": {
"select_page_type": "Select Page Type",
"move_left": "Move left",
"move_right": "Move right",
"title_placeholder": "Enter title here",
"add_new": "Add new",
"delete": "Delete"
},
"memory": {
"editor": {
"add_card": "Add card",
"upload_image": "Upload image",
"add_pair": "Add pair"
}
},
"play": {
"memory": {
"try_count": "Tries: {{try_count}}"
}
}
}
}
@@ -12,12 +12,12 @@
export let type: QuizTivityTypes | undefined;
const PageTypes = [
{
/* {
name: 'Pdf',
description: 'Upload a PDF!',
type: QuizTivityTypes.PDF,
svg: undefined
},
},*/
{
name: 'Memory',
description: 'Matching Pairs game',
+2 -1
View File
@@ -41,7 +41,8 @@
$: handle_slide_add(selected_type);
const delete_slide = () => {
data.pages.slice(selected_slide, 1);
console.log(selected_slide);
data.pages.splice(selected_slide, 1);
data.pages = data.pages;
};