diff --git a/src/app/screenshots/screenshots.js b/src/app/screenshots/screenshots.js index ccfdc86..daba6dc 100644 --- a/src/app/screenshots/screenshots.js +++ b/src/app/screenshots/screenshots.js @@ -80,7 +80,7 @@ function captureSalmonRunGearScreenshot(now) { function captureNewWeaponScreenshot(now) { let hash = `/newWeapon/${now}`; - return captureScreenshot({ hash }); + return captureScreenshot({ hash, viewport: { height: 700 } }); } function captureSplatfestScreenshot(region, now, regions) { diff --git a/src/web/assets/css/screenshots.scss b/src/web/assets/css/screenshots.scss index 35778e3..adbc42c 100644 --- a/src/web/assets/css/screenshots.scss +++ b/src/web/assets/css/screenshots.scss @@ -50,7 +50,15 @@ transform: scale(1.4); } - .new-weapons-large { + .new-weapon-box { + max-width: 200px; + + .title-squid { + font-size: 1rem !important; + } + } + + .new-weapons-large .column { transform: scale(1.25); } diff --git a/src/web/components/Main.vue b/src/web/components/Main.vue index 3d1bcc3..94ba5de 100644 --- a/src/web/components/Main.vue +++ b/src/web/components/Main.vue @@ -86,7 +86,7 @@
-
+
@@ -102,32 +102,13 @@
-
-
-
-
- -
-
-
+
+
-
-
-
-
- -
-
-
+
+
@@ -170,10 +151,10 @@ import Dropdown from './Dropdown.vue'; import ScheduleBox from './splatoon/ScheduleBox.vue'; import SalmonRunBox from './splatoon/SalmonRunBox.vue'; import SplatfestBox from './splatoon/SplatfestBox.vue'; -import NewWeaponBox from './splatoon/NewWeaponBox.vue'; +import NewWeaponsContainer from './splatoon/NewWeaponsContainer.vue'; export default { - components: { Dropdown, ScheduleBox, SalmonRunBox, SplatfestBox, NewWeaponBox }, + components: { Dropdown, ScheduleBox, SalmonRunBox, SplatfestBox, NewWeaponsContainer }, computed: { ...mapGetters('splatoon/regions', ['selectedRegion']), ...mapGetters('splatoon/languages', ['selectedLanguage']), @@ -237,11 +218,23 @@ export default { }, // Other + showSplatfestOnBottomRow() { + return this.selectedRegionCurrentSplatfest && !this.selectedRegionHasActiveSplatfest; + }, + + showWeaponsNextToSalmonRun() { + let cutoff = (this.showSplatfestOnBottomRow) ? 3 : 6; + return this.hasWeapons && this.weapons.length <= cutoff; + }, + + showExtraWeaponsAtBottom() { + return this.hasWeapons && (!this.showWeaponsNextToSalmonRun || this.bottomRowHasThreeColumns); + }, + bottomRowHasThreeColumns() { - return this.selectedRegionCurrentSplatfest - && !this.selectedRegionHasActiveSplatfest + return this.showSplatfestOnBottomRow && this.hasSalmonRun - && this.hasWeapons; + && this.showWeaponsNextToSalmonRun; }, }, created() { diff --git a/src/web/components/screenshots/newweapon/NewWeapon.vue b/src/web/components/screenshots/newweapon/NewWeapon.vue index 8c03151..bacf87f 100644 --- a/src/web/components/screenshots/newweapon/NewWeapon.vue +++ b/src/web/components/screenshots/newweapon/NewWeapon.vue @@ -1,15 +1,7 @@ @@ -17,10 +9,10 @@