Skip to content

Commit

Permalink
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ COPY . .
# [optional] tests & build
ENV NODE_ENV=production
# RUN bun test
RUN bunx prisma generate
RUN bun run build

# copy dependencies and source code into final image
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import {GITHUB_REPO_URL} from "$lib/config";
import {GITHUB_REPO_URL} from "$lib/config.js";
</script>

<footer>
6 changes: 3 additions & 3 deletions src/routes/Header.svelte → src/lib/components/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<script>
import {page} from "$app/stores";
import unit from '$lib/assets/website/unit-64.png';
import {DISCORD_SERVER_INVITE_URL} from "$lib/config";
import {DISCORD_SERVER_INVITE_URL} from "$lib/config.js";
</script>

<header>
{#if $page.url.pathname === '/'}
<img src={unit} alt=""/>
{:else}
<a href="/" class="logo">
<a href="/static" class="logo">
<img src={unit} alt=""/>
</a>
{/if}

<nav>
<ul>
<li aria-current={$page.url.pathname === '/' ? 'page' : undefined}>
<a href="/">Главная</a>
<a href="/static">Главная</a>
</li>
<li aria-current={$page.url.pathname === '/about' ? 'page' : undefined}>
<a href="/about">Об игре</a>
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import Footer from "./Footer.svelte";
import Header from "./Header.svelte"
import Footer from "$lib/components/Footer.svelte";
import Header from "$lib/components/Header.svelte"
import "./styles.css"
</script>

0 comments on commit 764f816

Please sign in to comment.