+
diff --git a/src/renderer/src/pages/achievements/achievements.css.ts b/src/renderer/src/pages/achievements/achievements.css.ts
index 682fd2e5..f84bc7be 100644
--- a/src/renderer/src/pages/achievements/achievements.css.ts
+++ b/src/renderer/src/pages/achievements/achievements.css.ts
@@ -13,11 +13,11 @@ export const wrapper = style({
transition: "all ease 0.3s",
});
-export const header = style({
- display: "flex",
+export const hero = style({
+ width: "100%",
height: `${HERO_HEIGHT}px`,
minHeight: `${HERO_HEIGHT}px`,
- gap: `${SPACING_UNIT}px`,
+ display: "flex",
flexDirection: "column",
position: "relative",
transition: "all ease 0.2s",
@@ -29,14 +29,22 @@ export const header = style({
},
});
-export const hero = style({
- position: "absolute",
- inset: "0",
- borderRadius: "4px",
- objectFit: "cover",
- cursor: "pointer",
+export const heroImage = style({
width: "100%",
+ height: `${HERO_HEIGHT}px`,
+ minHeight: `${HERO_HEIGHT}px`,
+ objectFit: "cover",
+ objectPosition: "top",
transition: "all ease 0.2s",
+ position: "absolute",
+ zIndex: "0",
+ "@media": {
+ "(min-width: 1250px)": {
+ objectPosition: "center",
+ height: "350px",
+ minHeight: "350px",
+ },
+ },
});
export const heroContent = style({
diff --git a/src/renderer/src/pages/profile/profile-content/profile-content.tsx b/src/renderer/src/pages/profile/profile-content/profile-content.tsx
index 99e09889..de22313e 100644
--- a/src/renderer/src/pages/profile/profile-content/profile-content.tsx
+++ b/src/renderer/src/pages/profile/profile-content/profile-content.tsx
@@ -46,7 +46,7 @@ export function ProfileContent() {
}, [userProfile]);
const buildUserGameDetailsPath = (game: UserGame) => {
- if (!userProfile?.hasActiveSubscription) {
+ if (!userProfile?.hasActiveSubscription || game.achievementCount === 0) {
return buildGameDetailsPath({
...game,
objectId: game.objectId,
@@ -174,55 +174,56 @@ export function ProfileContent() {
{formatPlayTime(game.playTimeInSeconds)}
- {userProfile.hasActiveSubscription && (
-
+ {userProfile.hasActiveSubscription &&
+ game.achievementCount > 0 && (
-
+
+
+
+ {game.unlockedAchievementCount} /{" "}
+ {game.achievementCount}
+
+
+
- {game.unlockedAchievementCount} /{" "}
- {game.achievementCount}
+ {formatDownloadProgress(
+ game.unlockedAchievementCount /
+ game.achievementCount
+ )}
-
- {formatDownloadProgress(
+
-
-
-
- )}
+ )}