Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pages: add jak 3 in progress page #428

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import Header from "./components/header/Header.svelte";
import Update from "./routes/Update.svelte";
import { isInDebugMode } from "$lib/utils/common";
import GameInProgress from "./components/games/GameInProgress.svelte";
import Toast from "./components/toast/Toast.svelte";
import Help from "./routes/Help.svelte";
import { isLoading } from "svelte-i18n";
Expand Down Expand Up @@ -83,6 +84,12 @@
primary={false}
let:params
/>
<Route
path="/jak3"
component={GameInProgress}
primary={false}
let:params
/>
<Route
path="/settings/:tab"
component={Settings}
Expand Down
1 change: 1 addition & 0 deletions src/assets/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"temp_jak2_indev_header": "Jak II is Currently in Development",
"temp_jak2_indev_progressReports": "Progress Reports",
"temp_jak2_indev_subheader": "In the meantime, check out our latest progress reports showcasing what we've accomplished so far",
"temp_jak3_indev_header": "Jak 3 is Currently in Development",
"update_alreadyUpToDate": "You're Up to Date!",
"update_button_doUpdate": "Update Launcher",
"update_button_hideDependencyChanges": "Dependency Changes",
Expand Down
Binary file added src/assets/videos/jak3-dev.mp4
Binary file not shown.
Binary file added src/assets/videos/jak3-poster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/components/background/Background.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import { listen } from "@tauri-apps/api/event";
import { getFurthestGameMilestone } from "$lib/rpc/game";
import jak2Background from "$assets/images/background-jak2.webp";
import jak3InProgressVid from "$assets/videos/jak3-dev.mp4";
import jak3InProgressPoster from "$assets/videos/jak3-poster.png";

const location = useLocation();
$: $location.pathname, updateStyle();
Expand Down Expand Up @@ -52,4 +54,13 @@
<img class={style} src={jak1Image} />
{:else if $location.pathname == "/jak2"}
<img class={style} src={jak2Background} />
{:else if $location.pathname == "/jak3"}
<video
class={style}
poster={jak3InProgressPoster}
src={jak3InProgressVid}
autoplay
muted
loop
/>
{/if}
2 changes: 1 addition & 1 deletion src/components/games/GameInProgress.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="flex flex-col h-full justify-center items-center p-5 text-center">
<h1 class="text-2xl font-black mb-5 text-outline">
{$_("temp_jak2_indev_header")}
{$_("temp_jak3_indev_header")}
</h1>
<p class="mb-10">
{$_("temp_jak2_indev_subheader")}
Expand Down
15 changes: 15 additions & 0 deletions src/components/sidebar/Sidebar.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import logoJak1 from "$assets/images/jak-tpl.webp";
import logoJak2 from "$assets/images/jak-2.webp";
import logoJak3 from "$assets/images/jak-3.webp";
import IconCog from "~icons/mdi/cog";
import IconChatQuestion from "~icons/mdi/chat-question";
import { link, useLocation } from "svelte-navigator";
Expand Down Expand Up @@ -80,6 +81,20 @@
>
</a>
</li>
<li>
<a
class={getNavItemStyle("jak3", $location.pathname)}
href="/jak3"
use:link
>
<img src={logoJak3} alt="Jak 3" aria-label="Jak 3" />
<Tooltip placement="right" type="dark"
>{modifyGameTitleName(
$_(`gameName_${getInternalName(SupportedGame.Jak3)}`),
)}</Tooltip
>
</a>
</li>
<li class="!mt-auto">
<a
class={getNavItemStyle("settings", $location.pathname)}
Expand Down
Loading