+
+
+
+
+
-
@@ -72,6 +78,8 @@ const switchCardStyle = () => {
justify-content: center;
align-items: center;
z-index: 1000;
+ display: grid;
+
}
.dialog-box {
@@ -84,9 +92,8 @@ const switchCardStyle = () => {
color: white;
text-align: center;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
- display: flex;
- justify-content: center;
- flex-direction: column;
+ display: grid;
+ grid-template-columns: 33% 33% 33%;
}
.dialog-box h3 {
@@ -107,7 +114,16 @@ const switchCardStyle = () => {
padding: 10px 0;
}
+.dialog-header {
+ grid-column-start: 1;
+}
+
.dialog-body {
padding: 10px 0;
+ grid-column-start: 2;
+}
+
+.dialog-footer {
+ grid-column-start: 3;
}
\ No newline at end of file
diff --git a/stores/settingsStore.ts b/stores/settingsStore.ts
index c0adc1c..e60202a 100644
--- a/stores/settingsStore.ts
+++ b/stores/settingsStore.ts
@@ -1,14 +1,24 @@
import { defineStore } from "pinia";
-const CARDS_COOKIE_NAME = 'cards_type';
-const CARDS_DEFAULT_VALUE = 'heron';
-
+enum CardStyles {
+ HERON = "heron",
+ ORIGINAL = "original"
+}
export const useSettingsStore = defineStore("settingstore", {
state: () => ({
- cardStyle: "heron",
+ cardStyle: CardStyles.HERON,
shaderQuality: 0,
shaderFramerate: 10,
}),
+ actions: {
+ switchCardStyles() {
+ if (this.cardStyle === CardStyles.HERON) {
+ this.cardStyle = CardStyles.ORIGINAL
+ } else {
+ this.cardStyle = CardStyles.HERON
+ }
+ }
+ },
persist: true
});