diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index d46cafdb..bed1eceb 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -231,8 +231,10 @@ "play_time": "Played for {{amount}}", "last_time_played": "Last played {{period}}", "sign_out": "Sign out", - "activity": "Recent Activity", + "activity": "Recent activity", "library": "Library", - "total_play_time": "Total playtime: {{amount}}" + "total_play_time": "Total playtime: {{amount}}", + "no_recent_activity_title": "Hmmm… nothing here", + "no_recent_activity_description": "You haven't played any games recently. It's time to change that!" } } diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index 8dd937d2..014f3c5a 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -232,8 +232,10 @@ "play_time": "Jogado por {{amount}}", "last_time_played": "Jogou {{period}}", "sign_out": "Sair da conta", - "activity": "Atividade Recente", + "activity": "Atividade recente", "library": "Biblioteca", - "total_play_time": "Tempo total de jogo: {{amount}}" + "total_play_time": "Tempo total de jogo: {{amount}}", + "no_recent_activity_title": "Hmmm… nada por aqui", + "no_recent_activity_description": "Parece que você não jogou nada recentemente. Que tal começar agora?" } } diff --git a/src/renderer/src/pages/home/catalogue-home.css.ts b/src/renderer/src/pages/home/catalogue-home.css.ts index 8096bf97..a13d58f4 100644 --- a/src/renderer/src/pages/home/catalogue-home.css.ts +++ b/src/renderer/src/pages/home/catalogue-home.css.ts @@ -1,5 +1,4 @@ import { style } from "@vanilla-extract/css"; -import { recipe } from "@vanilla-extract/recipes"; import { SPACING_UNIT } from "../../theme.css"; @@ -17,11 +16,9 @@ export const content = style({ flex: "1", }); -export const cards = recipe({ - base: { - display: "grid", - gridTemplateColumns: "repeat(2, 1fr)", - gap: `${SPACING_UNIT * 2}px`, - transition: "all ease 0.2s", - }, +export const cards = style({ + display: "grid", + gridTemplateColumns: "repeat(2, 1fr)", + gap: `${SPACING_UNIT * 2}px`, + transition: "all ease 0.2s", }); diff --git a/src/renderer/src/pages/user/user-content.tsx b/src/renderer/src/pages/user/user-content.tsx index 20384cc3..816f25a9 100644 --- a/src/renderer/src/pages/user/user-content.tsx +++ b/src/renderer/src/pages/user/user-content.tsx @@ -9,7 +9,7 @@ import SteamLogo from "@renderer/assets/steam-logo.svg?react"; import { useDate, useUserDetails } from "@renderer/hooks"; import { useNavigate } from "react-router-dom"; import { buildGameDetailsPath } from "@renderer/helpers"; -import { PersonIcon } from "@primer/octicons-react"; +import { PersonIcon, TelescopeIcon } from "@primer/octicons-react"; import { Button } from "@renderer/components"; import { UserEditProfileModal } from "./user-edit-modal"; @@ -66,7 +66,7 @@ export function UserContent({ }; const handleSignout = async () => { - await signOut(); + signOut(); navigate("/"); }; @@ -95,7 +95,7 @@ export function UserContent({ className={styles.profileContentBox} style={{ background: profileContentBoxBackground, - padding: `${SPACING_UNIT * 4}px ${SPACING_UNIT * 2}px`, + padding: `${SPACING_UNIT * 3}px ${SPACING_UNIT * 2}px`, }} >
+ {t("no_recent_activity_description")} +
+