Skip to content

Commit

Permalink
chore: add base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Jan 17, 2024
1 parent 3e46a6b commit bb538a3
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
16 changes: 9 additions & 7 deletions src/lib/components/Nav.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { base } from '$app/paths';
import { navigating } from '$app/stores';
import DeepSquareLogo from '$lib/assets/media/deepsquare-logo-h-neg.svg';
import DarkThemeButton from '$lib/components/DarkThemeButton.svelte';
Expand Down Expand Up @@ -30,30 +31,30 @@
const routes = [
{
name: 'Home',
href: '/'
href: base + '/'
},
{
name: 'Tech',
href: '/technology'
href: base + '/technology'
},
{
name: 'Blog',
href: '/blog'
href: base + '/blog'
},
{
name: 'FAQ',
href: '/faqs'
href: base + '/faqs'
},
{
name: 'Company',
children: [
{
name: 'About',
href: '/about'
href: base + '/about'
},
{
name: 'Contact',
href: '/contact'
href: base + '/contact'
}
]
},
Expand Down Expand Up @@ -87,7 +88,8 @@
>
<ul>
<li>
<a href="/"><img height="100" width="200" src={DeepSquareLogo} alt="DeepSquare Logo" /></a
<a href={base}
><img height="100" width="200" src={DeepSquareLogo} alt="DeepSquare Logo" /></a
>
</li>
</ul>
Expand Down
5 changes: 3 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { base } from '$app/paths';
import Whitepaper from '$lib/assets/media/DeepSquare_White-Paper-1.pdf';
import Yellowpaper from '$lib/assets/media/Yellow-Paper_Tokenize_HPC.pdf';
import logo from '$lib/assets/media/deepsquare-logo-h-neg-BIJELI-1.svg';
Expand Down Expand Up @@ -54,12 +55,12 @@
<a href="https://docs.deepsquare.run/workflow/overview">Documentation</a>
</li>
<li>
<a title="Terms and Conditions" href="/terms-and-conditions"
<a title="Terms and Conditions" href="{base}/terms-and-conditions"
>Terms and Conditions</a
>
</li>
<li>
<a title="Privacy Policy" rel="privacy-policy" href="/privacy-policy"
<a title="Privacy Policy" rel="privacy-policy" href="{base}/privacy-policy"
>Privacy Policy</a
>
</li>
Expand Down
3 changes: 2 additions & 1 deletion src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import Pozadina2 from '$lib/assets/media/pozadina02.svg';
import Pozadina3 from '$lib/assets/media/pozadina03.svg';
import { base } from '$app/paths';
import Portrait from '$lib/components/Portrait.svelte';
const coreTeam = [
Expand Down Expand Up @@ -287,7 +288,7 @@
<center>
<h2>Reach out to us</h2>

<a role="button" class="outline" href="/contact"><span>Contact</span></a>
<a role="button" class="outline" href="{base}/contact"><span>Contact</span></a>
</center>
</main>
</section>
4 changes: 3 additions & 1 deletion src/routes/contact/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { base } from '$app/paths';
const title = 'Contact';
import logo from '$lib/assets/media/deepsquare-logo-h-neg.svg';
Expand Down Expand Up @@ -42,7 +44,7 @@
</p>
</div>
<center>
<a href="/"><img height="45" width="216" src={logo} alt="DeepSquare Logo" /></a>
<a href={base}><img height="45" width="216" src={logo} alt="DeepSquare Logo" /></a>
</center>
</footer>
</section>
Expand Down
4 changes: 3 additions & 1 deletion src/routes/faqs/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { base } from '$app/paths';
const title = 'FAQ';
import animatedDetails from '$lib/animation/animatedDetails';
Expand Down Expand Up @@ -37,7 +39,7 @@ of all sizes.`
},
{
title: 'Where can I buy DPS?',
content: `We are currently in the private sale stage. For more info, please check the [Investors](/investors) page or reach out to the team.`
content: `We are currently in the private sale stage. For more info, please check the [Investors](${base}/investors) page or reach out to the team.`
}
];
</script>
Expand Down
Binary file modified static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const config = {
$components: 'src/lib/components',
$stores: 'src/lib/stores',
$gen: 'gen'
},
paths: {
base: '/website'
}
}
};
Expand Down

0 comments on commit bb538a3

Please sign in to comment.