diff --git a/app/components/Achievements/BottomScreen.vue b/app/components/Achievements/BottomScreen.vue new file mode 100644 index 0000000..00ba1bd --- /dev/null +++ b/app/components/Achievements/BottomScreen.vue @@ -0,0 +1,91 @@ + diff --git a/app/components/Common/AchievementNotification.vue b/app/components/Achievements/Notification.vue similarity index 94% rename from app/components/Common/AchievementNotification.vue rename to app/components/Achievements/Notification.vue index 978abda..0e4e1f0 100644 --- a/app/components/Common/AchievementNotification.vue +++ b/app/components/Achievements/Notification.vue @@ -12,7 +12,7 @@ const x = ref(LOGICAL_WIDTH); const isAnimating = ref(false); const PADDING = 4; -const LOGO_SIZE = assets.images.common.achievementNotificationLogo.rect.height; +const LOGO_SIZE = assets.images.achievements.notificationLogo.rect.height; const NOTIF_WIDTH = 120; const NOTIF_HEIGHT = LOGO_SIZE + PADDING * 2; const NOTIF_Y = 3; @@ -66,7 +66,7 @@ const processQueue = () => { onRender((ctx) => { if (!currentAchievement.value) return; - const logo = assets.images.common.achievementNotificationLogo; + const logo = assets.images.achievements.notificationLogo; // shadow ctx.fillStyle = "rgba(0, 0, 0, 0.3)"; diff --git a/app/components/Achievements/TopScreen.vue b/app/components/Achievements/TopScreen.vue new file mode 100644 index 0000000..a61e728 --- /dev/null +++ b/app/components/Achievements/TopScreen.vue @@ -0,0 +1,123 @@ + diff --git a/app/components/Home/BottomScreen/Buttons.vue b/app/components/Home/BottomScreen/Buttons.vue index 3ff28fd..161ea30 100644 --- a/app/components/Home/BottomScreen/Buttons.vue +++ b/app/components/Home/BottomScreen/Buttons.vue @@ -15,12 +15,16 @@ const { selected, selectorPosition } = useButtonNavigation({ theme: [0, 167, 31, 26], settings: [112, 167, 31, 26], - alarm: [225, 167, 31, 26], + achievements: [225, 167, 31, 26], }, initialButton: "projects", onButtonClick: (button) => { - if (button === "theme" || button === "alarm") - throw new Error(`Not implemented: ${button}`); + if (button === "theme") throw new Error(`Not implemented: ${button}`); + + if (button === "achievements") { + store.animateOutro("achievements"); + return; + } store.animateOutro(button); }, @@ -47,9 +51,9 @@ const { selected, selectorPosition } = useButtonNavigation({ settings: { left: "theme", up: "last", - right: "alarm", + right: "achievements", }, - alarm: { + achievements: { left: "settings", }, }, @@ -168,9 +172,9 @@ onRender((ctx) => { />