+
getGameAwardsNominee(data.value))
+
+function dismissGameAwardsVotingDetails() {
+ gameAwardsDismissed.value = true
+ localStorage.setItem(GAME_AWARDS_VOTING_DETAILS_DISMISSED_KEY, 'true')
+}
+
function getProjectBreadcrumbSummary(projectId) {
const identifier = Array.isArray(projectId) ? projectId[0] : projectId
if (typeof identifier !== 'string' || !identifier) return undefined
diff --git a/apps/frontend/src/composables/featureFlags.ts b/apps/frontend/src/composables/featureFlags.ts
index ee2b35495d1..cbd0f8ce7f7 100644
--- a/apps/frontend/src/composables/featureFlags.ts
+++ b/apps/frontend/src/composables/featureFlags.ts
@@ -58,6 +58,7 @@ export const DEFAULT_FEATURE_FLAGS = validateValues({
alwaysShowVersionDevInfo: false,
advancedFiltersCollapsed: true,
dismissedPhotosensitivityFilterWarning: false,
+ hideGameAwardsVotingDetails: false,
} as const)
export type FeatureFlag = keyof typeof DEFAULT_FEATURE_FLAGS
diff --git a/apps/frontend/src/pages/[type]/[project].vue b/apps/frontend/src/pages/[type]/[project].vue
index 1213bff423f..26b7a55e9a8 100644
--- a/apps/frontend/src/pages/[type]/[project].vue
+++ b/apps/frontend/src/pages/[type]/[project].vue
@@ -475,6 +475,12 @@
@@ -1037,6 +1045,7 @@ const project = computed(() => {
})
const gameAwardsNominee = computed(() => getGameAwardsNominee(project.value))
+const isProjectDescriptionPage = computed(() => route.name === 'type-project')
function dismissGameAwardsVotingDetails() {
flags.value.hideGameAwardsVotingDetails = true
diff --git a/packages/ui/src/components/project/GameAwardsNomineeCard.vue b/packages/ui/src/components/project/GameAwardsNomineeCard.vue
index ee410217433..03492d4490a 100644
--- a/packages/ui/src/components/project/GameAwardsNomineeCard.vue
+++ b/packages/ui/src/components/project/GameAwardsNomineeCard.vue
@@ -49,7 +49,10 @@
:href="link"
target="_blank"
>
- {{ formatMessage(messages.vote) }}
+ {{ formatMessage(messages.vote) }}
+ {{
+ formatMessage(messages.voteNow)
+ }}
@@ -113,6 +116,10 @@ const messages = defineMessages({
id: 'project.game-awards.vote',
defaultMessage: 'Vote at The Game Awards',
},
+ voteNow: {
+ id: 'project.game-awards.vote-now',
+ defaultMessage: 'Vote now',
+ },
daysLeft: {
id: 'project.game-awards.days-left',
defaultMessage: '{days, plural, one {# day left} other {# days left}}',
@@ -148,6 +155,20 @@ const eyebrow = computed(() => {
--tga-background: linear-gradient(to bottom right, #ffffff 0%, #e8fbff 100%);
}
+.game-awards-nominee-card__vote-short {
+ display: none;
+}
+
+@media (max-width: 349px) {
+ .game-awards-nominee-card__vote {
+ display: none;
+ }
+
+ .game-awards-nominee-card__vote-short {
+ display: inline;
+ }
+}
+
html.dark-mode .game-awards-nominee-card,
html.oled-mode .game-awards-nominee-card,
html.retro-mode .game-awards-nominee-card {
diff --git a/packages/ui/src/locales/en-US/index.json b/packages/ui/src/locales/en-US/index.json
index 5a441d2c47b..d28dcee3421 100644
--- a/packages/ui/src/locales/en-US/index.json
+++ b/packages/ui/src/locales/en-US/index.json
@@ -4466,6 +4466,9 @@
"project.game-awards.vote": {
"defaultMessage": "Vote at The Game Awards"
},
+ "project.game-awards.vote-now": {
+ "defaultMessage": "Vote now"
+ },
"project.license.error": {
"defaultMessage": "License text could not be retrieved."
},